start: pin rootfs when privileged

parent 179029df
...@@ -1153,7 +1153,7 @@ static int lxc_spawn(struct lxc_handler *handler) ...@@ -1153,7 +1153,7 @@ static int lxc_spawn(struct lxc_handler *handler)
* it readonly. * it readonly.
* If the container is unprivileged then skip rootfs pinning. * 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); handler->pinfd = pin_rootfs(handler->conf->rootfs.path);
if (handler->pinfd == -1) if (handler->pinfd == -1)
INFO("Failed to pin the rootfs for container \"%s\".", handler->name); INFO("Failed to pin the rootfs for container \"%s\".", handler->name);
......
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