Files
kernel_xiaomi_raphael/include/uapi/linux
Toke Høiland-Jørgensen 1deeab02ae BACKPORT: devmap: Allow map lookups from eBPF
We don't currently allow lookups into a devmap from eBPF, because the map
lookup returns a pointer directly to the dev->ifindex, which shouldn't be
modifiable from eBPF.

However, being able to do lookups in devmaps is useful to know (e.g.)
whether forwarding to a specific interface is enabled. Currently, programs
work around this by keeping a shadow map of another type which indicates
whether a map index is valid.

Since we now have a flag to make maps read-only from the eBPF side, we can
simply lift the lookup restriction if we make sure this flag is always set.

Change-Id: I42b1430605c6837710fd903a0c8abf2c7dc13f16
Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
Acked-by: Jonathan Lemon <jonathan.lemon@gmail.com>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
2024-03-26 18:34:01 +02:00
..
2018-06-27 11:32:06 +05:30
2021-12-10 14:04:46 +00:00
2024-03-26 18:34:00 +02:00
2021-05-24 16:47:29 +00:00
2023-11-08 11:21:06 +01:00
2018-11-19 11:16:57 +08:00
2020-12-22 15:09:24 +08:00
2020-05-15 15:50:12 +05:30
2020-12-22 03:42:18 -08:00
2020-12-22 11:47:35 +05:30
2021-04-16 11:57:51 +02:00
2020-07-16 13:13:14 +08:00
2020-10-29 09:07:14 +01:00
2018-02-16 20:22:54 +01:00
2021-06-29 13:56:26 +05:30
2018-03-08 14:36:36 -08:00
2018-07-23 20:26:32 -07:00
2021-08-17 14:19:08 +00:00
2018-03-12 02:39:53 -07:00
2020-01-09 14:58:35 -08:00
2023-09-23 10:46:58 +02:00
2022-03-11 10:06:50 +01:00