]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_tables: allow to change chain policy without hook if it exists
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 17 Mar 2015 12:21:42 +0000 (13:21 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 17 Mar 2015 12:48:04 +0000 (13:48 +0100)
commit90e5816b64a83bc2999d6003e25ffaaa0f1cba6c
tree62e6cdaa684559273f0f7e9d46e29fc57476084a
parent6494f748778a2c5f935b0288b6846701d8a6a1c2
netfilter: nf_tables: allow to change chain policy without hook if it exists

If there's an existing base chain, we have to allow to change the
default policy without indicating the hook information.

However, if the chain doesn't exists, we have to enforce the presence of
the hook attribute.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_api.c