aboutsummaryrefslogtreecommitdiffstats
path: root/test/filters/seccomp-empty.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/filters/seccomp-empty.exp')
-rwxr-xr-xtest/filters/seccomp-empty.exp34
1 files changed, 25 insertions, 9 deletions
diff --git a/test/filters/seccomp-empty.exp b/test/filters/seccomp-empty.exp
index 03e081b34..77e8a2651 100755
--- a/test/filters/seccomp-empty.exp
+++ b/test/filters/seccomp-empty.exp
@@ -10,7 +10,11 @@ match_max 100000
10send -- "firejail --debug --seccomp=chmod,fchmod,fchmodat --private\r" 10send -- "firejail --debug --seccomp=chmod,fchmod,fchmodat --private\r"
11expect { 11expect {
12 timeout {puts "TESTING ERROR 0\n";exit} 12 timeout {puts "TESTING ERROR 0\n";exit}
13 "VALIDATE_ARCHITECTURE" 13 "seccomp entries in /run/firejail/mnt/seccomp"
14}
15expect {
16 timeout {puts "TESTING ERROR 0.0\n";exit}
17 "ld data.architecture"
14} 18}
15expect { 19expect {
16 timeout {puts "TESTING ERROR 0.1\n";exit} 20 timeout {puts "TESTING ERROR 0.1\n";exit}
@@ -34,7 +38,7 @@ expect {
34} 38}
35expect { 39expect {
36 timeout {puts "TESTING ERROR 0.6\n";exit} 40 timeout {puts "TESTING ERROR 0.6\n";exit}
37 "RETURN_ALLOW" 41 "ret ALLOW"
38} 42}
39expect { 43expect {
40 timeout {puts "TESTING ERROR 0.7\n";exit} 44 timeout {puts "TESTING ERROR 0.7\n";exit}
@@ -48,7 +52,11 @@ puts "\n"
48send -- "firejail --debug --seccomp.drop=chmod,fchmod,fchmodat --private\r" 52send -- "firejail --debug --seccomp.drop=chmod,fchmod,fchmodat --private\r"
49expect { 53expect {
50 timeout {puts "TESTING ERROR 1\n";exit} 54 timeout {puts "TESTING ERROR 1\n";exit}
51 "VALIDATE_ARCHITECTURE" 55 "seccomp entries in /run/firejail/mnt/seccomp"
56}
57expect {
58 timeout {puts "TESTING ERROR 1.0\n";exit}
59 "ld data.architecture"
52} 60}
53expect { 61expect {
54 timeout {puts "TESTING ERROR 1.1\n";exit} 62 timeout {puts "TESTING ERROR 1.1\n";exit}
@@ -66,7 +74,7 @@ expect {
66} 74}
67expect { 75expect {
68 timeout {puts "TESTING ERROR 1.6\n";exit} 76 timeout {puts "TESTING ERROR 1.6\n";exit}
69 "RETURN_ALLOW" 77 "ret ALLOW"
70} 78}
71expect { 79expect {
72 timeout {puts "TESTING ERROR 1.7\n";exit} 80 timeout {puts "TESTING ERROR 1.7\n";exit}
@@ -80,7 +88,11 @@ sleep 2
80send -- "firejail --debug --profile=seccomp.profile --private\r" 88send -- "firejail --debug --profile=seccomp.profile --private\r"
81expect { 89expect {
82 timeout {puts "TESTING ERROR 2\n";exit} 90 timeout {puts "TESTING ERROR 2\n";exit}
83 "VALIDATE_ARCHITECTURE" 91 "seccomp entries in /run/firejail/mnt/seccomp"
92}
93expect {
94 timeout {puts "TESTING ERROR 2.0\n";exit}
95 "ld data.architecture"
84} 96}
85expect { 97expect {
86 timeout {puts "TESTING ERROR 2.1\n";exit} 98 timeout {puts "TESTING ERROR 2.1\n";exit}
@@ -104,7 +116,7 @@ expect {
104} 116}
105expect { 117expect {
106 timeout {puts "TESTING ERROR 2.6\n";exit} 118 timeout {puts "TESTING ERROR 2.6\n";exit}
107 "RETURN_ALLOW" 119 "ret ALLOW"
108} 120}
109expect { 121expect {
110 timeout {puts "TESTING ERROR 2.7\n";exit} 122 timeout {puts "TESTING ERROR 2.7\n";exit}
@@ -118,7 +130,11 @@ puts "\n"
118send -- "firejail --debug --profile=seccomp-empty.profile --private\r" 130send -- "firejail --debug --profile=seccomp-empty.profile --private\r"
119expect { 131expect {
120 timeout {puts "TESTING ERROR 3\n";exit} 132 timeout {puts "TESTING ERROR 3\n";exit}
121 "VALIDATE_ARCHITECTURE" 133 "seccomp entries in /run/firejail/mnt/seccomp"
134}
135expect {
136 timeout {puts "TESTING ERROR 3.0\n";exit}
137 "ld data.architecture"
122} 138}
123expect { 139expect {
124 timeout {puts "TESTING ERROR 3.1\n";exit} 140 timeout {puts "TESTING ERROR 3.1\n";exit}
@@ -136,7 +152,7 @@ expect {
136} 152}
137expect { 153expect {
138 timeout {puts "TESTING ERROR 3.6\n";exit} 154 timeout {puts "TESTING ERROR 3.6\n";exit}
139 "RETURN_ALLOW" 155 "ret ALLOW"
140} 156}
141expect { 157expect {
142 timeout {puts "TESTING ERROR 3.7\n";exit} 158 timeout {puts "TESTING ERROR 3.7\n";exit}
@@ -145,4 +161,4 @@ expect {
145sleep 2 161sleep 2
146send -- "exit\r" 162send -- "exit\r"
147after 100 163after 100
148puts "\n" 164puts "all done\n"