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
|
||||
|
||||
DevicePolicy=closed
|
||||
MemoryDenyWriteExecute=true
|
||||
PrivateDevices=true
|
||||
PrivateNetwork=false
|
||||
PrivateTmp=true
|
||||
|
@ -20,6 +22,9 @@ ProtectHome=true
|
|||
ProtectKernelModules=true
|
||||
ProtectKernelTunables=true
|
||||
ProtectSystem=strict
|
||||
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 AF_NETLINK
|
||||
RestrictNamespaces=true
|
||||
RestrictRealtime=true
|
||||
|
||||
CapabilityBoundingSet=
|
||||
NoNewPrivileges=true
|
||||
|
|
Loading…
Reference in a new issue