From: Christian Brauner Date: Mon, 15 May 2017 22:42:30 +0000 (+0200) Subject: start: pin rootfs when privileged X-Git-Tag: lxc-2.1.0~127^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1566%2Fhead;p=thirdparty%2Flxc.git start: pin rootfs when privileged Signed-off-by: Christian Brauner --- diff --git a/src/lxc/start.c b/src/lxc/start.c index 3963a406c..f1b3f8e11 100644 --- a/src/lxc/start.c +++ b/src/lxc/start.c @@ -1153,7 +1153,7 @@ static int lxc_spawn(struct lxc_handler *handler) * it readonly. * If the container is unprivileged then skip rootfs pinning. */ - if (wants_to_map_ids) { + if (!wants_to_map_ids) { handler->pinfd = pin_rootfs(handler->conf->rootfs.path); if (handler->pinfd == -1) INFO("Failed to pin the rootfs for container \"%s\".", handler->name);