]> granicus.if.org Git - file/commitdiff
Allow madvise too, since it is used in some malloc implementations
authorChristos Zoulas <christos@zoulas.com>
Sun, 24 Feb 2019 18:12:04 +0000 (18:12 +0000)
committerChristos Zoulas <christos@zoulas.com>
Sun, 24 Feb 2019 18:12:04 +0000 (18:12 +0000)
(Leandro Pereira)

src/seccomp.c

index e7829fff1a91749ab16500afb67103f08ccdce97..1b9d9b8559377c8571dc17968858d58a0b2205fa 100644 (file)
@@ -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);