tests: iptables-nft does not lock in user space anymore
Effectively disable xtables-tools-locking-vulnerable-to-local-DoS unless for old versions of RHEL/Fedora/CentOS. Related: RHEL-14147
This commit is contained in:
parent
66c02f9077
commit
33ffe56c42
@ -36,11 +36,13 @@ rlJournalStart
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest
|
||||
if rlIsRHEL '<8' || rlIsFedora '<32' || rlIsCentOS '<8'; then
|
||||
rlRun "strace -fe flock,bind,open,openat -o strace.out iptables -w -L" 0 "execute iptables in strace"
|
||||
echo --debug--; cat strace.out
|
||||
rlAssertNotGrep "bind.*xtables" strace.out -E
|
||||
rlAssertGrep " flock(" strace.out
|
||||
rlAssertGrep "/run/xtables.lock" strace.out
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartCleanup
|
||||
|
Loading…
Reference in New Issue
Block a user