From: Marc Fiuczynski Date: Fri, 17 Sep 2004 20:08:04 +0000 (+0000) Subject: fix for bind mount problem X-Git-Tag: after-util-vserver-0_30_208-revert~248 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=74596e430854eeacba39dc1f7b7b47c4c614b515;hp=a36216a812bc8b98bf5dfa9f2bb4a40cc3453095;p=util-vserver.git fix for bind mount problem --- diff --git a/src/planetlab.c b/src/planetlab.c index ad7a120..cc2035b 100644 --- a/src/planetlab.c +++ b/src/planetlab.c @@ -136,7 +136,7 @@ static void mount_proc(char *sandbox_root,uid_t uid) sprintf(target, "%s/proc", sandbox_root); target[len - 1] = '\0'; if (!proc_mounted(sandbox_root)) - mount(source, target, "proc", MS_RDONLY, NULL); + mount(source, target, "proc", MS_BIND | MS_RDONLY, NULL); free(target); }