Florian Westphal and Greg Kroah-Hartman
c5f83fec3c
netlink: allow be16 and be32 types in all uint policy checks
...
[ Upstream commit 5fac9b7c16 ]
__NLA_IS_BEINT_TYPE(tp) isn't useful. NLA_BE16/32 are identical to
NLA_U16/32, the only difference is that it tells the netlink validation
functions that byteorder conversion might be needed before comparing
the value to the policy min/max ones.
After this change all policy macros that can be used with UINT types,
such as NLA_POLICY_MASK() can also be used with NLA_BE16/32.
This will be used to validate nf_tables flag attributes which
are in bigendian byte order.
Signed-off-by: Florian Westphal <fw@strlen.de >
Stable-dep-of: 8f15b5071b ("netfilter: ctnetlink: use netlink policy range checks")
Signed-off-by: Sasha Levin <sashal@kernel.org >
2026-04-11 14:16:09 +02:00
..
2025-04-10 14:33:34 +02:00
2026-01-17 16:39:26 +01:00
2023-05-24 17:32:31 +01:00
2022-12-31 13:31:56 +01:00
2024-07-11 12:47:08 +02:00
2025-06-04 14:40:08 +02:00
2024-08-29 17:30:14 +02:00
2024-02-23 09:12:49 +01:00
2022-10-11 17:42:58 -06:00
2022-11-23 19:50:15 +01:00
2024-10-17 15:20:58 +02:00
2023-12-13 18:39:04 +01:00
2023-07-19 16:21:58 +02:00
2026-03-25 11:03:23 +01:00
2025-10-02 13:40:43 +02:00
2023-03-10 09:33:47 +01:00
2025-03-28 21:58:57 +01:00
2023-08-30 16:11:08 +02:00
2024-03-26 18:20:28 -04:00
2023-06-14 11:15:22 +02:00
2022-10-06 05:57:36 -07:00
2024-10-17 15:21:22 +02:00
2024-08-03 08:49:38 +02:00
2025-10-02 13:40:43 +02:00
2024-05-17 11:56:20 +02:00
2025-06-04 14:40:03 +02:00
2023-12-08 08:51:15 +01:00
2022-11-22 18:50:44 -08:00
2022-10-11 17:42:55 -06:00
2022-10-06 05:57:36 -07:00
2026-02-06 16:44:17 +01:00
2025-10-19 16:23:14 +02:00
2024-09-12 11:10:25 +02:00
2024-01-10 17:10:36 +01:00
2026-01-11 15:19:11 +01:00
2022-10-03 14:03:21 -07:00
2022-10-03 14:03:18 -07:00
2025-06-27 11:07:39 +01:00
2025-07-06 10:58:03 +02:00
2022-10-11 12:01:24 +02:00
2022-11-08 15:57:24 -08:00
2024-08-03 08:49:39 +02:00
2023-09-23 11:11:07 +02:00
2023-02-01 08:34:34 +01:00
2025-10-02 13:40:41 +02:00
2025-07-06 10:58:03 +02:00
2025-07-06 10:58:03 +02:00
2025-12-07 06:12:40 +09:00
2024-03-26 18:20:28 -04:00
2026-04-11 14:16:09 +02:00
2022-12-31 13:31:58 +01:00
2024-08-03 08:49:05 +02:00
2022-10-03 17:34:32 -07:00
2025-04-10 14:33:42 +02:00
2024-04-03 15:19:25 +02:00
2023-08-30 16:11:08 +02:00
2022-10-11 17:42:58 -06:00
2024-10-17 15:21:10 +02:00
2025-04-25 10:43:41 +02:00
2024-06-12 11:03:04 +02:00
2024-05-02 16:29:29 +02:00
2024-12-14 19:54:37 +01:00
2024-12-14 19:54:06 +01:00
2025-04-25 10:43:55 +02:00
2023-08-11 12:08:10 +02:00
2024-03-26 18:20:33 -04:00
2023-08-03 10:24:19 +02:00
2023-10-25 12:03:12 +02:00
2022-10-11 17:42:55 -06:00
2022-10-12 18:51:50 -07:00
2024-06-12 11:03:29 +02:00
2024-01-20 11:50:09 +01:00
2022-10-11 17:42:58 -06:00
2022-10-11 17:42:55 -06:00
2023-11-02 09:35:24 +01:00
2023-10-15 18:32:41 +02:00
2022-10-11 17:42:58 -06:00
2025-07-10 15:59:48 +02:00
2022-10-26 13:39:09 +01:00
2023-09-19 12:28:05 +02:00
2025-05-02 07:47:08 +02:00
2022-10-11 17:42:58 -06:00
2024-10-17 15:21:26 +02:00
2022-10-11 17:42:55 -06:00
2025-10-19 16:23:22 +02:00
2023-07-19 16:21:13 +02:00
2023-01-24 07:24:41 +01:00
2023-02-25 11:25:41 +01:00
2022-10-11 17:42:58 -06:00
2026-01-11 15:18:25 +01:00
2024-10-17 15:21:26 +02:00