summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/owner/0001-flowtable-uaf
blob: c07e8d6a0ab9a919530b88c6e892b5a5f0da2f44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash

# NFT_TEST_REQUIRES(NFT_TEST_HAVE_table_flag_owner)

set -e

$NFT -f - <<EOF
table t {
 flags owner
 flowtable f {
  hook ingress priority 0
  devices = { lo }
 }
}
EOF

# trigger uaf.
$NFT -f - <<EOF
table t {
 flags owner
 flowtable f {
  hook ingress priority 0
  devices = { lo }
 }
}
EOF