Skip to content

Commit

Permalink
remove useless capabilities and use standard environment in systemd
Browse files Browse the repository at this point in the history
  • Loading branch information
yrutschle committed Apr 10, 2024
1 parent a80d79f commit fee8491
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions scripts/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ Description=SSL/SSH multiplexer (select mode) for %I
After=network.target

[Service]
EnvironmentFile=/etc/conf.d/sslh
EnvironmentFile=/etc/default/sslh
ExecStart=/usr/sbin/sslh-select -F/etc/sslh/%I.cfg -f $DAEMON_OPTS
KillMode=process
#Hardening
PrivateTmp=true
CapabilityBoundingSet=CAP_SETGID CAP_SETUID CAP_NET_BIND_SERVICE
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
AmbientCapabilities=CAP_NET_BIND_SERVICE
SecureBits=noroot-locked
ProtectSystem=strict
Expand Down
2 changes: 1 addition & 1 deletion scripts/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Description=SSL/SSH multiplexer (fork mode) for %I
After=network.target

[Service]
EnvironmentFile=/etc/conf.d/sslh
EnvironmentFile=/etc/default/sslh
ExecStart=/usr/sbin/sslh -F/etc/sslh/%I.cfg -f $DAEMON_OPTS
KillMode=process
#Hardening
Expand Down

0 comments on commit fee8491

Please sign in to comment.