Skip to content

Commit

Permalink
Add munlock() and mlock2() to pledge
Browse files Browse the repository at this point in the history
  • Loading branch information
jart committed Apr 28, 2024
1 parent 0eef971 commit ff2b6fc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libc/calls/pledge-linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,8 @@ static const uint16_t kPledgeStdio[] = {
__NR_linux_msync, //
__NR_linux_mmap | NOEXEC, //
__NR_linux_mlock, //
__NR_linux_mlock2, //
__NR_linux_munlock, //
__NR_linux_mremap, //
__NR_linux_munmap, //
__NR_linux_mincore, //
Expand Down

0 comments on commit ff2b6fc

Please sign in to comment.