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

Submitted by Cyrill Gorcunov on March 20, 2018, 9:43 p.m.

Details

Message ID 20180320214313.25326-25-gorcunov@gmail.com
State Rejected
Series "seccomp, v2: Add support for per-thread tracking"
Headers show

Commit Message

Cyrill Gorcunov March 20, 2018, 9:43 p.m.
From: Cyrill Gorcunov <gorcunov@openvz.org>

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

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

Patch hide | download patch | download mbox

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);
 	}
 }