diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2023-07-23 16:41:48 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2023-07-26 16:48:49 +0200 |
commit | 0ebc1064e4874d5987722a2ddbc18f94aa53b211 (patch) | |
tree | ea19306a3e56bac6b91a0ed63b62bc2a490cb37b /security/selinux/hooks.c | |
parent | 0a771f7b266b02d262900c75f1e175c7fe76fec2 (diff) |
netfilter: nf_tables: disallow rule addition to bound chain via NFTA_RULE_CHAIN_ID
Bail out with EOPNOTSUPP when adding rule to bound chain via
NFTA_RULE_CHAIN_ID. The following warning splat is shown when
adding a rule to a deleted bound chain:
WARNING: CPU: 2 PID: 13692 at net/netfilter/nf_tables_api.c:2013 nf_tables_chain_destroy+0x1f7/0x210 [nf_tables]
CPU: 2 PID: 13692 Comm: chain-bound-rul Not tainted 6.1.39 #1
RIP: 0010:nf_tables_chain_destroy+0x1f7/0x210 [nf_tables]
Fixes: d0e2c7de92c7 ("netfilter: nf_tables: add NFT_CHAIN_BINDING")
Reported-by: Kevin Rich <kevinrich1337@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions