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/fseccomp.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/fseccomp.exp')
-rwxr-xr-x | test/filters/fseccomp.exp | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/test/filters/fseccomp.exp b/test/filters/fseccomp.exp index a71c35302..15959ff26 100755 --- a/test/filters/fseccomp.exp +++ b/test/filters/fseccomp.exp | |||
@@ -31,104 +31,104 @@ expect { | |||
31 | after 100 | 31 | after 100 |
32 | send -- "fseccomp protocol build unix,inet seccomp-test-file\r" | 32 | send -- "fseccomp protocol build unix,inet seccomp-test-file\r" |
33 | after 100 | 33 | after 100 |
34 | send -- "fseccomp print seccomp-test-file\r" | 34 | send -- "fsec-print seccomp-test-file\r" |
35 | expect { | 35 | expect { |
36 | timeout {puts "TESTING ERROR 4.1\n";exit} | 36 | timeout {puts "TESTING ERROR 4.1\n";exit} |
37 | "WHITELIST 41 socket" | 37 | "jeq socket" |
38 | } | 38 | } |
39 | 39 | ||
40 | after 100 | 40 | after 100 |
41 | send -- "fseccomp secondary 64 seccomp-test-file\r" | 41 | send -- "fseccomp secondary 64 seccomp-test-file\r" |
42 | after 100 | 42 | after 100 |
43 | send -- "fseccomp print seccomp-test-file\r" | 43 | send -- "fsec-print seccomp-test-file\r" |
44 | expect { | 44 | expect { |
45 | timeout {puts "TESTING ERROR 5.1\n";exit} | 45 | timeout {puts "TESTING ERROR 5.1\n";exit} |
46 | "BLACKLIST 165 mount" | 46 | "jeq mount" |
47 | } | 47 | } |
48 | expect { | 48 | expect { |
49 | timeout {puts "TESTING ERROR 5.2\n";exit} | 49 | timeout {puts "TESTING ERROR 5.2\n";exit} |
50 | "BLACKLIST 166 umount2" | 50 | "jeq umount2" |
51 | } | 51 | } |
52 | expect { | 52 | expect { |
53 | timeout {puts "TESTING ERROR 5.3\n";exit} | 53 | timeout {puts "TESTING ERROR 5.3\n";exit} |
54 | "RETURN_ALLOW" | 54 | "ret ALLOW" |
55 | } | 55 | } |
56 | 56 | ||
57 | after 100 | 57 | after 100 |
58 | send -- "fseccomp default seccomp-test-file\r" | 58 | send -- "fseccomp default seccomp-test-file\r" |
59 | after 100 | 59 | after 100 |
60 | send -- "fseccomp print seccomp-test-file\r" | 60 | send -- "fsec-print seccomp-test-file\r" |
61 | expect { | 61 | expect { |
62 | timeout {puts "TESTING ERROR 6.1\n";exit} | 62 | timeout {puts "TESTING ERROR 6.1\n";exit} |
63 | "BLACKLIST 165 mount" | 63 | "jeq mount" |
64 | } | 64 | } |
65 | expect { | 65 | expect { |
66 | timeout {puts "TESTING ERROR 6.2\n";exit} | 66 | timeout {puts "TESTING ERROR 6.2\n";exit} |
67 | "BLACKLIST 166 umount2" | 67 | "jeq umount2" |
68 | } | 68 | } |
69 | expect { | 69 | expect { |
70 | timeout {puts "TESTING ERROR 6.3\n";exit} | 70 | timeout {puts "TESTING ERROR 6.3\n";exit} |
71 | "RETURN_ALLOW" | 71 | "ret ALLOW" |
72 | } | 72 | } |
73 | 73 | ||
74 | after 100 | 74 | after 100 |
75 | send -- "fseccomp drop seccomp-test-file tmpfile chmod,chown\r" | 75 | send -- "fseccomp drop seccomp-test-file tmpfile chmod,chown\r" |
76 | after 100 | 76 | after 100 |
77 | send -- "fseccomp print seccomp-test-file\r" | 77 | send -- "fsec-print seccomp-test-file\r" |
78 | expect { | 78 | expect { |
79 | timeout {puts "TESTING ERROR 7.1\n";exit} | 79 | timeout {puts "TESTING ERROR 7.1\n";exit} |
80 | "BLACKLIST 165 mount" {puts "TESTING ERROR 7.2\n";exit} | 80 | "jeq mount" {puts "TESTING ERROR 7.2\n";exit} |
81 | "BLACKLIST 166 umount2" {puts "TESTING ERROR 7.3\n";exit} | 81 | "jeq umount2" {puts "TESTING ERROR 7.3\n";exit} |
82 | "BLACKLIST 90 chmod" | 82 | "jeq chmod" |
83 | } | 83 | } |
84 | expect { | 84 | expect { |
85 | timeout {puts "TESTING ERROR 7.4\n";exit} | 85 | timeout {puts "TESTING ERROR 7.4\n";exit} |
86 | "BLACKLIST 92 chown" | 86 | "jeq chown" |
87 | } | 87 | } |
88 | expect { | 88 | expect { |
89 | timeout {puts "TESTING ERROR 7.5\n";exit} | 89 | timeout {puts "TESTING ERROR 7.5\n";exit} |
90 | "RETURN_ALLOW" | 90 | "ret ALLOW" |
91 | } | 91 | } |
92 | 92 | ||
93 | after 100 | 93 | after 100 |
94 | send -- "fseccomp default drop seccomp-test-file tmpfile chmod,chown\r" | 94 | send -- "fseccomp default drop seccomp-test-file tmpfile chmod,chown\r" |
95 | after 100 | 95 | after 100 |
96 | send -- "fseccomp print seccomp-test-file\r" | 96 | send -- "fsec-print seccomp-test-file\r" |
97 | expect { | 97 | expect { |
98 | timeout {puts "TESTING ERROR 8.1\n";exit} | 98 | timeout {puts "TESTING ERROR 8.1\n";exit} |
99 | "BLACKLIST 165 mount" | 99 | "jeq mount" |
100 | } | 100 | } |
101 | expect { | 101 | expect { |
102 | timeout {puts "TESTING ERROR 8.2\n";exit} | 102 | timeout {puts "TESTING ERROR 8.2\n";exit} |
103 | "BLACKLIST 166 umount2" | 103 | "jeq umount2" |
104 | } | 104 | } |
105 | expect { | 105 | expect { |
106 | timeout {puts "TESTING ERROR 8.3\n";exit} | 106 | timeout {puts "TESTING ERROR 8.3\n";exit} |
107 | "BLACKLIST 90 chmod" | 107 | "jeq chmod" |
108 | } | 108 | } |
109 | expect { | 109 | expect { |
110 | timeout {puts "TESTING ERROR 8.4\n";exit} | 110 | timeout {puts "TESTING ERROR 8.4\n";exit} |
111 | "BLACKLIST 92 chown" | 111 | "jeq chown" |
112 | } | 112 | } |
113 | expect { | 113 | expect { |
114 | timeout {puts "TESTING ERROR 8.5\n";exit} | 114 | timeout {puts "TESTING ERROR 8.5\n";exit} |
115 | "RETURN_ALLOW" | 115 | "ret ALLOW" |
116 | } | 116 | } |
117 | after 100 | 117 | after 100 |
118 | send -- "fseccomp keep seccomp-test-file tmpfile chmod,chown\r" | 118 | send -- "fseccomp keep seccomp-test-file tmpfile chmod,chown\r" |
119 | after 100 | 119 | after 100 |
120 | send -- "fseccomp print seccomp-test-file\r" | 120 | send -- "fsec-print seccomp-test-file\r" |
121 | expect { | 121 | expect { |
122 | timeout {puts "TESTING ERROR 9.1\n";exit} | 122 | timeout {puts "TESTING ERROR 9.1\n";exit} |
123 | "WHITELIST 90 chmod" | 123 | "jeq chmod" |
124 | } | 124 | } |
125 | expect { | 125 | expect { |
126 | timeout {puts "TESTING ERROR 9.2\n";exit} | 126 | timeout {puts "TESTING ERROR 9.2\n";exit} |
127 | "WHITELIST 92 chown" | 127 | "jeq chown" |
128 | } | 128 | } |
129 | expect { | 129 | expect { |
130 | timeout {puts "TESTING ERROR 9.3\n";exit} | 130 | timeout {puts "TESTING ERROR 9.3\n";exit} |
131 | "KILL_PROCESS" | 131 | "ret KILL" |
132 | } | 132 | } |
133 | 133 | ||
134 | 134 | ||