Florian Westphal and Greg Kroah-Hartman
d134c7e260
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-18 10:31:05 +02:00
..
2026-03-04 07:20:10 -05:00
2026-04-18 10:31:03 +02:00
2023-10-25 11:54:19 +02:00
2026-02-06 16:40:11 +01:00
2025-12-07 06:08:16 +09:00
2026-04-18 10:30:59 +02:00
2024-05-02 16:23:34 +02:00
2024-05-02 16:23:43 +02:00
2022-03-23 09:13:27 +01:00
2022-04-13 21:00:57 +02:00
2022-04-20 09:23:31 +02:00
2022-09-28 11:10:31 +02:00
2023-06-14 11:09:31 +02:00
2023-08-30 16:23:14 +02:00
2024-09-04 13:17:46 +02:00
2025-08-28 16:22:43 +02:00
2024-04-13 12:58:25 +02:00
2025-06-27 11:04:24 +01:00
2025-12-07 06:08:13 +09:00
2024-03-26 18:21:53 -04:00
2021-12-08 09:03:22 +01:00
2022-02-16 12:54:26 +01:00
2024-06-16 13:32:36 +02:00
2025-03-13 12:47:32 +01:00
2022-04-27 13:53:48 +02:00
2021-12-08 09:03:21 +01:00
2025-03-13 12:47:29 +01:00
2025-03-13 12:47:29 +01:00
2024-10-17 15:08:35 +02:00
2024-11-08 16:21:57 +01:00
2022-10-26 13:25:55 +02:00
2023-12-20 15:44:27 +01:00
2024-06-16 13:32:06 +02:00
2025-02-01 18:22:19 +01:00
2022-01-27 10:54:33 +01:00
2024-06-16 13:32:06 +02:00
2022-08-21 15:15:51 +02:00
2022-02-01 17:25:44 +01:00
2022-05-09 09:05:04 +02:00
2023-10-25 11:54:23 +02:00
2025-10-29 14:01:19 +01:00
2023-05-30 12:57:49 +01:00
2023-09-19 12:20:26 +02:00
2022-01-27 10:54:33 +01:00
2021-12-01 09:19:05 +01:00
2026-03-04 07:19:47 -05:00
2024-09-04 13:17:40 +02:00
2025-03-13 12:47:14 +01:00
2024-12-19 18:06:10 +01:00
2024-02-23 08:41:56 +01:00
2021-11-18 14:04:27 +01:00
2023-09-19 12:20:09 +02:00
2024-11-08 16:22:01 +01:00
2023-10-25 11:54:14 +02:00
2023-01-14 10:16:51 +01:00
2023-01-14 10:16:18 +01:00
2023-06-21 15:45:40 +02:00
2025-05-02 07:41:08 +02:00
2026-04-18 10:31:05 +02:00
2025-10-02 13:35:46 +02:00
2021-12-01 09:19:03 +01:00
2025-12-07 06:08:06 +09:00
2022-11-10 18:14:26 +01:00
2022-07-21 21:20:10 +02:00
2022-06-09 10:21:09 +02:00
2023-06-14 11:09:42 +02:00
2025-10-29 14:01:21 +01:00
2025-06-04 14:36:56 +02:00
2023-05-17 11:47:47 +02:00
2022-05-30 09:33:23 +02:00
2022-10-30 09:41:19 +01:00
2026-01-19 13:11:27 +01:00
2021-11-18 14:04:27 +01:00
2022-12-02 17:39:57 +01:00
2025-06-27 11:04:09 +01:00
2025-12-07 06:08:20 +09:00
2026-04-18 10:31:02 +02:00
2025-08-28 16:22:37 +02:00
2023-04-26 11:27:41 +02:00
2023-08-11 11:57:50 +02:00
2024-07-05 09:12:48 +02:00
2026-01-19 13:11:24 +01:00
2023-05-17 11:47:50 +02:00