diff options
author | startx2017 <vradu.startx@yandex.com> | 2018-07-26 09:58:50 -0400 |
---|---|---|
committer | startx2017 <vradu.startx@yandex.com> | 2018-07-26 09:58:50 -0400 |
commit | 45d5fe7c2aa0d6e08f19dc9eacd50314530958fd (patch) | |
tree | 43322a6274c97e4677d657aa33a1dfc1e46d3583 /test | |
parent | Document #1945 (diff) | |
download | firejail-45d5fe7c2aa0d6e08f19dc9eacd50314530958fd.tar.gz firejail-45d5fe7c2aa0d6e08f19dc9eacd50314530958fd.tar.zst firejail-45d5fe7c2aa0d6e08f19dc9eacd50314530958fd.zip |
removed compile time --enable-network=restricted, --net=none allowed even if networking was disabled at compile time or at run time, fixed issue #2061
Diffstat (limited to 'test')
-rwxr-xr-x | test/compile/compile.sh | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/test/compile/compile.sh b/test/compile/compile.sh index 9b7d19057..9d35bbcde 100755 --- a/test/compile/compile.sh +++ b/test/compile/compile.sh | |||
@@ -7,7 +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 | arr[8]="deprecated: TEST 8: compile network restricted" |
11 | arr[9]="TEST 9: compile file transfer disabled" | 11 | arr[9]="TEST 9: compile file transfer disabled" |
12 | arr[10]="TEST 10: compile disable whitelist" | 12 | arr[10]="TEST 10: compile disable whitelist" |
13 | arr[11]="TEST 11: compile disable global config" | 13 | arr[11]="TEST 11: compile disable global config" |
@@ -182,25 +182,6 @@ rm output-configure output-make | |||
182 | 182 | ||
183 | 183 | ||
184 | #***************************************************************** | 184 | #***************************************************************** |
185 | # TEST 8 | ||
186 | #***************************************************************** | ||
187 | # - enable network restricted | ||
188 | #***************************************************************** | ||
189 | print_title "${arr[8]}" | ||
190 | # seccomp | ||
191 | cd firejail | ||
192 | make distclean | ||
193 | ./configure --prefix=/usr --enable-network=restricted --enable-fatal-warnings 2>&1 | tee ../output-configure | ||
194 | make -j4 2>&1 | tee ../output-make | ||
195 | cd .. | ||
196 | grep Warning output-configure output-make > ./report-test8 | ||
197 | grep Error output-configure output-make >> ./report-test8 | ||
198 | cp output-configure oc8 | ||
199 | cp output-make om8 | ||
200 | rm output-configure output-make | ||
201 | |||
202 | |||
203 | #***************************************************************** | ||
204 | # TEST 9 | 185 | # TEST 9 |
205 | #***************************************************************** | 186 | #***************************************************************** |
206 | # - disable file transfer | 187 | # - disable file transfer |