Browse Source

tests: extend checks of --seccomp-bpf diagnostics

* tests/options-syntax.test: Add --seccomp-bpf checks.
Dmitry V. Levin 1 month ago
parent
commit
b79e45afc1
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      tests/options-syntax.test

+ 5
- 0
tests/options-syntax.test View File

@@ -45,6 +45,11 @@ check_h "incorrect personality designator '42' in qualification 'getcwd@42'" -e
45 45
 check_h "incorrect personality designator '42' in qualification 'getcwd@42'" -e trace=gettid,getcwd@42
46 46
 check_h "incorrect personality designator '42' in qualification '23@42'" -e trace=23@42,123
47 47
 
48
+check_h '--seccomp-bpf implies -f
49
+-w must be given with (-c or -C)' --seccomp-bpf -w /
50
+check_h '--seccomp-bpf is not enabled for processes attached with -p
51
+-w must be given with (-c or -C)' --seccomp-bpf -f -p 1 -w
52
+
48 53
 check_e "invalid system call '/getcwd@ohmy'" -e trace=/getcwd@ohmy
49 54
 check_e "invalid -e kvm= argument: 'chdir'" -e kvm=chdir
50 55
 

Loading…
Cancel
Save