Commit 5a63039
committed
netfilter: nf_tables: reject unbound anonymous set before commit phase
JIRA: https://issues.redhat.com/browse/RHEL-1720
JIRA: https://issues.redhat.com/browse/RHEL-1721
Upstream Status: commit 938154b
commit 938154b
Author: Pablo Neira Ayuso <[email protected]>
Date: Fri Jun 16 15:21:33 2023 +0200
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 <[email protected]>
Signed-off-by: Florian Westphal <[email protected]>1 parent 46d60b5 commit 5a63039
File tree
2 files changed
+35
-3
lines changed- include/net/netfilter
- net/netfilter
2 files changed
+35
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1511 | 1511 | | |
1512 | 1512 | | |
1513 | 1513 | | |
| 1514 | + | |
1514 | 1515 | | |
1515 | 1516 | | |
1516 | 1517 | | |
1517 | 1518 | | |
1518 | 1519 | | |
1519 | 1520 | | |
1520 | 1521 | | |
| 1522 | + | |
1521 | 1523 | | |
1522 | 1524 | | |
1523 | 1525 | | |
| |||
1656 | 1658 | | |
1657 | 1659 | | |
1658 | 1660 | | |
| 1661 | + | |
1659 | 1662 | | |
1660 | 1663 | | |
1661 | 1664 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
| 156 | + | |
156 | 157 | | |
157 | 158 | | |
158 | 159 | | |
| |||
165 | 166 | | |
166 | 167 | | |
167 | 168 | | |
168 | | - | |
| 169 | + | |
169 | 170 | | |
170 | 171 | | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
171 | 178 | | |
172 | 179 | | |
173 | 180 | | |
| |||
359 | 366 | | |
360 | 367 | | |
361 | 368 | | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
362 | 377 | | |
363 | 378 | | |
364 | 379 | | |
| |||
8863 | 8878 | | |
8864 | 8879 | | |
8865 | 8880 | | |
8866 | | - | |
| 8881 | + | |
8867 | 8882 | | |
8868 | 8883 | | |
8869 | 8884 | | |
| |||
9181 | 9196 | | |
9182 | 9197 | | |
9183 | 9198 | | |
| 9199 | + | |
| 9200 | + | |
| 9201 | + | |
| 9202 | + | |
| 9203 | + | |
| 9204 | + | |
| 9205 | + | |
| 9206 | + | |
| 9207 | + | |
| 9208 | + | |
| 9209 | + | |
| 9210 | + | |
| 9211 | + | |
9184 | 9212 | | |
9185 | 9213 | | |
9186 | 9214 | | |
| |||
9671 | 9699 | | |
9672 | 9700 | | |
9673 | 9701 | | |
9674 | | - | |
| 9702 | + | |
9675 | 9703 | | |
9676 | 9704 | | |
9677 | 9705 | | |
| |||
10448 | 10476 | | |
10449 | 10477 | | |
10450 | 10478 | | |
| 10479 | + | |
10451 | 10480 | | |
10452 | 10481 | | |
10453 | 10482 | | |
| |||
0 commit comments