Commit 81b2d972 by Matthias Brugger Committed by Stéphane Graber

lxc-setcap.in: Set path to lxc-init

In lxc-setcap the path to lxc-init wasn't set right, so that a call to the script failed with an error. This patch sets the path to the right directory. Signed-off-by: 's avatarMatthias Brugger <matthias.bgg@gmail.com> Acked-by: 's avatarSerge E. Hallyn <serge.hallyn@ubuntu.com> Acked-by: 's avatarStéphane Graber <stgraber@ubuntu.com>
parent 169bf5e0
......@@ -60,7 +60,7 @@ lxc_setcaps()
setcap $LXC_UNSHARE_CAPS=ep @BINDIR@/lxc-unshare
setcap $LXC_NETSTAT_CAPS=ep @BINDIR@/lxc-netstat
setcap $LXC_CHECKPOINT_CAPS=ep @BINDIR@/lxc-checkpoint
setcap $LXC_INIT_CAPS=ep @LXCINITDIR@/lxc-init
setcap $LXC_INIT_CAPS=ep @LXCINITDIR@/lxc/lxc-init
test -e @LXCPATH@ || mkdir -p @LXCPATH@
chmod 0777 @LXCPATH@
......@@ -76,7 +76,7 @@ lxc_dropcaps()
setcap -r @BINDIR@/lxc-unshare
setcap -r @BINDIR@/lxc-netstat
setcap -r @BINDIR@/lxc-checkpoint
setcap -r @LXCINITDIR@/lxc-init
setcap -r @LXCINITDIR@/lxc/lxc-init
chmod 0755 @LXCPATH@
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment