From 4ad9d45c6b9ab2ddc1666a2989dd71e2a0629d07 Mon Sep 17 00:00:00 2001 From: liucy1998 Date: Tue, 27 Oct 2020 04:35:48 +0000 Subject: executor, pkg/csource: remove setpgrp() in sandbox_common() Process group leader is not allowed to call setsid, thus remove setpgrp. --- CONTRIBUTORS | 1 + executor/common_linux.h | 1 - pkg/csource/generated.go | 1 - 3 files changed, 1 insertion(+), 2 deletions(-) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index d3646f628..607849f34 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -80,3 +80,4 @@ VMware Suraj K Suresh Palash Oswal Tiger Gao +Congyu Liu \ No newline at end of file diff --git a/executor/common_linux.h b/executor/common_linux.h index 76f75c316..1d372af7f 100644 --- a/executor/common_linux.h +++ b/executor/common_linux.h @@ -3559,7 +3559,6 @@ static void loop(); static void sandbox_common() { prctl(PR_SET_PDEATHSIG, SIGKILL, 0, 0, 0); - setpgrp(); setsid(); #if SYZ_EXECUTOR || __NR_syz_init_net_socket || SYZ_DEVLINK_PCI diff --git a/pkg/csource/generated.go b/pkg/csource/generated.go index 062398673..489c8804b 100644 --- a/pkg/csource/generated.go +++ b/pkg/csource/generated.go @@ -7807,7 +7807,6 @@ static void loop(); static void sandbox_common() { prctl(PR_SET_PDEATHSIG, SIGKILL, 0, 0, 0); - setpgrp(); setsid(); #if SYZ_EXECUTOR || __NR_syz_init_net_socket || SYZ_DEVLINK_PCI -- cgit mrf-deployment