tests: add check for seccomp-assisted syscall filtering

This commit is contained in:
Chen Jingpiao 2018-08-06 21:58:43 +08:00
parent 27cb070fbf
commit 5e7b31f327
4 changed files with 10 additions and 0 deletions

View File

@ -386,6 +386,7 @@ EXTRA_DIST = \
eventfd.expected \
fadvise.h \
fcntl-common.c \
filter_seccomp.in \
filter-unavailable.expected \
fstatat.c \
fstatx.c \

3
tests/filter_seccomp.in Normal file
View File

@ -0,0 +1,3 @@
siginfo -etrace=none
socketcall -esocketcall -a20
wait4 -esignal=none -ewait4

View File

@ -85,6 +85,7 @@ fcntl64 -a8
fdatasync -a14
file_handle -e trace=name_to_handle_at,open_by_handle_at
file_ioctl +ioctl.test
filter_seccomp test_prog_set -n
finit_module -a25
flock -a19
fork-f -a26 -qq -f -e signal=none -e trace=chdir

View File

@ -344,6 +344,11 @@ test_trace_expr()
< negative.list
}
test_prog_set()
{
test_pure_prog_set "$@" < "$srcdir/$NAME.in"
}
check_prog cat
check_prog rm