-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use DynamicUser instead of static users
To allow this, we need a more lenient policy for owning the service's name on the system bus.
- Loading branch information
1 parent
7708c46
commit 1ce3358
Showing
12 changed files
with
13 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[D-BUS Service] | ||
Name=@KOLIBRI_DAEMON_SERVICE@ | ||
Exec=/bin/false | ||
User=@KOLIBRI_USER@ | ||
User=root | ||
SystemdService=dbus-@[email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
subdir('dbus') | ||
subdir('environment.d') | ||
subdir('systemd') | ||
subdir('sysusers.d') | ||
subdir('tmpfiles.d') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,12 +51,8 @@ dbus_system_conf_dir = join_paths(datadir, 'dbus-1', 'system.d') | |
|
||
kolibri_user = get_option('kolibri_user') | ||
|
||
kolibri_user_home = get_option('kolibri_user_home') | ||
if kolibri_user_home == '' | ||
kolibri_user_home = join_paths(get_option('prefix'), get_option('localstatedir'), 'lib', 'kolibri') | ||
endif | ||
kolibri_data_dir = join_paths(get_option('prefix'), get_option('localstatedir'), 'lib', 'kolibri', 'data') | ||
|
||
kolibri_data_dir = join_paths(kolibri_user_home, 'data') | ||
kolibri_flatpak_id = get_option('kolibri_flatpak_id') | ||
kolibri_daemon_service = '@[email protected]'.format(kolibri_flatpak_id) | ||
|
||
|
@@ -66,7 +62,6 @@ eos_kolibri_config.set('libexecdir', libexecdir) | |
eos_kolibri_config.set('PYTHON', 'python3') | ||
eos_kolibri_config.set('PYTHON_INSTALL_DIR', python_install_dir) | ||
eos_kolibri_config.set('KOLIBRI_USER', kolibri_user) | ||
eos_kolibri_config.set('KOLIBRI_USER_HOME', kolibri_user_home) | ||
eos_kolibri_config.set('KOLIBRI_DATA_DIR', kolibri_data_dir) | ||
eos_kolibri_config.set('KOLIBRI_FLATPAK_ID', kolibri_flatpak_id) | ||
eos_kolibri_config.set('KOLIBRI_DAEMON_SERVICE', kolibri_daemon_service) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
#!/usr/bin/python3 | ||
|
||
KOLIBRI_DATA_DIR = '@KOLIBRI_DATA_DIR@' | ||
KOLIBRI_FLATPAK_ID = '@KOLIBRI_FLATPAK_ID@' | ||
KOLIBRI_SYSTEMD_SERVICE_NAME = 'dbus-@[email protected]' | ||
|
||
KOLIBRI_USER = '@KOLIBRI_USER@' | ||
KOLIBRI_DATA_DIR = '@KOLIBRI_DATA_DIR@' |