From 4de442d472f33c1e6012a96c94069ef2923ea716 Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Mon, 21 May 2018 22:30:06 +0200 Subject: POTD skeleton #72. Signed-off-by: Toni Uhlig --- src/pseccomp.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/pseccomp.c') diff --git a/src/pseccomp.c b/src/pseccomp.c index c794fdb..e991d46 100644 --- a/src/pseccomp.c +++ b/src/pseccomp.c @@ -1,6 +1,12 @@ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include #include -#include +#ifdef HAVE_VALGRIND +#include +#endif #include "pseccomp.h" #include "log.h" @@ -75,10 +81,12 @@ static const int jail_allowed_syscalls[] = { static int pseccomp_using_valgrind(void) { +#ifdef HAVE_VALGRIND if (RUNNING_ON_VALGRIND) { W("%s", "SECCOMP: running on valgrind, disabled"); return 1; } +#endif return 0; } -- cgit v1.2.3