Skip to content

Commit f1f6733

Browse files
Replace root in suggested configs
Signed-off-by: James Lee <james@codeconstruct.com.au>
1 parent 79dad2d commit f1f6733

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

conf/mctpd-dbus.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
33
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
44
<busconfig>
5-
<policy user="root">
5+
<policy user="mctpd">
66
<allow own="au.com.codeconstruct.MCTP1"/>
77
<allow send_destination="au.com.codeconstruct.MCTP1"/>
88
<allow receive_sender="au.com.codeconstruct.MCTP1"/>

conf/mctpd.service

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ After=mctp-local.target
88
Type=dbus
99
BusName=au.com.codeconstruct.MCTP1
1010
ExecStart=/usr/sbin/mctpd
11+
User=mctpd
12+
AmbientCapabilities==CAP_NET_BIND_SERVICE CAP_NET_ADMIN
1113

1214
[Install]
1315
WantedBy=mctp.target

0 commit comments

Comments
 (0)