add support for getcpu() system call to pledge()

This change fixes the following redbean lua tests:

- `encodelua_test.lua`
- `encodejson_test.lua`
- `jsonorg_fail_test.lua`
- `base64_test.lua`
- `jsonorg_pass_test.lua`
- `futex_test.lua`

Without it, these tests fail with SIGSYS on Linux
This commit is contained in:
Derek Meer 2025-03-20 20:13:59 -07:00
parent a8ed4fdd09
commit 542d72b43b

View file

@ -694,6 +694,7 @@ static const uint16_t kPledgeStdio[] = {
__NR_linux_sched_getaffinity, //
__NR_linux_sched_setaffinity, //
__NR_linux_sigtimedwait, //
__NR_linux_getcpu, //
};
static const uint16_t kPledgeFlock[] = {