From e57565dd5bae380122ba1b6c34cbba1d44f44d1f Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 22 Jan 2015 18:55:08 +0100 Subject: [PATCH] importd: run daemon at minimal capabilities --- units/systemd-importd.service.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/units/systemd-importd.service.in b/units/systemd-importd.service.in index b9cb97e6b..26759ea0f 100644 --- a/units/systemd-importd.service.in +++ b/units/systemd-importd.service.in @@ -12,8 +12,9 @@ Documentation=man:systemd-importd.service(8) [Service] ExecStart=@rootlibexecdir@/systemd-importd BusName=org.freedesktop.import1 +CapabilityBoundingSet=CAP_CHOWN CAP_FOWNER CAP_FSETID CAP_MKNOD CAP_SETFCAP CAP_SYS_ADMIN CAP_SETPCAP +NoNewPrivileges=yes WatchdogSec=1min PrivateTmp=yes -PrivateDevices=yes ProtectSystem=full ProtectHome=yes -- 2.30.2