Add AllowAccess to SAPI's default policy

The syscalls are fairly common and low risk.

PiperOrigin-RevId: 603312020
Change-Id: Id06bddc4e7fcc879cad567361ae5b0bad9533142
This commit is contained in:
Wiktor Garbacz 2024-02-01 02:51:09 -08:00 committed by Copybara-Service
parent b9c84a1f75
commit 29a3b8cd39

View File

@ -76,6 +76,7 @@ void InitDefaultPolicyBuilder(sandbox2::PolicyBuilder* builder) {
.AllowGetPIDs() .AllowGetPIDs()
.AllowSleep() .AllowSleep()
.AllowReadlink() .AllowReadlink()
.AllowAccess()
.AllowSyscalls({ .AllowSyscalls({
__NR_recvmsg, __NR_recvmsg,
__NR_sendmsg, __NR_sendmsg,