Allow FUTEX_WAKE for recent libc allocators

PiperOrigin-RevId: 353827808
Change-Id: I6d1509016297fd16bec0ae6ea263896a1af9dc37
This commit is contained in:
Christian Blichmann 2021-01-26 02:31:57 -08:00 committed by Copybara-Service
parent 1459cc612e
commit 6f33cef716

View File

@ -165,6 +165,7 @@ PolicyBuilder& PolicyBuilder::AllowTcMalloc() {
PolicyBuilder& PolicyBuilder::AllowSystemMalloc() {
AllowSyscalls({__NR_munmap, __NR_brk});
AllowFutexOp(FUTEX_WAKE);
AddPolicyOnSyscall(__NR_mremap, {
ARG_32(3),
JEQ32(MREMAP_MAYMOVE, ALLOW),