Commit e863f869 by Serge Hallyn Committed by GitHub

Merge pull request #1566 from brauner/2017-05-16/pin_rootfs_when_privileged

start: pin rootfs when privileged
parents bf2146ab 0ee35059
......@@ -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);
......
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