Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4068367c authored by Andrei Vagin's avatar Andrei Vagin Committed by Al Viro
Browse files

fs: don't forget to put old mntns in mntns_install



Fixes: 4f757f3c ("make sure that mntns_install() doesn't end up with referral for root")
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarAndrei Vagin <avagin@openvz.org>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 81be24d2
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -3488,6 +3488,8 @@ static int mntns_install(struct nsproxy *nsproxy, struct ns_common *ns)
		return err;
	}

	put_mnt_ns(old_mnt_ns);

	/* Update the pwd and root */
	set_fs_pwd(fs, &root);
	set_fs_root(fs, &root);