Allow TCMalloc to access the rseq syscall.

PiperOrigin-RevId: 243441655
Change-Id: I82918459c20f164b56cc0c5b621b004315a011ec
This commit is contained in:
Chris Kennelly 2019-04-13 13:45:06 -07:00 committed by Copybara-Service
parent e2eb0597cb
commit d90b2c6328

View File

@ -114,6 +114,9 @@ PolicyBuilder& PolicyBuilder::AllowTcMalloc() {
AllowSyscalls({__NR_munmap, __NR_nanosleep, __NR_brk, __NR_mincore});
AllowFutexOp(FUTEX_WAKE);
AllowLimitedMadvise();
#ifdef __NR_rseq
AllowSyscall(__NR_rseq);
#endif
AddPolicyOnSyscall(__NR_mprotect, {
ARG_32(2),