]> granicus.if.org Git - strace/commitdiff
tests: extend checks of --seccomp-bpf diagnostics
authorDmitry V. Levin <ldv@altlinux.org>
Fri, 4 Oct 2019 21:58:20 +0000 (21:58 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Fri, 4 Oct 2019 21:58:20 +0000 (21:58 +0000)
* tests/options-syntax.test: Add --seccomp-bpf checks.

tests/options-syntax.test

index 90511c3c01ee1603b6854506300270c9dde7c3d4..141689acfa7a792f8c4692c7209c3179ee25894c 100755 (executable)
@@ -45,6 +45,11 @@ check_h "incorrect personality designator '42' in qualification 'getcwd@42'" -e
 check_h "incorrect personality designator '42' in qualification 'getcwd@42'" -e trace=gettid,getcwd@42
 check_h "incorrect personality designator '42' in qualification '23@42'" -e trace=23@42,123
 
+check_h '--seccomp-bpf implies -f
+-w must be given with (-c or -C)' --seccomp-bpf -w /
+check_h '--seccomp-bpf is not enabled for processes attached with -p
+-w must be given with (-c or -C)' --seccomp-bpf -f -p 1 -w
+
 check_e "invalid system call '/getcwd@ohmy'" -e trace=/getcwd@ohmy
 check_e "invalid -e kvm= argument: 'chdir'" -e kvm=chdir