Skip to content

Commit ff2b6fc

Browse files
committed
Add munlock() and mlock2() to pledge
1 parent 0eef971 commit ff2b6fc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libc/calls/pledge-linux.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -615,6 +615,8 @@ static const uint16_t kPledgeStdio[] = {
615615
__NR_linux_msync, //
616616
__NR_linux_mmap | NOEXEC, //
617617
__NR_linux_mlock, //
618+
__NR_linux_mlock2, //
619+
__NR_linux_munlock, //
618620
__NR_linux_mremap, //
619621
__NR_linux_munmap, //
620622
__NR_linux_mincore, //

0 commit comments

Comments
 (0)