Pablo Neira Ayuso
022a8d0bc9
netfilter: nf_tables: validate NFPROTO_* family
...
[ Upstream commit d0009effa8862c20a13af4cb7475d9771b905693 ]
Several expressions explicitly refer to NF_INET_* hook definitions
from expr->ops->validate, however, family is not validated.
Bail out with EOPNOTSUPP in case they are used from unsupported
families.
Fixes: 0ca743a55991 ("netfilter: nf_tables: add compatibility layer for x_tables")
Fixes: a3c90f7a2323 ("netfilter: nf_tables: flow offload expression")
Fixes: 2fa841938c64 ("netfilter: nf_tables: introduce routing expression")
Fixes: 554ced0a6e29 ("netfilter: nf_tables: add support for native socket matching")
Fixes: ad49d86e07a4 ("netfilter: nf_tables: Add synproxy support")
Fixes: 4ed8eb6570a4 ("netfilter: nf_tables: Add native tproxy support")
Fixes: 6c47260250fc ("netfilter: nf_tables: add xfrm expression")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-02-23 08:54:29 +01:00
..
2024-01-05 15:13:34 +01:00
2022-12-31 13:14:42 +01:00
2024-02-23 08:54:27 +01:00
2023-12-20 15:17:37 +01:00
2023-12-20 15:17:35 +01:00
2022-06-22 14:22:01 +02:00
2023-12-20 15:17:35 +01:00
2024-01-25 14:52:48 -08:00
2022-12-31 13:14:11 +01:00
2023-11-28 16:56:24 +00:00
2023-03-17 08:48:54 +01:00
2024-01-15 18:51:14 +01:00
2023-10-19 23:05:36 +02:00
2024-02-23 08:54:27 +01:00
2023-08-11 15:13:53 +02:00
2023-11-28 16:56:22 +00:00
2024-01-25 14:52:46 -08:00
2023-07-23 13:47:30 +02:00
2024-01-25 14:52:54 -08:00
2023-11-20 11:08:28 +01:00
2022-11-03 23:59:14 +09:00
2024-01-05 15:13:29 +01:00
2024-02-23 08:54:28 +01:00
2024-02-23 08:54:28 +01:00
2023-03-22 13:31:28 +01:00
2023-09-19 12:23:04 +02:00
2023-08-26 14:23:32 +02:00
2023-10-10 21:59:07 +02:00
2022-04-27 14:38:53 +02:00
2024-02-23 08:54:27 +01:00
2024-01-05 15:13:28 +01:00
2022-12-14 11:37:25 +01:00
2023-10-25 11:58:59 +02:00
2023-02-22 12:57:09 +01:00
2024-01-25 14:52:53 -08:00
2024-01-25 14:52:36 -08:00
2024-02-23 08:54:29 +01:00
2024-01-25 14:52:33 -08:00
2024-02-23 08:54:28 +01:00
2023-09-19 12:22:35 +02:00
2024-01-15 18:51:09 +01:00
2023-05-24 17:36:51 +01:00
2023-02-22 12:57:09 +01:00
2023-12-13 18:36:43 +01:00
2022-01-11 15:35:16 +01:00
2023-12-13 18:36:37 +01:00
2024-01-25 14:52:30 -08:00
2024-02-23 08:54:27 +01:00
2024-01-05 15:13:34 +01:00
2024-01-05 15:13:29 +01:00
2023-05-17 11:50:17 +02:00
2024-01-25 14:52:40 -08:00
2023-10-10 21:59:08 +02:00
2024-02-23 08:54:27 +01:00
2021-11-18 19:17:11 +01:00
2023-11-28 16:56:29 +00:00
2023-11-28 16:56:23 +00:00
2024-01-15 18:51:24 +01:00
2023-11-28 16:56:24 +00:00
2024-01-25 14:52:38 -08:00
2024-01-25 14:52:27 -08:00
2023-02-09 11:26:40 +01:00
2023-09-19 12:22:58 +02:00
2023-10-25 11:58:56 +02:00
2023-06-21 15:59:15 +02:00
2023-06-21 15:59:15 +02:00
2024-01-15 18:51:16 +01:00