aboutsummaryrefslogtreecommitdiffstats
path: root/test/filters/fseccomp.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/filters/fseccomp.exp')
-rwxr-xr-xtest/filters/fseccomp.exp52
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 {
31after 100 31after 100
32send -- "fseccomp protocol build unix,inet seccomp-test-file\r" 32send -- "fseccomp protocol build unix,inet seccomp-test-file\r"
33after 100 33after 100
34send -- "fseccomp print seccomp-test-file\r" 34send -- "fsec-print seccomp-test-file\r"
35expect { 35expect {
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
40after 100 40after 100
41send -- "fseccomp secondary 64 seccomp-test-file\r" 41send -- "fseccomp secondary 64 seccomp-test-file\r"
42after 100 42after 100
43send -- "fseccomp print seccomp-test-file\r" 43send -- "fsec-print seccomp-test-file\r"
44expect { 44expect {
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}
48expect { 48expect {
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}
52expect { 52expect {
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
57after 100 57after 100
58send -- "fseccomp default seccomp-test-file\r" 58send -- "fseccomp default seccomp-test-file\r"
59after 100 59after 100
60send -- "fseccomp print seccomp-test-file\r" 60send -- "fsec-print seccomp-test-file\r"
61expect { 61expect {
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}
65expect { 65expect {
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}
69expect { 69expect {
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
74after 100 74after 100
75send -- "fseccomp drop seccomp-test-file tmpfile chmod,chown\r" 75send -- "fseccomp drop seccomp-test-file tmpfile chmod,chown\r"
76after 100 76after 100
77send -- "fseccomp print seccomp-test-file\r" 77send -- "fsec-print seccomp-test-file\r"
78expect { 78expect {
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}
84expect { 84expect {
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}
88expect { 88expect {
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
93after 100 93after 100
94send -- "fseccomp default drop seccomp-test-file tmpfile chmod,chown\r" 94send -- "fseccomp default drop seccomp-test-file tmpfile chmod,chown\r"
95after 100 95after 100
96send -- "fseccomp print seccomp-test-file\r" 96send -- "fsec-print seccomp-test-file\r"
97expect { 97expect {
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}
101expect { 101expect {
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}
105expect { 105expect {
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}
109expect { 109expect {
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}
113expect { 113expect {
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}
117after 100 117after 100
118send -- "fseccomp keep seccomp-test-file tmpfile chmod,chown\r" 118send -- "fseccomp keep seccomp-test-file tmpfile chmod,chown\r"
119after 100 119after 100
120send -- "fseccomp print seccomp-test-file\r" 120send -- "fsec-print seccomp-test-file\r"
121expect { 121expect {
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}
125expect { 125expect {
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}
129expect { 129expect {
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