From 46fa9a5ebe8b30b44fd52be890fe29fd0346edf2 Mon Sep 17 00:00:00 2001 From: Daniel Hokka Zakrisson Date: Fri, 3 Apr 2009 16:41:16 +0000 Subject: [PATCH] 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 --- src/secure-mount.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; -- 1.8.1.5