diff options
Diffstat (limited to 'test/seccomp-extra/block-secondary.exp')
-rwxr-xr-x | test/seccomp-extra/block-secondary.exp | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/test/seccomp-extra/block-secondary.exp b/test/seccomp-extra/block-secondary.exp new file mode 100755 index 000000000..1db512126 --- /dev/null +++ b/test/seccomp-extra/block-secondary.exp | |||
@@ -0,0 +1,43 @@ | |||
1 | #!/usr/bin/expect -f | ||
2 | # This file is part of Firejail project | ||
3 | # Copyright (C) 2014-2023 Firejail Authors | ||
4 | # License GPL v2 | ||
5 | |||
6 | set timeout 10 | ||
7 | spawn $env(SHELL) | ||
8 | match_max 100000 | ||
9 | |||
10 | |||
11 | # 64 bit architecture - seccomp.block-secondary | ||
12 | send -- "firejail --debug --seccomp.block-secondary pwd\r" | ||
13 | expect { | ||
14 | timeout {puts "TESTING ERROR 1\n";exit} | ||
15 | "Installing /run/firejail/mnt/seccomp/seccomp.32 seccomp filter" {puts "TESTING ERROR 2\n";exit} | ||
16 | -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" | ||
17 | } | ||
18 | expect { | ||
19 | timeout {puts "TESTING ERROR 3\n";exit} | ||
20 | "Installing /run/firejail/mnt/seccomp/seccomp.32 seccomp filter" {puts "TESTING ERROR 4\n";exit} | ||
21 | "Installing /run/firejail/mnt/seccomp/seccomp seccomp filter" | ||
22 | } | ||
23 | expect { | ||
24 | timeout {puts "TESTING ERROR 5\n";exit} | ||
25 | "Installing /run/firejail/mnt/seccomp/seccomp.32 seccomp filter" {puts "TESTING ERROR 6\n";exit} | ||
26 | "Installing /run/firejail/mnt/seccomp/seccomp.protocol seccomp filter" | ||
27 | } | ||
28 | after 500 | ||
29 | |||
30 | # 64 bit architecture - seccomp.block-secondary, profile | ||
31 | send -- "firejail --debug --profile=block-secondary.profile pwd\r" | ||
32 | expect { | ||
33 | timeout {puts "TESTING ERROR 7\n";exit} | ||
34 | "Installing /run/firejail/mnt/seccomp/seccomp.32 seccomp filter" {puts "TESTING ERROR 8\n";exit} | ||
35 | -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" | ||
36 | } | ||
37 | expect { | ||
38 | timeout {puts "TESTING ERROR 9\n";exit} | ||
39 | "Installing /run/firejail/mnt/seccomp/seccomp.32 seccomp filter" {puts "TESTING ERROR 10\n";exit} | ||
40 | "Installing /run/firejail/mnt/seccomp/seccomp seccomp filter" | ||
41 | } | ||
42 | after 500 | ||
43 | puts "all done\n" | ||