add CapabilityBoundingSet=~CAP_SYS_ADMIN

This commit is contained in:
Mikhail Novosyolov 2018-10-08 14:55:47 +03:00
parent 0234b5510d
commit 43716ab4e0

View file

@ -13,6 +13,7 @@ ExecStart=/usr/sbin/dhcpd -pf /run/dhcpd/dhcpd.pid -cf $CONFIGFILE -lf $LEASEFIL
PIDFile=/run/dhcpd/dhcpd.pid PIDFile=/run/dhcpd/dhcpd.pid
User=isc-dhcpd User=isc-dhcpd
AmbientCapabilities=CAP_NET_BIND_SERVICE CAP_NET_RAW AmbientCapabilities=CAP_NET_BIND_SERVICE CAP_NET_RAW
CapabilityBoundingSet=~CAP_SYS_ADMIN
ProtectSystem=full ProtectSystem=full
ProtectHome=true ProtectHome=true
KillSignal=SIGINT KillSignal=SIGINT