Commit 01f8bc5
committed
netfilter: nf_tables: disallow element removal on anonymous sets
jira VULN-430
subsystem-update netfilter: centos-stream-9 cfd9694
commit-author Pablo Neira Ayuso <pablo@netfilter.org>
commit 23a3bfd
Anonymous sets need to be populated once at creation and then they are
bound to rule since 938154b ("netfilter: nf_tables: reject unbound
anonymous set before commit phase"), otherwise transaction reports
EINVAL.
Userspace does not need to delete elements of anonymous sets that are
not yet bound, reject this with EOPNOTSUPP.
From flush command path, skip anonymous sets, they are expected to be
bound already. Otherwise, EINVAL is hit at the end of this transaction
for unbound sets.
Fixes: 9651851 ("netfilter: add nftables")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
(cherry picked from commit 23a3bfd)
Signed-off-by: Marcin Wcisło <marcin.wcislo@conclusive.pl>1 parent 5fc6241 commit 01f8bc5
1 file changed
+5
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1385 | 1385 | | |
1386 | 1386 | | |
1387 | 1387 | | |
1388 | | - | |
1389 | | - | |
| 1388 | + | |
1390 | 1389 | | |
1391 | 1390 | | |
1392 | 1391 | | |
| |||
6909 | 6908 | | |
6910 | 6909 | | |
6911 | 6910 | | |
6912 | | - | |
6913 | | - | |
| 6911 | + | |
| 6912 | + | |
| 6913 | + | |
| 6914 | + | |
6914 | 6915 | | |
6915 | 6916 | | |
6916 | 6917 | | |
| |||
0 commit comments