Skip to content

Commit

Permalink
Merge pull request #11189 from dodys/nftables-v0.1.70
Browse files Browse the repository at this point in the history
Cherry-pick of PR 11180 for v0.1.70
  • Loading branch information
Mab879 committed Oct 10, 2023
2 parents 2568bef + 05f15d3 commit 28b7817
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
# Check if default policy is drop
output=$(nft list ruleset)

if ! (grep 'hook input' "$output" |& grep -w 'policy drop' &>/dev/null &&\
grep 'hook forward' "$output" |& grep -w 'policy drop' &>/dev/null &&\
grep 'hook output' "$output" |& grep -w 'policy drop' &>/dev/null); then
if ! (echo "$output" | grep 'hook input' |& grep -wq 'policy drop' &&\
echo "$output" | grep 'hook forward' |& grep -wq 'policy drop' &&\
echo "$output" | grep 'hook output' |& grep -wq 'policy drop'); then
exit "${XCCDF_RESULT_FAIL}"
fi

Expand Down

0 comments on commit 28b7817

Please sign in to comment.