From 54960d2e4b81d3cb3845365c06e0eea6efae15f5 Mon Sep 17 00:00:00 2001 From: Daniel Hokka Zakrisson Date: Sat, 21 Nov 2009 09:44:00 +0000 Subject: [PATCH] Default to no attribute change for bind mounts. git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2859 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- src/secure-mount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/secure-mount.c b/src/secure-mount.c index 4cf996f..1a3bc19 100644 --- a/src/secure-mount.c +++ b/src/secure-mount.c @@ -460,7 +460,7 @@ mountSingle(struct MountInfo const *mnt, struct Options const *opt) return false; } if ((mnt->flag & MS_BIND) && - (mnt->flag & ~(MS_BIND|MS_REC))) { + (mnt->mask & ~(MS_BIND|MS_REC))) { /* This is needed to put us in the new mountpoint */ if (!secureChdir(mnt->dst, opt)) return false; -- 1.8.1.5