Allow TCMalloc users access to the possible cpus list.

This is to facilitate online/offline core counting for an accurate count of the
maximum CPU ID that may be seen.

PiperOrigin-RevId: 548715133
Change-Id: I159c0d51b9800fa633172986ba4f8eca352ae336
This commit is contained in:
Chris Kennelly 2023-07-17 09:30:34 -07:00 committed by Copybara-Service
parent f0e85cea13
commit 4ba75ea0a2

View File

@ -242,6 +242,7 @@ PolicyBuilder& PolicyBuilder::AllowTcMalloc() {
{__NR_munmap, __NR_nanosleep, __NR_brk, __NR_mincore, __NR_membarrier}); {__NR_munmap, __NR_nanosleep, __NR_brk, __NR_mincore, __NR_membarrier});
AllowLimitedMadvise(); AllowLimitedMadvise();
AllowPrctlSetVma(); AllowPrctlSetVma();
AllowPoll();
AddPolicyOnSyscall(__NR_mprotect, { AddPolicyOnSyscall(__NR_mprotect, {
ARG_32(2), ARG_32(2),