Commit 7ded5fa7 by Josh Soref

spelling: userns

Signed-off-by: 's avatarJosh Soref <jsoref@gmail.com>
parent ae52f396
...@@ -1404,7 +1404,7 @@ int lxc_chroot(const struct lxc_rootfs *rootfs) ...@@ -1404,7 +1404,7 @@ int lxc_chroot(const struct lxc_rootfs *rootfs)
* unmounted between read operations from the mountinfo. So we need to * unmounted between read operations from the mountinfo. So we need to
* read mountinfo a few times. * read mountinfo a few times.
* *
* This loop can be skipped if a container uses unserns, because all * This loop can be skipped if a container uses userns, because all
* inherited mounts are locked and we should live with all this trash. * inherited mounts are locked and we should live with all this trash.
*/ */
for (;;) { for (;;) {
...@@ -1447,7 +1447,7 @@ int lxc_chroot(const struct lxc_rootfs *rootfs) ...@@ -1447,7 +1447,7 @@ int lxc_chroot(const struct lxc_rootfs *rootfs)
break; break;
} }
/* This also can be skipped if a container uses unserns. */ /* This also can be skipped if a container uses userns. */
(void)umount2("./proc", MNT_DETACH); (void)umount2("./proc", MNT_DETACH);
/* It is weird, but chdir("..") moves us in a new root */ /* It is weird, but chdir("..") moves us in a new root */
......
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