Skip to content

Commit

Permalink
configure.ac: define HAVE_SECCOMP macro when using seccomp, fix build…
Browse files Browse the repository at this point in the history
…/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.
  • Loading branch information
dtzWill committed Feb 19, 2018
1 parent 623fcb0 commit a6c0b77
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions configure.ac
Expand Up @@ -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
Expand Down

0 comments on commit a6c0b77

Please sign in to comment.