[CRIU] [PATCH 24/28] seccomp: Drop filter mode on tsync propagation

Cyrill Gorcunov gorcunov at gmail.com
Wed Mar 21 00:43:09 MSK 2018


From: Cyrill Gorcunov <gorcunov at openvz.org>

So there will be no record for a thread inside image file.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 criu/seccomp.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/criu/seccomp.c b/criu/seccomp.c
index 3416ba0c6060..625fc5b9d866 100644
--- a/criu/seccomp.c
+++ b/criu/seccomp.c
@@ -261,6 +261,10 @@ static void try_use_tsync(struct seccomp_entry *leader, struct pstree_item *item
 		if (entry == leader)
 			continue;
 
+		pr_debug("\t Disable filter on tid_rea %d, will be propagated\n",
+			 entry->tid_real);
+
+		entry->mode = SECCOMP_MODE_DISABLED;
 		seccomp_free_chain(entry);
 	}
 }
-- 
2.14.3



More information about the CRIU mailing list