Debian Codegraph @

src/portable/profile/user/default/service.conf

raw
1 # The "default" security profile for services, i.e. a number of useful restrictions
2
3 [Service]
4 MountAPIVFS=yes
5 BindLogSockets=yes
6 BindReadOnlyPaths=/etc/machine-id
7 BindReadOnlyPaths=-/etc/resolv.conf
8 BindReadOnlyPaths=/run/dbus/system_bus_socket
9 RemoveIPC=yes
10 CapabilityBoundingSet=CAP_CHOWN CAP_DAC_OVERRIDE CAP_DAC_READ_SEARCH CAP_FOWNER \
11 CAP_FSETID CAP_IPC_LOCK CAP_IPC_OWNER CAP_KILL CAP_MKNOD CAP_NET_ADMIN \
12 CAP_NET_BIND_SERVICE CAP_NET_BROADCAST CAP_SETGID CAP_SETPCAP \
13 CAP_SETUID CAP_SYS_ADMIN CAP_SYS_CHROOT CAP_SYS_NICE CAP_SYS_RESOURCE
14 PrivateDevices=yes
15 PrivateUsers=yes
16 ProtectSystem=strict
17 ProtectKernelTunables=yes
18 ProtectKernelModules=yes
19 ProtectControlGroups=yes
20 RestrictAddressFamilies=AF_UNIX AF_NETLINK AF_INET AF_INET6
21 LockPersonality=yes
22 MemoryDenyWriteExecute=yes
23 RestrictRealtime=yes
24 RestrictNamespaces=yes
25 DelegateNamespaces=no
26 SystemCallFilter=@system-service
27 SystemCallErrorNumber=EPERM
28 SystemCallArchitectures=native