Files
kernel_realme_nemo/include/uapi/linux
Toke Høiland-Jørgensen c8bcea4c5d 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>
2024-03-23 23:45:31 +05:30
..
2017-08-31 17:32:38 -04:00
2017-12-05 11:26:34 +01:00
2024-03-23 23:45:30 +05:30
2021-12-25 18:03:37 +05:30
2023-11-08 11:21:06 +01:00
2022-02-04 15:28:08 +05:30
2021-04-16 11:57:51 +02:00
2021-12-25 18:03:37 +05:30
2024-03-13 19:48:50 +05:30
2020-10-29 09:07:14 +01:00
2018-02-16 20:22:54 +01:00
2019-08-12 13:29:46 -04:00
2020-01-09 14:58:35 -08:00
2023-09-23 10:46:58 +02:00
2020-04-09 10:02:58 +08:00
2021-12-25 18:03:37 +05:30
2022-03-11 10:06:50 +01:00