diff --git a/tests/xtables-tools-locking-vulnerable-to-local-DoS/runtest.sh b/tests/xtables-tools-locking-vulnerable-to-local-DoS/runtest.sh index abfb03a..1aaaf26 100755 --- a/tests/xtables-tools-locking-vulnerable-to-local-DoS/runtest.sh +++ b/tests/xtables-tools-locking-vulnerable-to-local-DoS/runtest.sh @@ -36,11 +36,13 @@ rlJournalStart rlPhaseEnd rlPhaseStartTest - 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 + 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