From 8979b47d7fd2c0712432f72e8d604f1b7decc309 Mon Sep 17 00:00:00 2001 From: Wiktor Garbacz Date: Tue, 7 Dec 2021 05:03:35 -0800 Subject: [PATCH] Remove arg filter on `rt_sigprocmask` in `AllowStaticStartup` PiperOrigin-RevId: 414692179 Change-Id: If2a5f741ad38f626287988911b85bef7a711f80a --- sandboxed_api/sandbox2/policybuilder.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sandboxed_api/sandbox2/policybuilder.cc b/sandboxed_api/sandbox2/policybuilder.cc index b6191a5..37905e3 100644 --- a/sandboxed_api/sandbox2/policybuilder.cc +++ b/sandboxed_api/sandbox2/policybuilder.cc @@ -611,10 +611,7 @@ PolicyBuilder& PolicyBuilder::AllowStaticStartup() { JEQ32(__SIGRTMIN + 1, ALLOW), }); - AddPolicyOnSyscall(__NR_rt_sigprocmask, { - ARG_32(0), - JEQ32(SIG_UNBLOCK, ALLOW), - }); + AllowSyscall(__NR_rt_sigprocmask); #ifdef SAPI_X86_64 // The second argument is a pointer.