diff options
author | Will Dietz <w@wdtz.org> | 2018-02-19T18·13-0600 |
---|---|---|
committer | Will Dietz <w@wdtz.org> | 2018-02-19T18·13-0600 |
commit | a6c0b773b72d4e30690e01f1f1dcffc28f2d9ea1 (patch) | |
tree | d5f5cef77fbef6ea5a238ce5d31424eb2311fa22 /configure.ac | |
parent | 623fcb071e1440a995d8ebcd769d67a45a439711 (diff) |
configure.ac: define HAVE_SECCOMP macro when using seccomp, fix build/tests
Happily the failing tests should prevent anyone from using such a Nix in situations where they expect sandboxing to be on, which would otherwise be a risk.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 4102f32166f5..54322d463ae7 100644 --- a/configure.ac +++ b/configure.ac @@ -196,6 +196,7 @@ if test "$sys_name" = linux; then PKG_CHECK_MODULES([LIBSECCOMP], [libseccomp], [CXXFLAGS="$LIBSECCOMP_CFLAGS $CXXFLAGS"]) have_seccomp=1 + AC_DEFINE([HAVE_SECCOMP], [1], [Whether seccomp is available and should be used for sandboxing.]) else have_seccomp= fi |