mirror of
https://github.com/google/sandboxed-api.git
synced 2024-03-22 13:11:30 +08:00
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:
parent
f0e85cea13
commit
4ba75ea0a2
|
@ -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),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user