Antony Antony
851b00b478
xfrm: state and policy should fail if XFRMA_IF_ID 0
...
[ Upstream commit 68ac0f3810e76a853b5f7b90601a05c3048b8b54 ]
xfrm ineterface does not allow xfrm if_id = 0
fail to create or update xfrm state and policy.
With this commit:
ip xfrm policy add src 192.0.2.1 dst 192.0.2.2 dir out if_id 0
RTNETLINK answers: Invalid argument
ip xfrm state add src 192.0.2.1 dst 192.0.2.2 proto esp spi 1 \
reqid 1 mode tunnel aead 'rfc4106(gcm(aes))' \
0x1111111111111111111111111111111111111111 96 if_id 0
RTNETLINK answers: Invalid argument
v1->v2 change:
- add Fixes: tag
Fixes: 9f8550e4bd9d ("xfrm: fix disable_xfrm sysctl when used on xfrm interfaces")
Signed-off-by: Antony Antony <antony.antony@secunet.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-01-27 11:03:40 +01:00
..
2021-07-22 16:19:03 +02:00
2021-11-18 19:17:16 +01:00
2021-08-13 16:30:35 -07:00
2021-12-01 09:04:53 +01:00
2021-07-23 14:20:25 +01:00
2021-06-10 14:08:09 -07:00
2021-12-29 12:29:02 +01:00
2022-01-11 15:35:14 +01:00
2022-01-27 11:03:31 +01:00
2021-09-28 09:29:28 +02:00
2021-06-25 13:13:50 +02:00
2022-01-27 11:03:22 +01:00
2021-09-14 12:51:15 +01:00
2022-01-16 09:12:44 +01:00
2021-06-30 15:51:09 -07:00
2022-01-11 15:35:14 +01:00
2021-06-01 17:01:33 -07:00
2021-11-18 19:16:33 +01:00
2021-08-05 13:27:50 +01:00
2021-11-18 19:17:06 +01:00
2021-08-03 13:05:26 +01:00
2021-12-14 10:57:09 +01:00
2021-06-16 12:13:01 -07:00
2021-08-13 06:41:22 -07:00
2022-01-11 15:35:18 +01:00
2022-01-11 15:35:18 +01:00
2021-08-09 10:13:32 +01:00
2021-06-29 11:28:21 -07:00
2021-05-26 07:03:39 +02:00
2021-09-09 11:00:20 +01:00
2021-06-08 16:31:25 -07:00
2021-08-05 13:27:50 +01:00
2022-01-11 15:35:13 +01:00
2021-09-07 14:06:08 +01:00
2021-12-08 09:04:53 +01:00
2021-12-08 09:04:47 +01:00
2021-12-22 09:32:43 +01:00
2022-01-05 12:42:37 +01:00
2021-12-29 12:28:40 +01:00
2021-08-30 12:23:18 +01:00
2021-12-17 10:30:15 +01:00
2022-01-11 15:35:13 +01:00
2022-01-27 11:02:48 +01:00
2021-08-19 18:09:18 -07:00
2021-12-22 09:32:44 +01:00
2022-01-11 15:35:16 +01:00
2021-09-02 11:37:02 +01:00
2021-12-22 09:32:42 +01:00
2021-12-08 09:04:49 +01:00
2022-01-11 15:35:14 +01:00
2022-01-11 15:35:14 +01:00
2022-01-05 12:42:36 +01:00
2021-11-18 19:17:11 +01:00
2021-11-18 19:17:20 +01:00
2021-08-04 12:35:07 +01:00
2022-01-11 15:35:16 +01:00
2021-12-08 09:04:41 +01:00
2021-12-01 09:04:49 +01:00
2021-12-22 09:32:39 +01:00
2021-12-22 09:32:42 +01:00
2021-06-10 14:08:09 -07:00
2021-12-22 09:32:51 +01:00
2022-01-27 11:03:40 +01:00
2021-06-03 15:13:56 -07:00
2021-06-11 12:55:28 -07:00
2021-07-29 15:06:49 +01:00
2021-07-29 15:06:49 +01:00
2021-08-31 16:43:06 -07:00