From: Daniel Hokka Zakrisson Date: Sat, 21 Nov 2009 09:44:00 +0000 (+0000) Subject: Default to no attribute change for bind mounts. X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54960d2e4b81d3cb3845365c06e0eea6efae15f5;p=util-vserver.git 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 --- 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;