mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-02-04 08:13:38 +00:00
- During enable/disable of the component, status of the dropin configuration files was being checked from non-privileged process. If the dropin configuration file or its parent is readable only by root, then the operation fails. Fix this by performing the status check in privileged mode. Tests: - Unit tests pass. - Dropin configuration file for redis server works. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
16 lines
727 B
Python
16 lines
727 B
Python
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
"""Package holding all the privileged actions outside of apps."""
|
|
|
|
from .config import dropin_is_valid, dropin_link, dropin_unlink
|
|
from .packages import (filter_conffile_packages, install,
|
|
is_package_manager_busy, remove, update)
|
|
from .service import (disable, enable, is_enabled, is_running, mask, reload,
|
|
restart, start, stop, try_restart, unmask)
|
|
|
|
__all__ = [
|
|
'filter_conffile_packages', 'install', 'is_package_manager_busy', 'remove',
|
|
'update', 'disable', 'enable', 'is_enabled', 'is_running', 'mask',
|
|
'reload', 'restart', 'start', 'stop', 'try_restart', 'unmask',
|
|
'dropin_is_valid', 'dropin_link', 'dropin_unlink'
|
|
]
|