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