commit | 75e8d06d4308436055d1a78a2c02bf6328ba724d | [log] [tgz] |
---|---|---|
author | Pablo Neira Ayuso <pablo@netfilter.org> | Wed Jan 14 15:33:57 2015 +0100 |
committer | Pablo Neira Ayuso <pablo@netfilter.org> | Mon Jan 19 14:52:39 2015 +0100 |
tree | 64fcef16df64c35c2f3ceca20982d3723a2637c4 | |
parent | 2061dcd6bff8b774b4fac8b0739b6be3f87bc9f2 [diff] |
netfilter: nf_tables: validate hooks in NAT expressions The user can crash the kernel if it uses any of the existing NAT expressions from the wrong hook, so add some code to validate this when loading the rule. This patch introduces nft_chain_validate_hooks() which is based on an existing function in the bridge version of the reject expression. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>