Files
kernel_arpi/include/linux
Johannes Berg 44f3625bc6 netlink: export policy in extended ACK
Add a new attribute NLMSGERR_ATTR_POLICY to the extended ACK
to advertise the policy, e.g. if an attribute was out of range,
you'll know the range that's permissible.

Add new NL_SET_ERR_MSG_ATTR_POL() and NL_SET_ERR_MSG_ATTR_POL()
macros to set this, since realistically it's only useful to do
this when the bad attribute (offset) is also returned.

Use it in lib/nlattr.c which practically does all the policy
validation.

v2:
 - add and use netlink_policy_dump_attr_size_estimate()
v3:
 - remove redundant break
v4:
 - really remove redundant break ... sorry

Reviewed-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2020-10-09 20:22:32 -07:00
..
2020-09-18 17:49:20 -07:00
2020-09-21 15:00:40 -07:00
2020-09-28 18:26:58 -07:00
2020-07-27 14:29:23 -04:00
2020-08-14 19:56:56 -07:00
2020-08-04 21:02:38 -04:00
2020-08-26 12:41:56 +02:00
2020-09-04 09:25:20 -07:00
2020-09-23 18:02:49 -07:00
2020-09-27 11:21:35 -07:00
2020-07-31 18:08:59 +10:00
2020-09-24 19:49:36 -07:00
2020-08-31 12:52:33 -07:00
2020-09-23 18:02:49 -07:00
2020-08-07 11:33:24 -07:00
2020-08-01 11:28:17 +02:00