From ac400150d44d2e8c10badd2ce0255ab14cd16f41 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Thu, 23 Feb 2023 00:21:14 +0000 Subject: [PATCH] privsep: Allow madvise for musl. Fixes #186. --- src/privsep-linux.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/privsep-linux.c b/src/privsep-linux.c index 6a301950..2c541521 100644 --- a/src/privsep-linux.c +++ b/src/privsep-linux.c @@ -351,6 +351,9 @@ static struct sock_filter ps_seccomp_filter[] = { /* SECCOMP BPF is newer than nl80211 so we don't need SIOCGIWESSID * which lives in the impossible to include linux/wireless.h header */ #endif +#ifdef __NR_madvise /* needed for musl */ + SECCOMP_ALLOW(__NR_madvise), +#endif #ifdef __NR_mmap SECCOMP_ALLOW(__NR_mmap), #endif -- 2.47.3