diff options
| author | liucy1998 <liucy1998@outlook.com> | 2020-10-27 04:35:48 +0000 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-10-27 07:50:27 +0100 |
| commit | 4ad9d45c6b9ab2ddc1666a2989dd71e2a0629d07 (patch) | |
| tree | 0493e81a2141ae0372c86b4d659e0b3b520612eb | |
| parent | 8b3eaf58f88f0e0a776866110d9baf8367dde8f0 (diff) | |
executor, pkg/csource: remove setpgrp() in sandbox_common()
Process group leader is not allowed to call setsid, thus remove setpgrp.
| -rw-r--r-- | CONTRIBUTORS | 1 | ||||
| -rw-r--r-- | executor/common_linux.h | 1 | ||||
| -rw-r--r-- | pkg/csource/generated.go | 1 |
3 files changed, 1 insertions, 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 |
