summaryrefslogtreecommitdiff
path: root/fs/pnode.h
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2019-01-30 13:15:45 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2019-01-30 17:14:50 -0500
commit3bd045cc9c4be2049602b47505256b43908b4e2f (patch)
tree37ea999a7cf27e207e4112a9a908c6cab078efd7 /fs/pnode.h
parent6d7fbce7da0cd06ff3f3f30e009a15a6243f0bc0 (diff)
downloadlinux-rpi-3bd045cc9c4be2049602b47505256b43908b4e2f.tar.gz
linux-rpi-3bd045cc9c4be2049602b47505256b43908b4e2f.tar.bz2
linux-rpi-3bd045cc9c4be2049602b47505256b43908b4e2f.zip
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>
Diffstat (limited to 'fs/pnode.h')
-rw-r--r--fs/pnode.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/pnode.h b/fs/pnode.h
index dc87e65becd2..3960a83666cf 100644
--- a/fs/pnode.h
+++ b/fs/pnode.h
@@ -27,8 +27,7 @@
#define CL_MAKE_SHARED 0x08
#define CL_PRIVATE 0x10
#define CL_SHARED_TO_SLAVE 0x20
-#define CL_UNPRIVILEGED 0x40
-#define CL_COPY_MNT_NS_FILE 0x80
+#define CL_COPY_MNT_NS_FILE 0x40
#define CL_COPY_ALL (CL_COPY_UNBINDABLE | CL_COPY_MNT_NS_FILE)