statzone

DNS zone file analyzer targeted at TLD zones
Log | Files | Refs | README | LICENSE

commit b772e6e5234ddab4c30fa73943354b69132034e7
parent 48c1a97bcf919115a55d4258ee075cdf3216dc5d
Author: Frederic Cambus <fred@statdns.com>
Date:   Fri, 25 Oct 2019 19:28:19 +0200

Use the HAVE_SECCOMP macro to check whether or not to enable seccomp.

Diffstat:
Msrc/statzone.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/statzone.c b/src/statzone.c @@ -4,7 +4,7 @@ * https://www.statdns.com * * Created: 2012-02-13 - * Last Updated: 2019-09-28 + * Last Updated: 2019-10-25 * * StatZone is released under the BSD 2-Clause license * See LICENSE file for details. @@ -24,7 +24,7 @@ #include <sys/types.h> #include <time.h> -#if defined(__linux__) +#ifdef HAVE_SECCOMP #include <sys/prctl.h> #include <sys/syscall.h> #include <linux/audit.h> @@ -84,7 +84,7 @@ main(int argc, char *argv[]) { err(1, "pledge"); } -#if defined(__linux__) +#ifdef HAVE_SECCOMP prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0); prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &statzone); #endif