aboutsummaryrefslogtreecommitdiffstats
path: root/test/filters/seccomp-errno.exp
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2017-12-28 15:36:40 -0500
committerLibravatar netblue30 <netblue30@yahoo.com>2017-12-28 15:36:40 -0500
commit8706d0591301cffd3965695107c767dae54cceb3 (patch)
treeadca45f28613c65cd778aadd62be2df63c396733 /test/filters/seccomp-errno.exp
parentreplacing seccomp printing with a seccomp disassembler (diff)
downloadfirejail-8706d0591301cffd3965695107c767dae54cceb3.tar.gz
firejail-8706d0591301cffd3965695107c767dae54cceb3.tar.zst
firejail-8706d0591301cffd3965695107c767dae54cceb3.zip
testing
Diffstat (limited to 'test/filters/seccomp-errno.exp')
-rwxr-xr-xtest/filters/seccomp-errno.exp12
1 files changed, 8 insertions, 4 deletions
diff --git a/test/filters/seccomp-errno.exp b/test/filters/seccomp-errno.exp
index eeb0824f2..458fccc4e 100755
--- a/test/filters/seccomp-errno.exp
+++ b/test/filters/seccomp-errno.exp
@@ -20,19 +20,23 @@ sleep 1
20send -- "firejail --seccomp=unlinkat:ENOENT --debug rm seccomp-test-file\r" 20send -- "firejail --seccomp=unlinkat:ENOENT --debug rm seccomp-test-file\r"
21expect { 21expect {
22 timeout {puts "TESTING ERROR 1\n";exit} 22 timeout {puts "TESTING ERROR 1\n";exit}
23 "unlinkat 2 ENOENT" 23 "seccomp entries in /run/firejail/mnt/seccomp"
24}
25expect {
26 timeout {puts "TESTING ERROR 2\n";exit}
27 "ret ERRNO(2)"
24} 28}
25sleep 1 29sleep 1
26 30
27send -- "firejail --seccomp=unlinkat:ENOENT,mkdir:ENOENT\r" 31send -- "firejail --seccomp=unlinkat:ENOENT,mkdir:ENOENT\r"
28expect { 32expect {
29 timeout {puts "TESTING ERROR 2\n";exit} 33 timeout {puts "TESTING ERROR 3\n";exit}
30 "Child process initialized" 34 "Child process initialized"
31} 35}
32sleep 1 36sleep 1
33send -- "rm seccomp-test-file\r" 37send -- "rm seccomp-test-file\r"
34expect { 38expect {
35 timeout {puts "TESTING ERROR 3\n";exit} 39 timeout {puts "TESTING ERROR 4\n";exit}
36 "No such file or directory" 40 "No such file or directory"
37} 41}
38after 100 42after 100
@@ -40,7 +44,7 @@ puts "\n"
40 44
41send -- "mkdir seccomp-test-dir\r" 45send -- "mkdir seccomp-test-dir\r"
42expect { 46expect {
43 timeout {puts "TESTING ERROR 4\n";exit} 47 timeout {puts "TESTING ERROR 5\n";exit}
44 "No such file or directory" 48 "No such file or directory"
45} 49}
46after 100 50after 100