Skip to content

Commit

Permalink
Permit TCMalloc to use __NR_lseek
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 708356515
Change-Id: I004ade8095acf7aae9ef82612af700629e2d0011
  • Loading branch information
Nelson Liang authored and copybara-github committed Dec 20, 2024
1 parent 953d754 commit 7c29026
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sandboxed_api/sandbox2/policybuilder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,8 @@ PolicyBuilder& PolicyBuilder::AllowTcMalloc() {
allowed_complex_.tcmalloc = true;
AllowTime();
AllowRestartableSequences(kRequireFastFences);
AllowSyscalls(
{__NR_munmap, __NR_nanosleep, __NR_brk, __NR_mincore, __NR_membarrier});
AllowSyscalls({__NR_munmap, __NR_nanosleep, __NR_brk, __NR_mincore,
__NR_membarrier, __NR_lseek});
AllowLimitedMadvise();
AllowPrctlSetVma();
AllowPoll();
Expand Down

0 comments on commit 7c29026

Please sign in to comment.