Debian Codegraph @

src/portable/profile/system/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 DynamicUser=yes
10 RemoveIPC=yes
11 CapabilityBoundingSet=CAP_CHOWN CAP_DAC_OVERRIDE CAP_DAC_READ_SEARCH CAP_FOWNER \
12 CAP_FSETID CAP_IPC_LOCK CAP_IPC_OWNER CAP_KILL CAP_MKNOD CAP_NET_ADMIN \
13 CAP_NET_BIND_SERVICE CAP_NET_BROADCAST CAP_SETGID CAP_SETPCAP \
14 CAP_SETUID CAP_SYS_ADMIN CAP_SYS_CHROOT CAP_SYS_NICE CAP_SYS_RESOURCE
15 PrivateDevices=yes
16 PrivateUsers=yes
17 ProtectSystem=strict
18 ProtectHome=yes
19 ProtectKernelTunables=yes
20 ProtectKernelModules=yes
21 ProtectControlGroups=yes
22 RestrictAddressFamilies=AF_UNIX AF_NETLINK AF_INET AF_INET6
23 LockPersonality=yes
24 MemoryDenyWriteExecute=yes
25 RestrictRealtime=yes
26 RestrictNamespaces=yes
27 DelegateNamespaces=no
28 SystemCallFilter=@system-service
29 SystemCallErrorNumber=EPERM
30 SystemCallArchitectures=native