Allow restartable sequences access to poll.

This is used as part of reading the proc files that tell us how many CPUs are
present.

PiperOrigin-RevId: 602953725
Change-Id: I0b64c8d3992119bb956d262cd0f39500a680cc60
This commit is contained in:
Chris Kennelly 2024-01-30 23:47:46 -08:00 committed by Copybara-Service
parent 0e98cceb32
commit b9c84a1f75

View File

@ -772,6 +772,7 @@ PolicyBuilder& PolicyBuilder::AllowRestartableSequences(
AllowFutexOp(FUTEX_WAKE);
AllowRead();
AllowOpen();
AllowPoll();
AllowSyscall(__NR_close);
AddPolicyOnSyscall(__NR_rt_sigprocmask, {
ARG_32(0),