aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLibravatar startx2017 <vradu.startx@yandex.com>2018-07-26 09:58:50 -0400
committerLibravatar startx2017 <vradu.startx@yandex.com>2018-07-26 09:58:50 -0400
commit45d5fe7c2aa0d6e08f19dc9eacd50314530958fd (patch)
tree43322a6274c97e4677d657aa33a1dfc1e46d3583 /test
parentDocument #1945 (diff)
downloadfirejail-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-xtest/compile/compile.sh21
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"
7arr[5]="TEST 5: compile user namespace disabled" 7arr[5]="TEST 5: compile user namespace disabled"
8arr[6]="TEST 6: compile network disabled" 8arr[6]="TEST 6: compile network disabled"
9arr[7]="TEST 7: compile X11 disabled" 9arr[7]="TEST 7: compile X11 disabled"
10arr[8]="TEST 8: compile network restricted" 10arr[8]="deprecated: TEST 8: compile network restricted"
11arr[9]="TEST 9: compile file transfer disabled" 11arr[9]="TEST 9: compile file transfer disabled"
12arr[10]="TEST 10: compile disable whitelist" 12arr[10]="TEST 10: compile disable whitelist"
13arr[11]="TEST 11: compile disable global config" 13arr[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#*****************************************************************
189print_title "${arr[8]}"
190# seccomp
191cd firejail
192make distclean
193./configure --prefix=/usr --enable-network=restricted --enable-fatal-warnings 2>&1 | tee ../output-configure
194make -j4 2>&1 | tee ../output-make
195cd ..
196grep Warning output-configure output-make > ./report-test8
197grep Error output-configure output-make >> ./report-test8
198cp output-configure oc8
199cp output-make om8
200rm output-configure output-make
201
202
203#*****************************************************************
204# TEST 9 185# TEST 9
205#***************************************************************** 186#*****************************************************************
206# - disable file transfer 187# - disable file transfer