redmine

Added "seccomp" building test into .travis.sh

... ... @@ -111,7 +111,8 @@ if true; then
for a6 in "--enable-socket-library" "--disable-socket-library"; do
for a7 in "--enable-highload-locks" ""; do
for a8 in "--with-libcgroup" "--without-libcgroup"; do
arg="$a0 $a1 $a2 $a3 $a4 $a5 $a6 $a7"
for a9 in "--with-libseccomp" "--without-libseccomp"; do
arg="$a0 $a1 $a2 $a3 $a4 $a5 $a6 $a7 $a8 $a9"
build_test "$arg"
done
done
... ...
language: c
before_install:
- sudo apt-get install libcap-dev libglib2.0-dev libmhash-dev libkqueue.* libcgroup-dev
- sudo apt-get install libcap-dev libglib2.0-dev libmhash-dev libkqueue.* libcgroup-dev libseccomp-dev
- sudo pip install cpp-coveralls --use-mirrors
script:
- ./.travis.sh
... ...
... ... @@ -400,10 +400,26 @@ esac
AS_IF([test "$HAVE_INOTIFY" != ""], [AC_CHECK_FUNC([inotify_init1], [], [INOTIFY_OLD=1])])
dnl searching for seccomp
AC_ARG_WITH(libseccomp,
AS_HELP_STRING(--with-libseccomp,
[Enable seccomp support be able to forbid extra syscalls; values: no, check, yes; default: check]),
[],
[with_seccomp=check]
)
case "$with_libseccomp" in
yes)
AC_CHECK_TYPES([scmp_filter_ctx], [
AC_CHECK_DECLS([seccomp_syscall_resolve_name_arch], [HAVE_SECCOMP=1], [AC_MSG_FAILURE([Cannot find valid seccomp.h])], [[#include <seccomp.h>]])
], [AC_MSG_FAILURE([Cannot find valid seccomp.h])], [[#include <seccomp.h>]])
;;
check)
AC_CHECK_TYPES([scmp_filter_ctx], [
AC_CHECK_DECLS([seccomp_syscall_resolve_name_arch], [HAVE_SECCOMP=1], [], [[#include <seccomp.h>]])
], [], [[#include <seccomp.h>]])
;;
esac
AS_IF([test "$HAVE_CAPABILITIES" != ""], [
AC_CHECK_TYPES([scmp_filter_ctx], [
AC_CHECK_DECLS([seccomp_syscall_resolve_name_arch], [HAVE_SECCOMP=1], [], [[#include <seccomp.h>]])
], [], [[#include <seccomp.h>]])
])
AM_CONDITIONAL([HAVE_KQUEUE], [test "x$HAVE_KQUEUE" != "x"])
... ...