Security/Drops the sysadmin privilege from the daemon

This commit is contained in:
shibayashi 2018-12-28 21:09:48 +01:00
parent 3370924b8b
commit 64035201b5
No known key found for this signature in database
GPG key ID: C10662A33EB28508

View file

@ -21,6 +21,8 @@ ProtectSystem=full
PrivateDevices=false
; Ensures that the service process and all its children can never gain new privileges through execve().
NoNewPrivileges=true
; Drops the sysadmin capability from the daemon.
CapabilityBoundingSet=~CAP_SYS_ADMIN
[Install]
WantedBy=multi-user.target