From 4a94cab3b29bf417d7b52369ce282733a8e0e7b6 Mon Sep 17 00:00:00 2001 From: Michael Santos Date: Sun, 10 Dec 2023 08:28:20 -0500 Subject: [PATCH] termux/android: seccomp: allow prctl(2) --- src/restrict_process_seccomp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/restrict_process_seccomp.c b/src/restrict_process_seccomp.c index 27f62df..d0f0e55 100644 --- a/src/restrict_process_seccomp.c +++ b/src/restrict_process_seccomp.c @@ -450,6 +450,9 @@ int restrict_process_stdin(xmppipe_state_t *state) { #ifdef __NR_restart_syscall SC_ALLOW(restart_syscall), #endif +#ifdef __NR_prctl + SC_ALLOW(prctl), +#endif /* Default deny */ BPF_STMT(BPF_RET + BPF_K, SECCOMP_FILTER_FAIL)};