From 74596e430854eeacba39dc1f7b7b47c4c614b515 Mon Sep 17 00:00:00 2001 From: Marc Fiuczynski Date: Fri, 17 Sep 2004 20:08:04 +0000 Subject: [PATCH] fix for bind mount problem --- src/planetlab.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.43.0