|
@@ -2967,6 +2967,8 @@ SYSCALL_DEFINE2(pivot_root, const char __user *, new_root,
|
|
/* mount new_root on / */
|
|
/* mount new_root on / */
|
|
attach_mnt(new_mnt, real_mount(root_parent.mnt), root_mp);
|
|
attach_mnt(new_mnt, real_mount(root_parent.mnt), root_mp);
|
|
touch_mnt_namespace(current->nsproxy->mnt_ns);
|
|
touch_mnt_namespace(current->nsproxy->mnt_ns);
|
|
|
|
+ /* A moved mount should not expire automatically */
|
|
|
|
+ list_del_init(&new_mnt->mnt_expire);
|
|
unlock_mount_hash();
|
|
unlock_mount_hash();
|
|
chroot_fs_refs(&root, &new);
|
|
chroot_fs_refs(&root, &new);
|
|
put_mountpoint(root_mp);
|
|
put_mountpoint(root_mp);
|