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-08-10 01:32:59 +09:00
2020-08-10 01:32:59 +09:00
2020-08-24 14:17:44 -07:00
2020-09-25 10:28:51 +02:00
2020-08-10 01:32:59 +09:00
2020-08-09 14:10:26 -07:00
2020-08-14 19:56:56 -07:00
2020-08-10 01:32:59 +09:00
2020-08-12 10:58:00 -07:00
2020-08-10 01:32:59 +09:00
2020-07-28 17:07:06 -07:00
2020-08-10 01:32:59 +09:00
2020-08-10 01:32:59 +09:00
2020-08-06 10:57:30 +02:00
2020-08-24 14:17:44 -07:00
2020-08-10 01:32:59 +09:00
2020-08-10 01:32:59 +09:00
2020-08-10 01:32:59 +09:00
2020-08-24 14:17:44 -07:00
2020-08-24 14:17:44 -07:00
2020-08-24 14:17:44 -07:00
2020-08-12 10:57:59 -07:00
2020-09-21 21:50:09 -04:00
2020-06-11 15:14:53 +02:00
2020-07-20 17:45:32 -07:00
2020-08-24 14:17:44 -07:00
2020-07-08 11:39:01 +02:00
2020-06-19 14:17:05 -06:00
2020-08-12 10:58:00 -07:00
2020-06-18 17:26:43 +10:00
2020-07-17 23:25:46 +02:00
2020-08-12 10:58:00 -07:00
2020-08-12 10:58:00 -07:00
2020-07-31 11:49:08 +02:00
2020-07-31 11:49:08 +02:00
2020-07-10 14:15:55 +02:00
2020-06-09 09:39:13 -07:00
2020-09-10 18:45:03 +02:00
2020-06-04 19:06:25 -07:00
2020-08-24 14:17:44 -07:00
2020-08-14 19:56:57 -07:00
2020-06-30 09:34:23 -04:00
2020-08-05 20:13:21 -07:00
2020-09-19 13:13:39 -07:00
2020-08-07 11:33:28 -07:00
2020-06-29 12:04:48 -07:00
2020-07-09 20:09:28 -07:00
2020-06-11 20:03:59 +02:00
2020-09-07 11:24:17 +02:00
2020-08-12 10:58:00 -07:00
2020-08-19 11:23:45 -07:00
2020-09-26 10:33:57 -07:00
2020-10-09 20:22:32 -07:00
2020-06-28 20:45:27 -07:00
2020-08-07 11:33:26 -07:00
2020-06-04 19:06:25 -07:00
2020-07-16 12:35:15 -07:00
2020-10-02 09:31:54 -07:00
2020-08-12 10:58:00 -07:00
2020-07-28 17:09:49 -07:00
2020-07-01 10:53:00 -06:00
2020-06-15 18:22:43 -07:00
2020-08-24 14:17:44 -07:00
2020-06-11 15:14:36 +02:00
2020-09-26 10:33:57 -07:00
2020-06-04 19:06:25 -07:00
2020-08-12 10:57:59 -07:00
2020-08-12 10:57:59 -07:00
2020-08-12 10:58:00 -07:00
2020-07-16 20:52:43 +02:00
2020-09-10 18:19:16 +02:00
2020-06-29 10:02:23 +02:00
2020-07-10 16:24:28 -03:00
2020-07-28 16:20:33 -03:00
2020-08-07 11:33:28 -07:00
2020-08-12 10:58:01 -07:00
2020-08-12 10:58:00 -07:00
2020-06-15 13:32:11 -07:00
2020-06-07 10:53:36 -07:00
2020-09-20 14:10:06 -07:00
2020-06-09 10:03:12 -07:00
2020-06-29 11:59:26 -07:00
2020-07-15 12:45:06 +03:00
2020-08-12 10:58:00 -07:00
2020-08-24 14:17:44 -07:00
2020-06-04 19:06:28 -07:00
2020-06-11 20:02:46 +02:00
2020-08-24 14:17:44 -07:00
2020-08-12 10:58:00 -07:00