From: Christos Zoulas Date: Sun, 24 Feb 2019 18:12:04 +0000 (+0000) Subject: Allow madvise too, since it is used in some malloc implementations X-Git-Tag: FILE5_37~63 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7f066aa719b9dfff9a4c42eefb67e44c0abc5f41;p=file Allow madvise too, since it is used in some malloc implementations (Leandro Pereira) --- diff --git a/src/seccomp.c b/src/seccomp.c index e7829fff..1b9d9b85 100644 --- a/src/seccomp.c +++ b/src/seccomp.c @@ -27,7 +27,7 @@ #include "file.h" #ifndef lint -FILE_RCSID("@(#)$File: seccomp.c,v 1.7 2018/09/09 20:33:28 christos Exp $") +FILE_RCSID("@(#)$File: seccomp.c,v 1.8 2019/02/24 18:12:04 christos Exp $") #endif /* lint */ #if HAVE_LIBSECCOMP @@ -176,6 +176,7 @@ enable_sandbox_full(void) ALLOW_RULE(_llseek); ALLOW_RULE(lstat); ALLOW_RULE(lstat64); + ALLOW_RULE(madvise); ALLOW_RULE(mmap); ALLOW_RULE(mmap2); ALLOW_RULE(mprotect);