diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-05-24 11:23:51 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-05-31 11:57:18 +0200 |
commit | 893e093c786c4256d52809eed697e9d70a6f6643 (patch) | |
tree | 23f9c9487caf5f3937bd11e8f826579c19245e84 /Documentation | |
parent | eaa2bcd6d1d410a52df8c7b05e76d86c0319b7b0 (diff) |
netfilter: nf_ct_helper: bail out on duplicated helpers
Don't allow registration of helpers using the same tuple:
{ l3proto, l4proto, src-port }
We lookup for the helper from the packet path using this tuple through
__nf_ct_helper_find(). Therefore, we have to avoid having two helpers
with the same tuple to ensure predictible behaviour.
Don't compare the helper string names anymore since it is valid to
register two helpers with the same name, but using different tuples.
This is also implicitly fixing up duplicated helper registration via
ports= modparam since the name comparison was defeating the tuple
duplication validation.
Reported-by: Feng Gao <gfree.wind@gmail.com>
Reported-by: Taehee Yoo <ap420073@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions