Allow TcMalloc to use membarrier syscall.

PiperOrigin-RevId: 348604579
Change-Id: Ibe54acc51597f36d1682368eb6baf1f8d45cf3dd
This commit is contained in:
Sandboxed API Team 2020-12-22 02:49:45 -08:00 committed by Copybara-Service
parent d0c8224e61
commit 142c35898c

View File

@ -125,7 +125,8 @@ PolicyBuilder& PolicyBuilder::AllowScudoMalloc() {
PolicyBuilder& PolicyBuilder::AllowTcMalloc() {
AllowTime();
AllowSyscalls({__NR_munmap, __NR_nanosleep, __NR_brk, __NR_mincore});
AllowSyscalls(
{__NR_munmap, __NR_nanosleep, __NR_brk, __NR_mincore, __NR_membarrier});
AllowFutexOp(FUTEX_WAKE);
AllowLimitedMadvise();
#ifdef __NR_rseq