diff options
author | netblue30 <netblue30@protonmail.com> | 2023-03-07 09:50:22 -0500 |
---|---|---|
committer | netblue30 <netblue30@protonmail.com> | 2023-03-07 09:50:22 -0500 |
commit | 51f25677e6c9281b306f9720874fddf7565f4f79 (patch) | |
tree | 139844b719e48d35ba8eeac8488df9048ccf9924 /test | |
parent | testing (diff) | |
download | firejail-51f25677e6c9281b306f9720874fddf7565f4f79.tar.gz firejail-51f25677e6c9281b306f9720874fddf7565f4f79.tar.zst firejail-51f25677e6c9281b306f9720874fddf7565f4f79.zip |
remove DNS lookup for --netfilter.print and --netfilter6.print commands
Diffstat (limited to 'test')
-rwxr-xr-x | test/network/net_netfilter.exp | 22 | ||||
-rwxr-xr-x | test/network/network.sh | 4 |
2 files changed, 23 insertions, 3 deletions
diff --git a/test/network/net_netfilter.exp b/test/network/net_netfilter.exp index 56480251e..ac144e19d 100755 --- a/test/network/net_netfilter.exp +++ b/test/network/net_netfilter.exp | |||
@@ -20,7 +20,27 @@ spawn $env(SHELL) | |||
20 | send -- "firejail --netfilter.print=test\r" | 20 | send -- "firejail --netfilter.print=test\r" |
21 | expect { | 21 | expect { |
22 | timeout {puts "TESTING ERROR 1\n";exit} | 22 | timeout {puts "TESTING ERROR 1\n";exit} |
23 | "ACCEPT all -- any any anywhere anywhere state RELATED,ESTABLISHED" | 23 | "ACCEPT" |
24 | } | ||
25 | expect { | ||
26 | timeout {puts "TESTING ERROR 1\n";exit} | ||
27 | "lo" | ||
28 | } | ||
29 | expect { | ||
30 | timeout {puts "TESTING ERROR 1\n";exit} | ||
31 | "ACCEPT" | ||
32 | } | ||
33 | expect { | ||
34 | timeout {puts "TESTING ERROR 1\n";exit} | ||
35 | "state RELATED,ESTABLISHED" | ||
36 | } | ||
37 | expect { | ||
38 | timeout {puts "TESTING ERROR 1\n";exit} | ||
39 | "ACCEPT" | ||
40 | } | ||
41 | expect { | ||
42 | timeout {puts "TESTING ERROR 1\n";exit} | ||
43 | "icmptype 8" | ||
24 | } | 44 | } |
25 | 45 | ||
26 | after 500 | 46 | after 500 |
diff --git a/test/network/network.sh b/test/network/network.sh index e062358d4..2a7de2680 100755 --- a/test/network/network.sh +++ b/test/network/network.sh | |||
@@ -39,8 +39,8 @@ echo "TESTING: bandwidth (net_bandwidth.exp)" | |||
39 | echo "TESTING: ipv6 (ip6.exp)" | 39 | echo "TESTING: ipv6 (ip6.exp)" |
40 | ./ip6.exp | 40 | ./ip6.exp |
41 | 41 | ||
42 | #echo "TESTING: ipv6 netfilter(ip6_netfilter.exp)" | 42 | echo "TESTING: ipv6 netfilter(ip6_netfilter.exp)" |
43 | #./ip6_netfilter.exp | 43 | ./ip6_netfilter.exp |
44 | 44 | ||
45 | sudo ip link set br0 down | 45 | sudo ip link set br0 down |
46 | sudo brctl delbr br0 | 46 | sudo brctl delbr br0 |