summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/transactions/0023rule_1
blob: 863bcde43aac7a40f240d93f122e6e9d87c63056 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash

RULESET="add table x
add chain x y { type filter hook input priority 0; }
add rule x y jump y"

# kernel must return ELOOP
$NFT -f - <<< "$RULESET" 2>/dev/null || exit 0
echo "E: allowing jump to chain loop"
exit 1