VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   33 Branches   55 Tags
author: Eric W. Biederman <ebiederm@xmission.com> 2013-03-30 01:35:18 -0700 committer: Eric W. Biederman <ebiederm@xmission.com> 2013-08-26 18:42:15 -0700 commit: 4ce5d2b1a8fde84c0eebe70652cf28b9beda6b4e parent: 21e851943e31022731cd5fad386ca8fb552dbe64
Commit Summary:
vfs: Don't copy mount bind mounts of /proc/<pid>/ns/mnt between namespaces
Diffstat:
1 file changed, 3 insertions, 1 deletion
diff --git a/fs/pnode.h b/fs/pnode.h
index b091445c1c4a..59e7eda1851e 100644
--- a/fs/pnode.h
+++ b/fs/pnode.h
@@ -19,11 +19,14 @@
 
 #define CL_EXPIRE    		0x01
 #define CL_SLAVE     		0x02
-#define CL_COPY_ALL 		0x04
+#define CL_COPY_UNBINDABLE	0x04
 #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_ALL		(CL_COPY_UNBINDABLE | CL_COPY_MNT_NS_FILE)
 
 static inline void set_mnt_shared(struct mount *mnt)
 {