Skip to content

Commit a8d93c6

Browse files
committed
allow mprotect by default
Signed-off-by: Jorge Prendes <[email protected]>
1 parent 3499eac commit a8d93c6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/hyperlight_host/src/seccomp/guest.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ fn syscalls_allowlist() -> Result<Vec<(i64, Vec<SeccompRule>)>> {
5757
// `sched_yield` is needed for many synchronization primitives that may be invoked
5858
// on the host function worker thread
5959
(libc::SYS_sched_yield, vec![]),
60+
// `mprotect` is needed by malloc during memory allocation
61+
(libc::SYS_mprotect, vec![]),
6062
])
6163
}
6264

0 commit comments

Comments
 (0)