Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[dbus] Check sender uid for mode restrictions. Fixes JB#48441
Check sender uid to deny access for modes that are restricted. Prevent non-owner users from hiding or unhiding modes. Add get_allowed_modes_for_user method that lists only those methods that user may choose. Set last seen user based on uid that has called get_allowed_modes_for_user last. This is not a perfect solution by any means since it can be easily confused by calling it from command line as root but generally no user other than the active one should call it. Later when there is a proper way to get the active user this can be improved. Signed-off-by: Tomi Leppänen <tomi.leppanen@jolla.com>
- Loading branch information
Showing
3 changed files
with
54 additions
and
19 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