mirror of
https://github.com/skeeto/endlessh.git
synced 2024-11-29 00:13:07 +01:00
add optional AmbientCapabilities to systemd unit
If a user wants to bind to a privileged port (<1024) our current systemd unit fails to provide enough capabilities to endlessh binary. So, a user can modify `/etc/endlessh/config` to have `Port=22` or similar and then check out the systemd unit to enable the extra attribute.
This commit is contained in:
parent
964a860634
commit
4321fe93e5
@ -21,6 +21,13 @@ PrivateTmp=true
|
||||
PrivateDevices=true
|
||||
ProtectSystem=full
|
||||
ProtectHome=true
|
||||
|
||||
## If you want Endlessh to bind on ports < 1024
|
||||
## 1) run:
|
||||
## setcap 'cap_net_bind_service=+ep' /usr/local/bin/endlessh
|
||||
## 2) uncomment following line
|
||||
#AmbientCapabilities=CAP_NET_BIND_SERVICE
|
||||
|
||||
NoNewPrivileges=true
|
||||
ConfigurationDirectory=endlessh
|
||||
PrivateUsers=true
|
||||
@ -31,3 +38,4 @@ MemoryDenyWriteExecute=true
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user