Skip to content

Commit c441e4d

Browse files
committed
netfilter: nf_tables: disallow updates of anonymous sets
jira VUlN-429 subsystem-sync netfilter:nf_tables 4.18.0-511 commit-author Pablo Neira Ayuso <[email protected]> commit b770283 Disallow updates of set timeout and garbage collection parameters for anonymous sets. Fixes: 123b996 ("netfilter: nf_tables: honor set timeout and garbage collection updates") Signed-off-by: Pablo Neira Ayuso <[email protected]> (cherry picked from commit b770283) Signed-off-by: Greg Rose <[email protected]>
1 parent 566645e commit c441e4d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

net/netfilter/nf_tables_api.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4207,6 +4207,9 @@ static int nf_tables_newset(struct net *net, struct sock *nlsk,
42074207
if (nlh->nlmsg_flags & NLM_F_REPLACE)
42084208
return -EOPNOTSUPP;
42094209

4210+
if (nft_set_is_anonymous(set))
4211+
return -EOPNOTSUPP;
4212+
42104213
return 0;
42114214
}
42124215

0 commit comments

Comments
 (0)