Commit 3cd2da6
committed
mcptd: Replace root in suggested configs
Allow mctpd, which should be an unprivileged user, to run the daemon
with minimum capabilities.
mctpd needs CAP_NET_BIND_SERVICE and CAP_NET_ADMIN, so those have been
added to AmbientCapabilities in the service config.
The mctpd user has been allowed to own the au.com.codeconstruct.MCTP1
object as well as root. root also retains the right to own the object,
meaning the config remains valid if the daemon is run as root.
Unprivileged users can only access properties and are prohibited from
configuring the network.
Root and users in the mctp-admin group are permitted to interact with
any method the daemon provides.
For some setups, it may be useful to create a group with permissions to
use the RegisterTypeSupport or RegisterVDMTypeSupport methods so that
programs may register support without being given permission to modify
the network characteristics.
Signed-off-by: James Lee <james@codeconstruct.com.au>1 parent 79dad2d commit 3cd2da6
2 files changed
Lines changed: 27 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
5 | 30 | | |
6 | 31 | | |
7 | 32 | | |
8 | | - | |
9 | 33 | | |
10 | 34 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
0 commit comments