[CRIU] [PATCH 2/9] mount: don't mark mounts as private twice

Andrey Vagin avagin at openvz.org
Thu Oct 23 06:49:00 PDT 2014


We do the same action twice. It's typo.

Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
 mount.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/mount.c b/mount.c
index 89eb160..07f6db4 100644
--- a/mount.c
+++ b/mount.c
@@ -1492,11 +1492,6 @@ static int cr_pivot_root(char *root)
 		return -1;
 	}
 
-	if (mount("none", put_root, "none", MS_REC|MS_PRIVATE, NULL)) {
-		pr_perror("Can't remount root with MS_PRIVATE");
-		return -1;
-	}
-
 	if (umount2(put_root, MNT_DETACH)) {
 		pr_perror("Can't umount %s", put_root);
 		return -1;
-- 
1.9.3



More information about the CRIU mailing list