diff options
author | netblue30 <netblue30@yahoo.com> | 2015-08-08 19:12:30 -0400 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2015-08-08 19:12:30 -0400 |
commit | 1379851360349d6617ad32944a25ee5e2bb74fc2 (patch) | |
tree | f69b48e90708bfa3c2723d5a27ed3e024c827b43 /test/seccomp-bad-empty.exp | |
parent | delete files (diff) | |
download | firejail-1379851360349d6617ad32944a25ee5e2bb74fc2.tar.gz firejail-1379851360349d6617ad32944a25ee5e2bb74fc2.tar.zst firejail-1379851360349d6617ad32944a25ee5e2bb74fc2.zip |
Baseline firejail 0.9.28
Diffstat (limited to 'test/seccomp-bad-empty.exp')
-rwxr-xr-x | test/seccomp-bad-empty.exp | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/test/seccomp-bad-empty.exp b/test/seccomp-bad-empty.exp new file mode 100755 index 000000000..53b5c2e21 --- /dev/null +++ b/test/seccomp-bad-empty.exp | |||
@@ -0,0 +1,38 @@ | |||
1 | #!/usr/bin/expect -f | ||
2 | |||
3 | set timeout 10 | ||
4 | spawn $env(SHELL) | ||
5 | match_max 100000 | ||
6 | |||
7 | send -- "firejail --seccomp=\r" | ||
8 | expect { | ||
9 | timeout {puts "TESTING ERROR 0\n";exit} | ||
10 | "Error: empty syscall lists are not allowed" | ||
11 | } | ||
12 | |||
13 | send -- "firejail --seccomp.drop=\r" | ||
14 | expect { | ||
15 | timeout {puts "TESTING ERROR 2\n";exit} | ||
16 | "Error: empty syscall lists are not allowed" | ||
17 | } | ||
18 | |||
19 | send -- "firejail --seccomp.keep=\r" | ||
20 | expect { | ||
21 | timeout {puts "TESTING ERROR 4\n";exit} | ||
22 | "Error: empty syscall lists are not allowed" | ||
23 | } | ||
24 | |||
25 | send -- "firejail --profile=seccomp-bad-empty.profile\r" | ||
26 | expect { | ||
27 | timeout {puts "TESTING ERROR 6\n";exit} | ||
28 | "Error: line 1 in the custom profile is invalid" | ||
29 | } | ||
30 | |||
31 | send -- "firejail --profile=seccomp-bad-empty2.profile\r" | ||
32 | expect { | ||
33 | timeout {puts "TESTING ERROR 7\n";exit} | ||
34 | "Error: line 1 in the custom profile is invalid" | ||
35 | } | ||
36 | sleep 1 | ||
37 | puts "\n" | ||
38 | |||