1
0
Fork 0
alistair23-linux/include/linux/netfilter_bridge
Gao Feng c953d63548 ebtables: arpreply: Add the standard target sanity check
The info->target comes from userspace and it would be used directly.
So we need to add the sanity check to make sure it is a valid standard
target, although the ebtables tool has already checked it. Kernel needs
to validate anything coming from userspace.

If the target is set as an evil value, it would break the ebtables
and cause a panic. Because the non-standard target is treated as one
offset.

Now add one helper function ebt_invalid_target, and we would replace
the macro INVALID_TARGET later.

Signed-off-by: Gao Feng <gfree.wind@vip.163.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
2017-05-16 10:24:27 +02:00
..
ebt_802_3.h UAPI: (Scripted) Disintegrate include/linux/netfilter_bridge 2012-10-09 09:48:58 +01:00
ebtables.h ebtables: arpreply: Add the standard target sanity check 2017-05-16 10:24:27 +02:00