projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5efc69
)
netfilter: nf_tables: relax string validation of NFTA_CHAIN_TYPE
author
Pablo Neira
<pablo@netfilter.org>
Mon, 31 Mar 2014 15:43:47 +0000
(17:43 +0200)
committer
Pablo Neira Ayuso
<pablo@netfilter.org>
Mon, 28 Apr 2014 14:54:15 +0000
(16:54 +0200)
Use NLA_STRING for consistency with other string attributes in
nf_tables.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_api.c
patch
|
blob
|
history
diff --git
a/net/netfilter/nf_tables_api.c
b/net/netfilter/nf_tables_api.c
index 1d0c174d30fc81ffa8f9eebd67c045af4a8b0cd8..a5ca900912e143f7193418e582e2dd72da6eb09a 100644
(file)
--- 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 },
};