separate copying and locking mount tree on cross-userns copies
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 30 Jan 2019 18:15:45 +0000 (13:15 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 30 Jan 2019 22:14:50 +0000 (17:14 -0500)
commit3bd045cc9c4be2049602b47505256b43908b4e2f
tree37ea999a7cf27e207e4112a9a908c6cab078efd7
parent6d7fbce7da0cd06ff3f3f30e009a15a6243f0bc0
separate copying and locking mount tree on cross-userns copies

Rather than having propagate_mnt() check doing unprivileged copies,
lock them before commit_tree().

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namespace.c
fs/pnode.c
fs/pnode.h