Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[timed] Limit settings change to sailfish-datetime group. Fixes JB#47634
All user accounts must use shared clock settings and it must be possible to deny secondary accounts from making system time / timezone changes. Shared settings are stored in /var/lib/timed/shared_settings directory. The directory is set up so that it is world readable, but writable only by members of sailfish-datetime group. When possible, migrate private settings from /home/nemo to the shared settings directory. If timed is running as a user that does not have permissions to change shared settings, deny change requests received over D-Bus without trying to act on them. Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
- Loading branch information
Showing
8 changed files
with
122 additions
and
25 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
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,4 +1,5 @@ | ||
data_directory = ".timed", | ||
shared_events_directory = "/var/lib/timed/shared_events", | ||
shared_settings_directory = "/var/lib/timed/shared_settings", | ||
events_file = "events.data", | ||
settings_file = "settings.data" . |
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,4 +1,5 @@ | ||
data_directory = ".timed", | ||
shared_events_directory = "/var/lib/timed/shared_events", | ||
shared_settings_directory = "/var/lib/timed/shared_settings", | ||
events_file = "events.data", | ||
settings_file = "settings.data" . |