mirror of
https://github.com/yrutschle/sslh.git
synced 2025-06-19 00:13:52 +03:00
Merge pull request #96 from candrews/patch-1
Harden the systemd service
This commit is contained in:
commit
b33c65ed53
@ -6,6 +6,22 @@ After=network.target
|
|||||||
EnvironmentFile=/etc/conf.d/sslh
|
EnvironmentFile=/etc/conf.d/sslh
|
||||||
ExecStart=/usr/bin/sslh --foreground $DAEMON_OPTS
|
ExecStart=/usr/bin/sslh --foreground $DAEMON_OPTS
|
||||||
KillMode=process
|
KillMode=process
|
||||||
|
#Hardening
|
||||||
|
PrivateTmp=true
|
||||||
|
CapabilityBoundingSet=CAP_SETGID CAP_SETUID CAP_NET_BIND_SERVICE
|
||||||
|
AmbientCapabilities=CAP_NET_BIND_SERVICE
|
||||||
|
SecureBits=noroot-locked
|
||||||
|
ProtectSystem=strict
|
||||||
|
ProtectHome=true
|
||||||
|
ProtectKernelModules=true
|
||||||
|
ProtectKernelTunables=true
|
||||||
|
ProtectControlGroups=true
|
||||||
|
MountFlags=private
|
||||||
|
NoNewPrivileges=true
|
||||||
|
PrivateDevices=true
|
||||||
|
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX
|
||||||
|
MemoryDenyWriteExecute=true
|
||||||
|
DynamicUser=true
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
Loading…
x
Reference in New Issue
Block a user