diff options
Diffstat (limited to 'test/filters/fseccomp.exp')
-rwxr-xr-x | test/filters/fseccomp.exp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/test/filters/fseccomp.exp b/test/filters/fseccomp.exp index 4d876df08..433524680 100755 --- a/test/filters/fseccomp.exp +++ b/test/filters/fseccomp.exp | |||
@@ -8,39 +8,39 @@ spawn $env(SHELL) | |||
8 | match_max 100000 | 8 | match_max 100000 |
9 | 9 | ||
10 | after 100 | 10 | after 100 |
11 | send -- "/usr/lib/firejail/fseccomp debug-syscalls\r" | 11 | send -- "fseccomp debug-syscalls\r" |
12 | expect { | 12 | expect { |
13 | timeout {puts "TESTING ERROR 1\n";exit} | 13 | timeout {puts "TESTING ERROR 1\n";exit} |
14 | "1 - write" | 14 | "1 - write" |
15 | } | 15 | } |
16 | 16 | ||
17 | after 100 | 17 | after 100 |
18 | send -- "/usr/lib/firejail/fseccomp debug-errnos\r" | 18 | send -- "fseccomp debug-errnos\r" |
19 | expect { | 19 | expect { |
20 | timeout {puts "TESTING ERROR 2\n";exit} | 20 | timeout {puts "TESTING ERROR 2\n";exit} |
21 | "1 - EPERM" | 21 | "1 - EPERM" |
22 | } | 22 | } |
23 | 23 | ||
24 | after 100 | 24 | after 100 |
25 | send -- "/usr/lib/firejail/fseccomp debug-protocols\r" | 25 | send -- "fseccomp debug-protocols\r" |
26 | expect { | 26 | expect { |
27 | timeout {puts "TESTING ERROR 3\n";exit} | 27 | timeout {puts "TESTING ERROR 3\n";exit} |
28 | "unix, inet, inet6, netlink, packet," | 28 | "unix, inet, inet6, netlink, packet," |
29 | } | 29 | } |
30 | 30 | ||
31 | after 100 | 31 | after 100 |
32 | send -- "/usr/lib/firejail/fseccomp protocol build unix,inet seccomp-test-file\r" | 32 | send -- "fseccomp protocol build unix,inet seccomp-test-file\r" |
33 | after 100 | 33 | after 100 |
34 | send -- "/usr/lib/firejail/fseccomp print seccomp-test-file\r" | 34 | send -- "fseccomp print seccomp-test-file\r" |
35 | expect { | 35 | expect { |
36 | timeout {puts "TESTING ERROR 4.1\n";exit} | 36 | timeout {puts "TESTING ERROR 4.1\n";exit} |
37 | "WHITELIST 41 socket" | 37 | "WHITELIST 41 socket" |
38 | } | 38 | } |
39 | 39 | ||
40 | after 100 | 40 | after 100 |
41 | send -- "/usr/lib/firejail/fseccomp secondary 64 seccomp-test-file\r" | 41 | send -- "fseccomp secondary 64 seccomp-test-file\r" |
42 | after 100 | 42 | after 100 |
43 | send -- "/usr/lib/firejail/fseccomp print seccomp-test-file\r" | 43 | send -- "fseccomp print seccomp-test-file\r" |
44 | expect { | 44 | expect { |
45 | timeout {puts "TESTING ERROR 5.1\n";exit} | 45 | timeout {puts "TESTING ERROR 5.1\n";exit} |
46 | "BLACKLIST 165 mount" | 46 | "BLACKLIST 165 mount" |
@@ -55,9 +55,9 @@ expect { | |||
55 | } | 55 | } |
56 | 56 | ||
57 | after 100 | 57 | after 100 |
58 | send -- "/usr/lib/firejail/fseccomp default seccomp-test-file\r" | 58 | send -- "fseccomp default seccomp-test-file\r" |
59 | after 100 | 59 | after 100 |
60 | send -- "/usr/lib/firejail/fseccomp print seccomp-test-file\r" | 60 | send -- "fseccomp print seccomp-test-file\r" |
61 | expect { | 61 | expect { |
62 | timeout {puts "TESTING ERROR 6.1\n";exit} | 62 | timeout {puts "TESTING ERROR 6.1\n";exit} |
63 | "BLACKLIST 165 mount" | 63 | "BLACKLIST 165 mount" |
@@ -72,9 +72,9 @@ expect { | |||
72 | } | 72 | } |
73 | 73 | ||
74 | after 100 | 74 | after 100 |
75 | send -- "/usr/lib/firejail/fseccomp drop seccomp-test-file chmod,chown\r" | 75 | send -- "fseccomp drop seccomp-test-file chmod,chown\r" |
76 | after 100 | 76 | after 100 |
77 | send -- "/usr/lib/firejail/fseccomp print seccomp-test-file\r" | 77 | send -- "fseccomp print seccomp-test-file\r" |
78 | expect { | 78 | expect { |
79 | timeout {puts "TESTING ERROR 7.1\n";exit} | 79 | timeout {puts "TESTING ERROR 7.1\n";exit} |
80 | "BLACKLIST 165 mount" {puts "TESTING ERROR 7.2\n";exit} | 80 | "BLACKLIST 165 mount" {puts "TESTING ERROR 7.2\n";exit} |
@@ -91,9 +91,9 @@ expect { | |||
91 | } | 91 | } |
92 | 92 | ||
93 | after 100 | 93 | after 100 |
94 | send -- "/usr/lib/firejail/fseccomp default drop seccomp-test-file chmod,chown\r" | 94 | send -- "fseccomp default drop seccomp-test-file chmod,chown\r" |
95 | after 100 | 95 | after 100 |
96 | send -- "/usr/lib/firejail/fseccomp print seccomp-test-file\r" | 96 | send -- "fseccomp print seccomp-test-file\r" |
97 | expect { | 97 | expect { |
98 | timeout {puts "TESTING ERROR 8.1\n";exit} | 98 | timeout {puts "TESTING ERROR 8.1\n";exit} |
99 | "BLACKLIST 165 mount" | 99 | "BLACKLIST 165 mount" |
@@ -115,9 +115,9 @@ expect { | |||
115 | "RETURN_ALLOW" | 115 | "RETURN_ALLOW" |
116 | } | 116 | } |
117 | after 100 | 117 | after 100 |
118 | send -- "/usr/lib/firejail/fseccomp keep seccomp-test-file chmod,chown\r" | 118 | send -- "fseccomp keep seccomp-test-file chmod,chown\r" |
119 | after 100 | 119 | after 100 |
120 | send -- "/usr/lib/firejail/fseccomp print seccomp-test-file\r" | 120 | send -- "fseccomp print seccomp-test-file\r" |
121 | expect { | 121 | expect { |
122 | timeout {puts "TESTING ERROR 9.1\n";exit} | 122 | timeout {puts "TESTING ERROR 9.1\n";exit} |
123 | "WHITELIST 90 chmod" | 123 | "WHITELIST 90 chmod" |