mirror of
https://github.com/systemd/systemd
synced 2024-10-06 16:21:34 +00:00
units: set RestrictNamespaces=yes to networkd and resolved
Closes #8949.
This commit is contained in:
parent
b6887d7ae4
commit
46657f637c
|
@ -33,6 +33,7 @@ ProtectControlGroups=yes
|
|||
ProtectKernelModules=yes
|
||||
MemoryDenyWriteExecute=yes
|
||||
RestrictRealtime=yes
|
||||
RestrictNamespaces=yes
|
||||
RestrictAddressFamilies=AF_UNIX AF_NETLINK AF_INET AF_INET6 AF_PACKET
|
||||
SystemCallFilter=~@clock @cpu-emulation @debug @keyring @module @mount @obsolete @raw-io @reboot @swap
|
||||
SystemCallArchitectures=native
|
||||
|
|
|
@ -37,6 +37,7 @@ ProtectKernelTunables=yes
|
|||
ProtectKernelModules=yes
|
||||
MemoryDenyWriteExecute=yes
|
||||
RestrictRealtime=yes
|
||||
RestrictNamespaces=yes
|
||||
RestrictAddressFamilies=AF_UNIX AF_NETLINK AF_INET AF_INET6
|
||||
SystemCallFilter=~@clock @cpu-emulation @debug @keyring @module @mount @obsolete @raw-io @reboot @swap
|
||||
SystemCallArchitectures=native
|
||||
|
|
Loading…
Reference in a new issue