[CRIU] [PATCH 24/27] seccomp: Drop filter mode on tsync propagation
    Cyrill Gorcunov 
    gorcunov at openvz.org
       
    Thu Mar  1 15:41:46 MSK 2018
    
    
  
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