summaryrefslogtreecommitdiff
blob: 26d39fd30f93082b86b2e4561f1e55bcae4c8dc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
Index: linux-2.6.16/fs/namespace.c
===================================================================
--- linux-2.6.16.orig/fs/namespace.c
+++ linux-2.6.16/fs/namespace.c
@@ -406,7 +406,7 @@ static int show_vfsmnt(struct seq_file *
 
 	if (vx_flags(VXF_HIDE_MOUNT, 0))
 		return 0;
-	if (!mnt_is_reachable(mnt))
+	if (!mnt_is_reachable(mnt) && !vx_check(0, VX_WATCH))
 		return 0;
 
 	if (!vx_check(0, VX_ADMIN|VX_WATCH) &&