You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// `mprotect` is needed by malloc during memory allocation
61
61
(libc::SYS_mprotect, vec![]),
62
+
// `openat` is marked allowed here because it may be called by `libc::free()`
63
+
// since it will try to open /proc/sys/vm/overcommit_memory (https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/unix/sysv/linux/malloc-sysdep.h;h=778d8971d53e284397c3a5dcdd923e93be5e4731;hb=HEAD)
64
+
// We have another more restrictive filter for it below so it will return EACCES instead of trap, in which case libc will use the default value
65
+
(libc::SYS_openat, vec![]),
62
66
])
63
67
}
64
68
65
-
/// Creates a `BpfProgram` for a `SeccompFilter` over specific syscalls/`SeccompRule`s
69
+
/// Creates two `BpfProgram`s for a `SeccompFilter` over specific syscalls/`SeccompRule`s
66
70
/// intended to be applied on host function threads.
67
71
///
68
72
/// Note: This does not provide coverage over the Hyperlight host, which is why we don't need
0 commit comments