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
pull/171/head
Chris Kennelly 2024-01-30 23:47:46 -08:00 committed by Copybara-Service
parent 0e98cceb32
commit b9c84a1f75
1 changed files with 1 additions and 0 deletions

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),