Default to no attribute change for bind mounts.
authorDaniel Hokka Zakrisson <daniel@hozac.com>
Sat, 21 Nov 2009 09:44:00 +0000 (09:44 +0000)
committerDaniel Hokka Zakrisson <daniel@hozac.com>
Sat, 21 Nov 2009 09:44:00 +0000 (09:44 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2859 94cd875c-1c1d-0410-91d2-eb244daf1a30

src/secure-mount.c

index 4cf996f..1a3bc19 100644 (file)
@@ -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;