From: Roy Marples Date: Thu, 23 Feb 2023 00:21:14 +0000 (+0000) Subject: privsep: Allow madvise for musl. X-Git-Tag: v10.0.0~3^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac400150d44d2e8c10badd2ce0255ab14cd16f41;p=thirdparty%2Fdhcpcd.git privsep: Allow madvise for musl. Fixes #186. --- 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