aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Kennelly <ckennelly@google.com>2024-01-30 23:47:46 -0800
committerCopybara-Service <copybara-worker@google.com>2024-01-30 23:48:37 -0800
commitb9c84a1f75d282ff38ebed068bebe9960af9eb71 (patch)
treeab2494b1595e6a5e162068463aad5b0b2a3f2c80
parent0e98cceb32df218d718cc88d099eaf380857788d (diff)
downloadsandboxed-api-b9c84a1f75d282ff38ebed068bebe9960af9eb71.tar.gz
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
-rw-r--r--sandboxed_api/sandbox2/policybuilder.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sandboxed_api/sandbox2/policybuilder.cc b/sandboxed_api/sandbox2/policybuilder.cc
index ce9567c..a76bb18 100644
--- a/sandboxed_api/sandbox2/policybuilder.cc
+++ b/sandboxed_api/sandbox2/policybuilder.cc
@@ -772,6 +772,7 @@ PolicyBuilder& PolicyBuilder::AllowRestartableSequences(
AllowFutexOp(FUTEX_WAKE);
AllowRead();
AllowOpen();
+ AllowPoll();
AllowSyscall(__NR_close);
AddPolicyOnSyscall(__NR_rt_sigprocmask, {
ARG_32(0),