linux/net/l2tp
Johannes Berg ef6243acb4 genetlink: optionally validate strictly/dumps
Add options to strictly validate messages and dump messages,
sometimes perhaps validating dump messages non-strictly may
be required, so add an option for that as well.

Since none of this can really be applied to existing commands,
set the options everwhere using the following spatch:

    @@
    identifier ops;
    expression X;
    @@
    struct genl_ops ops[] = {
    ...,
     {
            .cmd = X,
    +       .validate = GENL_DONT_VALIDATE_STRICT | GENL_DONT_VALIDATE_DUMP,
            ...
     },
    ...
    };

For new commands one should just not copy the .validate 'opt-out'
flags and thus get strict validation.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-04-27 17:07:22 -04:00
..
Kconfig
l2tp_core.c l2tp: copy 4 more bytes to linear part if necessary 2019-01-31 08:58:46 -08:00
l2tp_core.h l2tp: fix reading optional fields of L2TPv3 2019-01-30 21:44:17 -08:00
l2tp_debugfs.c l2tp: ignore L2TP_ATTR_MTU 2018-08-03 10:03:57 -07:00
l2tp_eth.c l2tp: fix unused function warning 2018-08-13 20:45:49 -07:00
l2tp_ip.c net: rework SIOCGSTAMP ioctl handling 2019-04-19 14:07:40 -07:00
l2tp_ip6.c net: rework SIOCGSTAMP ioctl handling 2019-04-19 14:07:40 -07:00
l2tp_netlink.c genetlink: optionally validate strictly/dumps 2019-04-27 17:07:22 -04:00
l2tp_ppp.c l2tp: fix set but not used variable 2019-04-18 17:06:15 -07:00
Makefile