diff options
author | netblue30 <netblue30@yahoo.com> | 2016-02-24 09:03:11 -0500 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2016-02-24 09:03:11 -0500 |
commit | abe50f280dccc8444e0209816365dfd853bf3c31 (patch) | |
tree | c2f9a68b389a7890dc6acbf691c1087bdba14f33 /test/compile | |
parent | x11 work (diff) | |
download | firejail-abe50f280dccc8444e0209816365dfd853bf3c31.tar.gz firejail-abe50f280dccc8444e0209816365dfd853bf3c31.tar.zst firejail-abe50f280dccc8444e0209816365dfd853bf3c31.zip |
./configure --enable-network=restricted
Diffstat (limited to 'test/compile')
-rwxr-xr-x | test/compile/compile.sh | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/test/compile/compile.sh b/test/compile/compile.sh index d191b4d2b..40d37a990 100755 --- a/test/compile/compile.sh +++ b/test/compile/compile.sh | |||
@@ -7,6 +7,7 @@ arr[4]="TEST 4: compile bind disabled" | |||
7 | arr[5]="TEST 5: compile user namespace disabled" | 7 | arr[5]="TEST 5: compile user namespace disabled" |
8 | arr[6]="TEST 6: compile network disabled" | 8 | arr[6]="TEST 6: compile network disabled" |
9 | arr[7]="TEST 7: compile X11 disabled" | 9 | arr[7]="TEST 7: compile X11 disabled" |
10 | arr[8]="TEST 8: compile network restricted" | ||
10 | 11 | ||
11 | 12 | ||
12 | # remove previous reports and output file | 13 | # remove previous reports and output file |
@@ -153,7 +154,7 @@ rm output-configure output-make | |||
153 | # - disable X11 support | 154 | # - disable X11 support |
154 | # - check compilation | 155 | # - check compilation |
155 | #***************************************************************** | 156 | #***************************************************************** |
156 | print_title "${arr[6]}" | 157 | print_title "${arr[7]}" |
157 | # seccomp | 158 | # seccomp |
158 | cd firejail | 159 | cd firejail |
159 | make distclean | 160 | make distclean |
@@ -166,6 +167,24 @@ rm output-configure output-make | |||
166 | 167 | ||
167 | 168 | ||
168 | #***************************************************************** | 169 | #***************************************************************** |
170 | # TEST 8 | ||
171 | #***************************************************************** | ||
172 | # - enable network restricted | ||
173 | # - check compilation | ||
174 | #***************************************************************** | ||
175 | print_title "${arr[8]}" | ||
176 | # seccomp | ||
177 | cd firejail | ||
178 | make distclean | ||
179 | ./configure --prefix=/usr --enable-network=restricted --enable-fatal-warnings 2>&1 | tee ../output-configure | ||
180 | make -j4 2>&1 | tee ../output-make | ||
181 | cd .. | ||
182 | grep Warning output-configure output-make > ./report-test8 | ||
183 | grep Error output-configure output-make >> ./report-test8 | ||
184 | rm output-configure output-make | ||
185 | |||
186 | |||
187 | #***************************************************************** | ||
169 | # PRINT REPORTS | 188 | # PRINT REPORTS |
170 | #***************************************************************** | 189 | #***************************************************************** |
171 | echo | 190 | echo |
@@ -186,3 +205,4 @@ echo ${arr[4]} | |||
186 | echo ${arr[5]} | 205 | echo ${arr[5]} |
187 | echo ${arr[6]} | 206 | echo ${arr[6]} |
188 | echo ${arr[7]} | 207 | echo ${arr[7]} |
208 | echo ${arr[8]} | ||