From 7bd4179b9b2eae4ae594611ce5b74ee7a42d4b07 Mon Sep 17 00:00:00 2001 From: Justine Tunney Date: Sun, 7 Aug 2022 22:58:33 -0700 Subject: [PATCH] Add restart_syscall to pledge() --- libc/calls/pledge.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libc/calls/pledge.c b/libc/calls/pledge.c index 1968a28b1..77b2e50e9 100644 --- a/libc/calls/pledge.c +++ b/libc/calls/pledge.c @@ -96,6 +96,7 @@ static const uint16_t kPledgeLinuxDefault[] = { // the bpf script or the end. static const uint16_t kPledgeLinuxStdio[] = { __NR_linux_sigreturn, // + __NR_linux_restart_syscall, // __NR_linux_exit_group, // __NR_linux_sched_yield, // __NR_linux_sched_getaffinity, //