Skip to content

Commit

Permalink
Add documentation for mode_group
Browse files Browse the repository at this point in the history
Signed-off-by: Tomi Leppänen <tomi.leppanen@jolla.com>
  • Loading branch information
Tomin1 committed May 29, 2020
1 parent 25e6ca1 commit 4be8b26
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/usb_moded-doc.txt
Expand Up @@ -170,6 +170,20 @@ but not all usb network related profiles might want it enabled.

If you want the device to load a dhcp server you need to configure this in the mode config, just like nat. (see lower)

USB moded supports access control of dynamic modes when built with --enable-sailfish-access-control.
Modes are allowed and denied based on the user of the process accessing the D-Bus API.
By default dynamic modes are allowed for users in sailfish-system but the group can be overridden in configuration.

For example:

[mode_group]
mtp_mode = users
developer_mode = developers

This allows mode called mtp_mode to users in "users" group and mode called developer_mode for users in "developers" group.
Users group includes all regular users which is less restrictive than the default.
Note that if the group doesn't exist access is denied.

Functional overview
--------------------

Expand Down

0 comments on commit 4be8b26

Please sign in to comment.