Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[timed] Add support for shared alarm events. Fixes JB#47635
We need to be able to: - Differentiate between private and shared alarm events - Retain behavioral and dbus api backwards compatibility - Access shared events on bootup, as any user, and without performing interactive tasks such as unlocking encrypted home partition - Maintain uniqueness of cookies regardless of which user is considered as the active one Add "Shared" event flag that can be modified via timed D-Bus interface. All already existing alarm events - or new ones created without setting the shared flag - will behave just as before. Shared event data is stored (outside possibly encrypted home partition) under /var/lib/timed/shared_events directory. The directory is owned by root:sailfish-alarms and has setgid bit set - so that files created in there inherit group from directory and remain readable and writable by all members of "sailfish-alarms" group. Shared events have cookie number with bit 30 set - which effectively puts shared and private events in separate cookie "namespaces." Caveat: Reserving one cookie bit for shared/private differentiation in practice cuts the number of possible cookies from 2 billion down to just one billion - it is assumed that this does not affect any users. Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
- Loading branch information
Showing
17 changed files
with
283 additions
and
68 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
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
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,3 +1,4 @@ | ||
data_directory = ".timed", | ||
shared_events_directory = "/var/lib/timed/shared_events", | ||
events_file = "events.data", | ||
settings_file = "settings.data" . |
Oops, something went wrong.