From: Enrico Scholz Date: Tue, 10 Feb 2004 17:05:36 +0000 (+0000) Subject: recognize 'rbind' in fstab X-Git-Tag: VERSION_0_10~684 X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3dd4243ea30b0f2bdaef525660dd999e5f47cc09;hp=1171042cfba2870d05f6dcc771f6331fb5c9ad78;p=util-vserver.git recognize 'rbind' in fstab use internal mount(2) on MOVE too git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@871 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- diff --git a/util-vserver/src/secure-mount.c b/util-vserver/src/secure-mount.c index 81fee1f..5e48430 100644 --- a/util-vserver/src/secure-mount.c +++ b/util-vserver/src/secure-mount.c @@ -100,6 +100,7 @@ static struct FstabOptions { unsigned long const and_flag; bool const is_dflt; } const FSTAB_OPTIONS[] = { + { "rbind", MS_BIND|MS_REC, ~0, false }, { "bind", MS_BIND, ~0, false }, { "move", MS_MOVE, ~0, false }, #if 0 @@ -375,7 +376,7 @@ mountSingle(struct MountInfo const *mnt, struct Options const *opt) } } - if (mnt->flags&MS_BIND) { + if (mnt->flags & (MS_BIND|MS_MOVE)) { if (mount(mnt->src, ".", mnt->type ? mnt->type : "", mnt->flags, mnt->data)==-1) {