systemd: Additional service hardening.

This commit is contained in:
Brett Smith 2020-01-27 10:05:03 -05:00
parent 8c722dece1
commit 4f96088167

View file

@ -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