[CRIU] [RFC 2/4] dump: always open dumpee's /proc

Tycho Andersen tycho.andersen at canonical.com
Thu Feb 11 09:37:33 PST 2016


We'll need this to figure out whether a dumpee is in a cgroup namespace.

Signed-off-by: Tycho Andersen <tycho.andersen at canonical.com>
---
 cr-dump.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cr-dump.c b/cr-dump.c
index 385b7bb..a7c2605 100644
--- a/cr-dump.c
+++ b/cr-dump.c
@@ -1229,7 +1229,7 @@ static int dump_one_task(struct pstree_item *item)
 		BUG();
 	}
 
-	if (root_ns_mask & CLONE_NEWPID && root_item == item) {
+	if (root_item == item) {
 		int pfd;
 
 		pfd = parasite_get_proc_fd_seized(parasite_ctl);
-- 
2.6.4



More information about the CRIU mailing list