Files
kernel/include/net
Michal Kubecek b424e432e7 netlink: add validation of NLA_F_NESTED flag
Add new validation flag NL_VALIDATE_NESTED which adds three consistency
checks of NLA_F_NESTED_FLAG:

  - the flag is set on attributes with NLA_NESTED{,_ARRAY} policy
  - the flag is not set on attributes with other policies except NLA_UNSPEC
  - the flag is set on attribute passed to nla_parse_nested()

Signed-off-by: Michal Kubecek <mkubecek@suse.cz>

v2: change error messages to mention NLA_F_NESTED explicitly
Reviewed-by: Johannes Berg <johannes@sipsolutions.net>
Reviewed-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-05-04 01:27:11 -04:00
..
2019-02-21 16:23:56 -08:00
2019-01-23 11:18:00 -08:00
2019-04-19 14:07:40 -07:00
2019-04-30 23:15:35 -04:00
2019-03-21 13:39:25 -07:00
2019-02-13 21:07:47 -08:00
2019-02-25 14:32:35 -08:00
2019-04-22 21:47:25 -07:00
2018-12-20 16:56:04 -08:00
2019-04-27 09:07:04 -07:00