Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[usb-moded] Add function to check for permission. JB#48441
Add usbmoded_is_mode_permitted function to check if user is allowed to set given mode. Root is always allowed to set any mode. Non-dynamic modes are always allowed for all users. Dynamic modes can be set if user belongs to sailfish-system. Signed-off-by: Tomi Leppänen <tomi.leppanen@jolla.com>
- Loading branch information
Showing
2 changed files
with
41 additions
and
0 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