Skip to content

Commit 08576d1

Browse files
alexandruagandreeaflorescu
authored andcommitted
syscalls: actually whitelist madvise for musl
Signed-off-by: Alexandru Agache <[email protected]>
1 parent 96d4b1d commit 08576d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vmm/src/default_syscalls/x86_64.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ pub const ALLOWED_SYSCALLS: &[i64] = &[
2323
libc::SYS_futex,
2424
libc::SYS_ioctl,
2525
libc::SYS_lseek,
26-
#[cfg(musl)]
26+
#[cfg(target_env = "musl")]
2727
libc::SYS_madvise,
2828
libc::SYS_mmap,
2929
libc::SYS_munmap,
@@ -243,7 +243,7 @@ pub fn default_context() -> Result<SeccompFilterContext, Error> {
243243
libc::SYS_lseek,
244244
(0, vec![SeccompRule::new(vec![], SeccompAction::Allow)]),
245245
),
246-
#[cfg(musl)]
246+
#[cfg(target_env = "musl")]
247247
(
248248
libc::SYS_madvise,
249249
(

0 commit comments

Comments
 (0)