diff options
author | 2020-09-09 09:33:47 -0400 | |
---|---|---|
committer | 2020-09-09 09:33:47 -0400 | |
commit | 5ad6f4c7101f8a11275fc18a6e67e6c584a082fb (patch) | |
tree | c432110d03b0c404d29dc9c3d61b6a9072c759fb /test/compile | |
parent | disable dbus proxy at compile time (default enabled) - part 1 (diff) | |
download | firejail-5ad6f4c7101f8a11275fc18a6e67e6c584a082fb.tar.gz firejail-5ad6f4c7101f8a11275fc18a6e67e6c584a082fb.tar.zst firejail-5ad6f4c7101f8a11275fc18a6e67e6c584a082fb.zip |
disable dbus proxy at compile time (default enabled) - part 2
Diffstat (limited to 'test/compile')
-rwxr-xr-x | test/compile/compile.sh | 50 |
1 files changed, 18 insertions, 32 deletions
diff --git a/test/compile/compile.sh b/test/compile/compile.sh index 6739bc4d6..c6da2a647 100755 --- a/test/compile/compile.sh +++ b/test/compile/compile.sh | |||
@@ -4,7 +4,7 @@ | |||
4 | # License GPL v2 | 4 | # License GPL v2 |
5 | 5 | ||
6 | arr[1]="TEST 1: standard compilation" | 6 | arr[1]="TEST 1: standard compilation" |
7 | arr[2]="deprecated" | 7 | arr[2]="TEST 2: compile dbus proxy disabled" |
8 | arr[3]="TEST 3: compile chroot disabled" | 8 | arr[3]="TEST 3: compile chroot disabled" |
9 | arr[4]="TEST 4: compile firetunnel disabled" | 9 | arr[4]="TEST 4: compile firetunnel disabled" |
10 | arr[5]="TEST 5: compile user namespace disabled" | 10 | arr[5]="TEST 5: compile user namespace disabled" |
@@ -76,23 +76,22 @@ cp output-make om1 | |||
76 | rm output-configure output-make | 76 | rm output-configure output-make |
77 | 77 | ||
78 | 78 | ||
79 | ##***************************************************************** | 79 | #***************************************************************** |
80 | ## TEST 2 | 80 | # TEST 2 |
81 | ##***************************************************************** | 81 | #***************************************************************** |
82 | ## - disable seccomp configuration | 82 | # - disable dbus proxy configuration |
83 | ##***************************************************************** | 83 | #***************************************************************** |
84 | #print_title "${arr[2]}" | 84 | print_title "${arr[2]}" |
85 | ## seccomp | 85 | cd firejail |
86 | #cd firejail | 86 | make distclean |
87 | #make distclean | 87 | ./configure --prefix=/usr --disable-dbusproxy --enable-fatal-warnings 2>&1 | tee ../output-configure |
88 | #./configure --prefix=/usr --disable-seccomp --enable-fatal-warnings 2>&1 | tee ../output-configure | 88 | make -j4 2>&1 | tee ../output-make |
89 | #make -j4 2>&1 | tee ../output-make | 89 | cd .. |
90 | #cd .. | 90 | grep Warning output-configure output-make > ./report-test2 |
91 | #grep Warning output-configure output-make > ./report-test2 | 91 | grep Error output-configure output-make >> ./report-test2 |
92 | #grep Error output-configure output-make >> ./report-test2 | 92 | cp output-configure oc2 |
93 | #cp output-configure oc2 | 93 | cp output-make om2 |
94 | #cp output-make om2 | 94 | rm output-configure output-make |
95 | #rm output-configure output-make | ||
96 | 95 | ||
97 | #***************************************************************** | 96 | #***************************************************************** |
98 | # TEST 3 | 97 | # TEST 3 |
@@ -100,7 +99,6 @@ rm output-configure output-make | |||
100 | # - disable chroot configuration | 99 | # - disable chroot configuration |
101 | #***************************************************************** | 100 | #***************************************************************** |
102 | print_title "${arr[3]}" | 101 | print_title "${arr[3]}" |
103 | # seccomp | ||
104 | cd firejail | 102 | cd firejail |
105 | make distclean | 103 | make distclean |
106 | ./configure --prefix=/usr --disable-chroot --enable-fatal-warnings 2>&1 | tee ../output-configure | 104 | ./configure --prefix=/usr --disable-chroot --enable-fatal-warnings 2>&1 | tee ../output-configure |
@@ -118,7 +116,6 @@ rm output-configure output-make | |||
118 | # - disable firetunnel configuration | 116 | # - disable firetunnel configuration |
119 | #***************************************************************** | 117 | #***************************************************************** |
120 | print_title "${arr[4]}" | 118 | print_title "${arr[4]}" |
121 | # seccomp | ||
122 | cd firejail | 119 | cd firejail |
123 | make distclean | 120 | make distclean |
124 | ./configure --prefix=/usr --disable-firetunnel --enable-fatal-warnings 2>&1 | tee ../output-configure | 121 | ./configure --prefix=/usr --disable-firetunnel --enable-fatal-warnings 2>&1 | tee ../output-configure |
@@ -136,7 +133,6 @@ rm output-configure output-make | |||
136 | # - disable user namespace configuration | 133 | # - disable user namespace configuration |
137 | #***************************************************************** | 134 | #***************************************************************** |
138 | print_title "${arr[5]}" | 135 | print_title "${arr[5]}" |
139 | # seccomp | ||
140 | cd firejail | 136 | cd firejail |
141 | make distclean | 137 | make distclean |
142 | ./configure --prefix=/usr --disable-userns --enable-fatal-warnings 2>&1 | tee ../output-configure | 138 | ./configure --prefix=/usr --disable-userns --enable-fatal-warnings 2>&1 | tee ../output-configure |
@@ -155,7 +151,6 @@ rm output-configure output-make | |||
155 | # - check compilation | 151 | # - check compilation |
156 | #***************************************************************** | 152 | #***************************************************************** |
157 | print_title "${arr[6]}" | 153 | print_title "${arr[6]}" |
158 | # seccomp | ||
159 | cd firejail | 154 | cd firejail |
160 | make distclean | 155 | make distclean |
161 | ./configure --prefix=/usr --disable-network --enable-fatal-warnings 2>&1 | tee ../output-configure | 156 | ./configure --prefix=/usr --disable-network --enable-fatal-warnings 2>&1 | tee ../output-configure |
@@ -173,7 +168,6 @@ rm output-configure output-make | |||
173 | # - disable X11 support | 168 | # - disable X11 support |
174 | #***************************************************************** | 169 | #***************************************************************** |
175 | print_title "${arr[7]}" | 170 | print_title "${arr[7]}" |
176 | # seccomp | ||
177 | cd firejail | 171 | cd firejail |
178 | make distclean | 172 | make distclean |
179 | ./configure --prefix=/usr --disable-x11 --enable-fatal-warnings 2>&1 | tee ../output-configure | 173 | ./configure --prefix=/usr --disable-x11 --enable-fatal-warnings 2>&1 | tee ../output-configure |
@@ -191,7 +185,6 @@ rm output-configure output-make | |||
191 | # - enable selinux | 185 | # - enable selinux |
192 | #***************************************************************** | 186 | #***************************************************************** |
193 | print_title "${arr[8]}" | 187 | print_title "${arr[8]}" |
194 | # seccomp | ||
195 | cd firejail | 188 | cd firejail |
196 | make distclean | 189 | make distclean |
197 | ./configure --prefix=/usr --enable-selinux --enable-fatal-warnings 2>&1 | tee ../output-configure | 190 | ./configure --prefix=/usr --enable-selinux --enable-fatal-warnings 2>&1 | tee ../output-configure |
@@ -209,7 +202,6 @@ rm output-configure output-make | |||
209 | # - disable file transfer | 202 | # - disable file transfer |
210 | #***************************************************************** | 203 | #***************************************************************** |
211 | print_title "${arr[9]}" | 204 | print_title "${arr[9]}" |
212 | # seccomp | ||
213 | cd firejail | 205 | cd firejail |
214 | make distclean | 206 | make distclean |
215 | ./configure --prefix=/usr --disable-file-transfer --enable-fatal-warnings 2>&1 | tee ../output-configure | 207 | ./configure --prefix=/usr --disable-file-transfer --enable-fatal-warnings 2>&1 | tee ../output-configure |
@@ -227,7 +219,6 @@ rm output-configure output-make | |||
227 | # - disable whitelist | 219 | # - disable whitelist |
228 | #***************************************************************** | 220 | #***************************************************************** |
229 | print_title "${arr[10]}" | 221 | print_title "${arr[10]}" |
230 | # seccomp | ||
231 | cd firejail | 222 | cd firejail |
232 | make distclean | 223 | make distclean |
233 | ./configure --prefix=/usr --disable-whitelist --enable-fatal-warnings 2>&1 | tee ../output-configure | 224 | ./configure --prefix=/usr --disable-whitelist --enable-fatal-warnings 2>&1 | tee ../output-configure |
@@ -245,7 +236,6 @@ rm output-configure output-make | |||
245 | # - disable global config | 236 | # - disable global config |
246 | #***************************************************************** | 237 | #***************************************************************** |
247 | print_title "${arr[11]}" | 238 | print_title "${arr[11]}" |
248 | # seccomp | ||
249 | cd firejail | 239 | cd firejail |
250 | make distclean | 240 | make distclean |
251 | ./configure --prefix=/usr --disable-globalcfg --enable-fatal-warnings 2>&1 | tee ../output-configure | 241 | ./configure --prefix=/usr --disable-globalcfg --enable-fatal-warnings 2>&1 | tee ../output-configure |
@@ -263,7 +253,6 @@ rm output-configure output-make | |||
263 | # - enable apparmor | 253 | # - enable apparmor |
264 | #***************************************************************** | 254 | #***************************************************************** |
265 | print_title "${arr[12]}" | 255 | print_title "${arr[12]}" |
266 | # seccomp | ||
267 | cd firejail | 256 | cd firejail |
268 | make distclean | 257 | make distclean |
269 | ./configure --prefix=/usr --enable-apparmor --enable-fatal-warnings 2>&1 | tee ../output-configure | 258 | ./configure --prefix=/usr --enable-apparmor --enable-fatal-warnings 2>&1 | tee ../output-configure |
@@ -281,7 +270,6 @@ rm output-configure output-make | |||
281 | # - enable busybox workaround | 270 | # - enable busybox workaround |
282 | #***************************************************************** | 271 | #***************************************************************** |
283 | print_title "${arr[13]}" | 272 | print_title "${arr[13]}" |
284 | # seccomp | ||
285 | cd firejail | 273 | cd firejail |
286 | make distclean | 274 | make distclean |
287 | ./configure --prefix=/usr --enable-busybox-workaround --enable-fatal-warnings 2>&1 | tee ../output-configure | 275 | ./configure --prefix=/usr --enable-busybox-workaround --enable-fatal-warnings 2>&1 | tee ../output-configure |
@@ -299,7 +287,6 @@ rm output-configure output-make | |||
299 | # - disable overlayfs | 287 | # - disable overlayfs |
300 | #***************************************************************** | 288 | #***************************************************************** |
301 | print_title "${arr[14]}" | 289 | print_title "${arr[14]}" |
302 | # seccomp | ||
303 | cd firejail | 290 | cd firejail |
304 | make distclean | 291 | make distclean |
305 | ./configure --prefix=/usr --disable-overlayfs --enable-fatal-warnings 2>&1 | tee ../output-configure | 292 | ./configure --prefix=/usr --disable-overlayfs --enable-fatal-warnings 2>&1 | tee ../output-configure |
@@ -317,7 +304,6 @@ rm output-configure output-make | |||
317 | # - disable private home | 304 | # - disable private home |
318 | #***************************************************************** | 305 | #***************************************************************** |
319 | print_title "${arr[15]}" | 306 | print_title "${arr[15]}" |
320 | # seccomp | ||
321 | cd firejail | 307 | cd firejail |
322 | make distclean | 308 | make distclean |
323 | ./configure --prefix=/usr --disable-private-home --enable-fatal-warnings 2>&1 | tee ../output-configure | 309 | ./configure --prefix=/usr --disable-private-home --enable-fatal-warnings 2>&1 | tee ../output-configure |
@@ -344,7 +330,7 @@ wc -l report-test* | |||
344 | echo | 330 | echo |
345 | echo "Legend:" | 331 | echo "Legend:" |
346 | echo ${arr[1]} | 332 | echo ${arr[1]} |
347 | #echo ${arr[2]} | 333 | echo ${arr[2]} |
348 | echo ${arr[3]} | 334 | echo ${arr[3]} |
349 | echo ${arr[4]} | 335 | echo ${arr[4]} |
350 | echo ${arr[5]} | 336 | echo ${arr[5]} |