diff options
author | netblue30 <netblue30@yahoo.com> | 2017-12-28 15:36:40 -0500 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2017-12-28 15:36:40 -0500 |
commit | 8706d0591301cffd3965695107c767dae54cceb3 (patch) | |
tree | adca45f28613c65cd778aadd62be2df63c396733 /test/filters/seccomp-empty.exp | |
parent | replacing seccomp printing with a seccomp disassembler (diff) | |
download | firejail-8706d0591301cffd3965695107c767dae54cceb3.tar.gz firejail-8706d0591301cffd3965695107c767dae54cceb3.tar.zst firejail-8706d0591301cffd3965695107c767dae54cceb3.zip |
testing
Diffstat (limited to 'test/filters/seccomp-empty.exp')
-rwxr-xr-x | test/filters/seccomp-empty.exp | 34 |
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 | |||
10 | send -- "firejail --debug --seccomp=chmod,fchmod,fchmodat --private\r" | 10 | send -- "firejail --debug --seccomp=chmod,fchmod,fchmodat --private\r" |
11 | expect { | 11 | expect { |
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 | } | ||
15 | expect { | ||
16 | timeout {puts "TESTING ERROR 0.0\n";exit} | ||
17 | "ld data.architecture" | ||
14 | } | 18 | } |
15 | expect { | 19 | expect { |
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 | } |
35 | expect { | 39 | expect { |
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 | } |
39 | expect { | 43 | expect { |
40 | timeout {puts "TESTING ERROR 0.7\n";exit} | 44 | timeout {puts "TESTING ERROR 0.7\n";exit} |
@@ -48,7 +52,11 @@ puts "\n" | |||
48 | send -- "firejail --debug --seccomp.drop=chmod,fchmod,fchmodat --private\r" | 52 | send -- "firejail --debug --seccomp.drop=chmod,fchmod,fchmodat --private\r" |
49 | expect { | 53 | expect { |
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 | } | ||
57 | expect { | ||
58 | timeout {puts "TESTING ERROR 1.0\n";exit} | ||
59 | "ld data.architecture" | ||
52 | } | 60 | } |
53 | expect { | 61 | expect { |
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 | } |
67 | expect { | 75 | expect { |
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 | } |
71 | expect { | 79 | expect { |
72 | timeout {puts "TESTING ERROR 1.7\n";exit} | 80 | timeout {puts "TESTING ERROR 1.7\n";exit} |
@@ -80,7 +88,11 @@ sleep 2 | |||
80 | send -- "firejail --debug --profile=seccomp.profile --private\r" | 88 | send -- "firejail --debug --profile=seccomp.profile --private\r" |
81 | expect { | 89 | expect { |
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 | } | ||
93 | expect { | ||
94 | timeout {puts "TESTING ERROR 2.0\n";exit} | ||
95 | "ld data.architecture" | ||
84 | } | 96 | } |
85 | expect { | 97 | expect { |
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 | } |
105 | expect { | 117 | expect { |
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 | } |
109 | expect { | 121 | expect { |
110 | timeout {puts "TESTING ERROR 2.7\n";exit} | 122 | timeout {puts "TESTING ERROR 2.7\n";exit} |
@@ -118,7 +130,11 @@ puts "\n" | |||
118 | send -- "firejail --debug --profile=seccomp-empty.profile --private\r" | 130 | send -- "firejail --debug --profile=seccomp-empty.profile --private\r" |
119 | expect { | 131 | expect { |
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 | } | ||
135 | expect { | ||
136 | timeout {puts "TESTING ERROR 3.0\n";exit} | ||
137 | "ld data.architecture" | ||
122 | } | 138 | } |
123 | expect { | 139 | expect { |
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 | } |
137 | expect { | 153 | expect { |
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 | } |
141 | expect { | 157 | expect { |
142 | timeout {puts "TESTING ERROR 3.7\n";exit} | 158 | timeout {puts "TESTING ERROR 3.7\n";exit} |
@@ -145,4 +161,4 @@ expect { | |||
145 | sleep 2 | 161 | sleep 2 |
146 | send -- "exit\r" | 162 | send -- "exit\r" |
147 | after 100 | 163 | after 100 |
148 | puts "\n" | 164 | puts "all done\n" |