File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -177,8 +177,15 @@ echo
177
177
if [ -s .links ]; then
178
178
while read file link; do
179
179
if [ " $( readlink $file ) " != " $link " ]; then
180
- wrap_bad ' - links' " $file should link to $link "
181
- linkFail=1
180
+ # If no iptables is installed on the host system, the symlink will be different
181
+ if [ " $( readlink $file ) " = " xtables-legacy-multi" ]; then
182
+ wrap_warn " - $file " " symlink to xtables-legacy-multi"
183
+ elif [ " $( readlink $file ) " = " xtables-nft-multi" ]; then
184
+ wrap_warn " - $file " " symlink to xtables-nft-multi"
185
+ else
186
+ wrap_bad " - $file " " symlink to $link "
187
+ linkFail=1
188
+ fi
182
189
fi
183
190
done < .links
184
191
if [ $linkFail -eq 0 ]; then
374
381
375
382
flags="
376
383
NAMESPACES NET_NS PID_NS IPC_NS UTS_NS
377
- CGROUPS CGROUP_CPUACCT CGROUP_DEVICE CGROUP_FREEZER CGROUP_SCHED CPUSETS MEMCG
384
+ CGROUPS CGROUP_PIDS CGROUP_CPUACCT CGROUP_DEVICE CGROUP_FREEZER CGROUP_SCHED CPUSETS MEMCG
378
385
KEYS
379
386
VETH BRIDGE BRIDGE_NETFILTER
380
387
IP_NF_FILTER IP_NF_TARGET_MASQUERADE
@@ -398,9 +405,6 @@ echo 'Optional Features:'
398
405
{
399
406
check_flags SECCOMP
400
407
}
401
- {
402
- check_flags CGROUP_PIDS
403
- }
404
408
# {
405
409
# check_flags MEMCG_SWAP MEMCG_SWAP_ENABLED
406
410
# if [ -e /sys/fs/cgroup/memory/memory.memsw.limit_in_bytes ]; then
You can’t perform that action at this time.
0 commit comments