Commit 938154b
committed
netfilter: nf_tables: reject unbound anonymous set before commit phase
Add a new list to track set transaction and to check for unbound
anonymous sets before entering the commit phase.
Bail out at the end of the transaction handling if an anonymous set
remains unbound.
Fixes: 9651851 ("netfilter: add nftables")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>1 parent c88c535 commit 938154b
2 files changed
Lines changed: 35 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1573 | 1573 | | |
1574 | 1574 | | |
1575 | 1575 | | |
| 1576 | + | |
1576 | 1577 | | |
1577 | 1578 | | |
1578 | 1579 | | |
1579 | 1580 | | |
1580 | 1581 | | |
1581 | 1582 | | |
1582 | 1583 | | |
| 1584 | + | |
1583 | 1585 | | |
1584 | 1586 | | |
1585 | 1587 | | |
| |||
1724 | 1726 | | |
1725 | 1727 | | |
1726 | 1728 | | |
| 1729 | + | |
1727 | 1730 | | |
1728 | 1731 | | |
1729 | 1732 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| 154 | + | |
154 | 155 | | |
155 | 156 | | |
156 | 157 | | |
| |||
163 | 164 | | |
164 | 165 | | |
165 | 166 | | |
166 | | - | |
| 167 | + | |
167 | 168 | | |
168 | 169 | | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
169 | 176 | | |
170 | 177 | | |
171 | 178 | | |
| |||
357 | 364 | | |
358 | 365 | | |
359 | 366 | | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
360 | 375 | | |
361 | 376 | | |
362 | 377 | | |
| |||
9111 | 9126 | | |
9112 | 9127 | | |
9113 | 9128 | | |
9114 | | - | |
| 9129 | + | |
9115 | 9130 | | |
9116 | 9131 | | |
9117 | 9132 | | |
| |||
9476 | 9491 | | |
9477 | 9492 | | |
9478 | 9493 | | |
| 9494 | + | |
| 9495 | + | |
| 9496 | + | |
| 9497 | + | |
| 9498 | + | |
| 9499 | + | |
| 9500 | + | |
| 9501 | + | |
| 9502 | + | |
| 9503 | + | |
| 9504 | + | |
| 9505 | + | |
| 9506 | + | |
9479 | 9507 | | |
9480 | 9508 | | |
9481 | 9509 | | |
| |||
9989 | 10017 | | |
9990 | 10018 | | |
9991 | 10019 | | |
9992 | | - | |
| 10020 | + | |
9993 | 10021 | | |
9994 | 10022 | | |
9995 | 10023 | | |
| |||
10765 | 10793 | | |
10766 | 10794 | | |
10767 | 10795 | | |
| 10796 | + | |
10768 | 10797 | | |
10769 | 10798 | | |
10770 | 10799 | | |
| |||
0 commit comments