From: Daniel Hokka Zakrisson Date: Fri, 3 Apr 2009 16:41:16 +0000 (+0000) Subject: The remount still needs to have MS_BIND set. X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=46fa9a5ebe8b30b44fd52be890fe29fd0346edf2;p=util-vserver.git The remount still needs to have MS_BIND set. git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2832 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- diff --git a/src/secure-mount.c b/src/secure-mount.c index 57fe874..a58edf3 100644 --- a/src/secure-mount.c +++ b/src/secure-mount.c @@ -448,8 +448,7 @@ mountSingle(struct MountInfo const *mnt, struct Options const *opt) return false; if (mount(mnt->src, ".", mnt->type ? mnt->type : "", - ((mnt->flag & ~(MS_BIND|MS_REC)) | - MS_REMOUNT), NULL) == -1 && + (mnt->flag | MS_REMOUNT), NULL) == -1 && errno != EBUSY) { /* Returned on older kernels */ perror("secure-mount: mount()"); return false;