Commit 518b4440 authored by Tycho Andersen's avatar Tycho Andersen Committed by Pavel Emelyanov

tests: get rid of HAVE_SECCOMP nonsense

Because of the #undef (probably left over from some debugging I did that
accidentally got committed), this test never ran. Anyway, this is all
unnecessary because we can just use the seccomp_filter feature flag in the
tests.

Also reenable the seccomp_filter_tsync test.
Signed-off-by: 's avatarTycho Andersen <tycho.andersen@canonical.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 726d87d9
......@@ -15,15 +15,6 @@
#include <pthread.h>
#include "zdtmtst.h"
#undef __NR_seccomp
#ifdef __NR_seccomp
#define HAVE_SECCOMP 1
#else
#define HAVE_SECCOMP 0
#define __NR_seccomp -1
#endif
#ifndef SECCOMP_SET_MODE_FILTER
#define SECCOMP_SET_MODE_FILTER 1
#endif
......@@ -106,11 +97,6 @@ int main(int argc, char ** argv)
test_init(argc, argv);
if (!HAVE_SECCOMP) {
skip("no seccomp present in this kernel\n");
return 0;
}
if (socketpair(PF_LOCAL, SOCK_SEQPACKET, 0, sk_pair)) {
pr_perror("socketpair");
return -1;
......
{'flags': 'suid noauto', 'feature': 'seccomp_filters'}
{'flags': 'suid', 'feature': 'seccomp_filters'}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment