Debian Codegraph @

data/nm-priv-helper.service.in

raw
1 [Unit]
2 Description=NetworkManager Privileged Helper
3
4 #
5 # nm-priv-helper exists for privilege separation. It allows NetworkManager
6 # to run without certain capabilities, and ask nm-priv-helper
7 # for special operations where more privileges are required.
8 #
9
10 # While nm-priv-helper has privileges that NetworkManager has not, it
11 # does not mean that itself should run totally unconstrained. On the
12 # contrary, it also should only have permissions it requires.
13 #
14 # nm-priv-helper rejects all requests that come from any other than the
15 # name owner of "org.freedesktop.NetworkManager" (that is,
16 # NetworkManager process itself). It is thus only an implementation
17 # detail and provides no public API to the user.
18
19 [Service]
20 Type=dbus
21 BusName=org.freedesktop.nm_priv_helper
22 ExecStart=@libexecdir@/nm-priv-helper
23 NotifyAccess=main
24
25 # Extra configuration options. Set via `systemctl edit
26 # nm-priv-helper.service`:
27 #
28 # FOR TESTING ONLY: disable authentication to allow requests from
29 # everybody. Don't set this outside of testing!
30 #Environment=NM_PRIV_HELPER_NO_AUTH_FOR_TESTING=1
31 #
32 # The logging level for debug messages (to stdout).
33 #Environment=NM_PRIV_HELPER_LOG=TRACE
34 #
35 # nm-priv-helper will exit on idle after timeout. Set timeout here or
36 # set to 2147483647 for infinity.
37
38 #Environment=NM_PRIV_HELPER_IDLE_TIMEOUT_MSEC=10000
39
40
41 # Restrict:
42 AmbientCapabilities=
43 CapabilityBoundingSet=
44 PrivateDevices=true
45 PrivateMounts=true
46 PrivateNetwork=true
47 PrivateTmp=true
48 ProtectClock=true
49 ProtectControlGroups=true
50 ProtectHome=true
51 ProtectHostname=true
52 ProtectKernelLogs=true
53 ProtectKernelModules=true
54 ProtectKernelTunables=true
55 ProtectSystem=strict
56 RestrictAddressFamilies=
57 RestrictNamespaces=true
58 SystemCallFilter=~@clock
59 SystemCallFilter=~@cpu-emulation
60 SystemCallFilter=~@debug
61 SystemCallFilter=~@module
62 SystemCallFilter=~@mount
63 SystemCallFilter=~@obsolete
64 SystemCallFilter=~@privileged
65 SystemCallFilter=~@raw-io
66 SystemCallFilter=~@reboot
67 SystemCallFilter=~@swap
68 NoNewPrivileges=true
69 SupplementaryGroups=
70
71 # Grant:
72 CapabilityBoundingSet=CAP_DAC_OVERRIDE
73 PrivateUsers=no
74 RestrictAddressFamilies=AF_UNIX
75 SystemCallFilter=@resources