systemd: Additional service hardening.
This commit is contained in:
parent
8c722dece1
commit
4f96088167
1 changed files with 5 additions and 0 deletions
|
@ -11,6 +11,8 @@ ExecStart=/usr/bin/python3 -m forwardxmpp --config-file /etc/forwardxmpp/config.
|
||||||
|
|
||||||
DynamicUser=true
|
DynamicUser=true
|
||||||
|
|
||||||
|
DevicePolicy=closed
|
||||||
|
MemoryDenyWriteExecute=true
|
||||||
PrivateDevices=true
|
PrivateDevices=true
|
||||||
PrivateNetwork=false
|
PrivateNetwork=false
|
||||||
PrivateTmp=true
|
PrivateTmp=true
|
||||||
|
@ -20,6 +22,9 @@ ProtectHome=true
|
||||||
ProtectKernelModules=true
|
ProtectKernelModules=true
|
||||||
ProtectKernelTunables=true
|
ProtectKernelTunables=true
|
||||||
ProtectSystem=strict
|
ProtectSystem=strict
|
||||||
|
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 AF_NETLINK
|
||||||
|
RestrictNamespaces=true
|
||||||
|
RestrictRealtime=true
|
||||||
|
|
||||||
CapabilityBoundingSet=
|
CapabilityBoundingSet=
|
||||||
NoNewPrivileges=true
|
NoNewPrivileges=true
|
||||||
|
|
Loading…
Reference in a new issue