From 3dd4243ea30b0f2bdaef525660dd999e5f47cc09 Mon Sep 17 00:00:00 2001 From: Enrico Scholz Date: Tue, 10 Feb 2004 17:05:36 +0000 Subject: [PATCH 1/1] 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 --- util-vserver/src/secure-mount.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { -- 1.8.1.5