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