[26/28] seccomp: Allow to dump thread with different seccomps

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

Details

Message ID 20180320214313.25326-27-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>

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
---
 criu/seize.c | 8 --------
 1 file changed, 8 deletions(-)

Patch hide | download patch | download mbox

diff --git a/criu/seize.c b/criu/seize.c
index 5dfbab277581..38f9419022be 100644
--- a/criu/seize.c
+++ b/criu/seize.c
@@ -727,14 +727,6 @@  static int collect_threads(struct pstree_item *item)
 		if (seccomp_collect_entry(pid, t_creds.s.seccomp_mode))
 			goto err;
 
-		if (task_seccomp_entry->mode != t_creds.s.seccomp_mode) {
-			pr_err("Unsupported seccomp mode change: tids %d %d modes %d %d\n",
-			       item->pid->real, pid,
-			       task_seccomp_entry->mode,
-			       t_creds.s.seccomp_mode);
-			goto err;
-		}
-
 		if (ret == TASK_STOPPED) {
 			nr_stopped++;
 		}