The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxc/pull/1566
This e-mail was sent by the LXC bot, direct replies will not reach the author unless they happen to be subscribed to this list. === Description (from pull-request) === Signed-off-by: Christian Brauner <[email protected]>
From 0ee3505984e5f7b63fa8ee6351af8b6638f5ff36 Mon Sep 17 00:00:00 2001 From: Christian Brauner <[email protected]> Date: Tue, 16 May 2017 00:42:30 +0200 Subject: [PATCH] start: pin rootfs when privileged Signed-off-by: Christian Brauner <[email protected]> --- src/lxc/start.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lxc/start.c b/src/lxc/start.c index 3963a40..f1b3f8e 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);
_______________________________________________ lxc-devel mailing list [email protected] http://lists.linuxcontainers.org/listinfo/lxc-devel
