From: Lennart Poettering Date: Mon, 25 Apr 2016 19:38:56 +0000 (+0200) Subject: machined: add CAP_MKNOD to capabilities to run with (#3116) X-Git-Tag: v230~136 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c34b73d050464db22197defbe5841bea769f1863;p=thirdparty%2Fsystemd.git machined: add CAP_MKNOD to capabilities to run with (#3116) Container images from Debian or suchlike contain device nodes in /dev. Let's make sure we can clone them properly, hence pass CAP_MKNOD to machined. Fixes: #2867 #465 --- diff --git a/units/systemd-machined.service.in b/units/systemd-machined.service.in index 3710c595ca1..685baab21d4 100644 --- a/units/systemd-machined.service.in +++ b/units/systemd-machined.service.in @@ -15,7 +15,7 @@ After=machine.slice [Service] ExecStart=@rootlibexecdir@/systemd-machined BusName=org.freedesktop.machine1 -CapabilityBoundingSet=CAP_KILL CAP_SYS_PTRACE CAP_SYS_ADMIN CAP_SETGID CAP_SYS_CHROOT CAP_DAC_READ_SEARCH CAP_DAC_OVERRIDE CAP_CHOWN CAP_FOWNER CAP_FSETID +CapabilityBoundingSet=CAP_KILL CAP_SYS_PTRACE CAP_SYS_ADMIN CAP_SETGID CAP_SYS_CHROOT CAP_DAC_READ_SEARCH CAP_DAC_OVERRIDE CAP_CHOWN CAP_FOWNER CAP_FSETID CAP_MKNOD WatchdogSec=3min # Note that machined cannot be placed in a mount namespace, since it