aboutsummaryrefslogtreecommitdiffstats
path: root/test/seccomp-extra/block-secondary.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/seccomp-extra/block-secondary.exp')
-rwxr-xr-xtest/seccomp-extra/block-secondary.exp43
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
6set timeout 10
7spawn $env(SHELL)
8match_max 100000
9
10
11# 64 bit architecture - seccomp.block-secondary
12send -- "firejail --debug --seccomp.block-secondary pwd\r"
13expect {
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}
18expect {
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}
23expect {
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}
28after 500
29
30# 64 bit architecture - seccomp.block-secondary, profile
31send -- "firejail --debug --profile=block-secondary.profile pwd\r"
32expect {
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}
37expect {
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}
42after 500
43puts "all done\n"