summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPablo Neira2014-03-31 17:43:47 +0200
committerPablo Neira Ayuso2014-04-28 16:54:15 +0200
commit4c1f7818e4002ceb0498ef48cb7efa7a9597d210 (patch)
treee6f27d8017dd678da3565701589d1dfe7b6c1641
parentnetfilter: nf_tables: Add meta expression key for bridge interface name (diff)
downloadkernel-qcow2-linux-4c1f7818e4002ceb0498ef48cb7efa7a9597d210.tar.gz
kernel-qcow2-linux-4c1f7818e4002ceb0498ef48cb7efa7a9597d210.tar.xz
kernel-qcow2-linux-4c1f7818e4002ceb0498ef48cb7efa7a9597d210.zip
netfilter: nf_tables: relax string validation of NFTA_CHAIN_TYPE
Use NLA_STRING for consistency with other string attributes in nf_tables. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r--net/netfilter/nf_tables_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/nf_tables_api.c b/net/netfilter/nf_tables_api.c
index 1d0c174d30fc..a5ca900912e1 100644
--- a/net/netfilter/nf_tables_api.c
+++ b/net/netfilter/nf_tables_api.c
@@ -541,7 +541,7 @@ static const struct nla_policy nft_chain_policy[NFTA_CHAIN_MAX + 1] = {
.len = NFT_CHAIN_MAXNAMELEN - 1 },
[NFTA_CHAIN_HOOK] = { .type = NLA_NESTED },
[NFTA_CHAIN_POLICY] = { .type = NLA_U32 },
- [NFTA_CHAIN_TYPE] = { .type = NLA_NUL_STRING },
+ [NFTA_CHAIN_TYPE] = { .type = NLA_STRING },
[NFTA_CHAIN_COUNTERS] = { .type = NLA_NESTED },
};