Skip to content
Snippets Groups Projects
Commit 715507b5 authored by ale's avatar ale
Browse files

Add systemd hardening to sso-server

parent 929bcfd5
No related branches found
No related tags found
No related merge requests found
[Unit]
Description=SSO Server
After=auth-server.socket
After=network.target auth-server.socket
[Service]
User=sso-server
......@@ -9,6 +9,15 @@ EnvironmentFile=-/etc/default/sso-server
ExecStart=/usr/bin/sso-server --addr $ADDR
Restart=always
# Hardening
NoNewPrivileges=yes
PrivateTmp=yes
PrivateDevices=yes
ProtectHome=yes
ProtectSystem=full
ReadOnlyDirectories=/
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
[Install]
WantedBy=multi-user.target
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment