Files
kernel_google_wahoo/include/uapi/linux
Chenbo Feng 84354172b5 BACKPORT: bpf: Add file mode configuration into bpf maps
Introduce the map read/write flags to the eBPF syscalls that returns the
map fd. The flags is used to set up the file mode when construct a new
file descriptor for bpf maps. To not break the backward capability, the
f_flags is set to O_RDWR if the flag passed by syscall is 0. Otherwise
it should be O_RDONLY or O_WRONLY. When the userspace want to modify or
read the map content, it will check the file mode to see if it is
allowed to make the change.

Signed-off-by: Chenbo Feng <fengc@google.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>

Deleted the file mode configuration code in unsupported map type and
removed the file mode check in non-existing helper functions.
(cherry-pick from net-next: 6e71b04a82248ccf13a94b85cbc674a9fefe53f5)
Bug: 30950746

Change-Id: Icfad20f1abb77f91068d244fb0d87fa40824dd1b
Signed-off-by: Chatur27 <jasonbright2709@gmail.com>
2022-03-04 20:16:51 +01:00
..
2015-10-13 17:42:34 +02:00
2016-03-22 11:04:51 -07:00
2015-10-05 03:16:46 -07:00
2017-12-05 11:22:51 +01:00
2015-08-25 14:41:50 -05:00
2016-03-22 11:10:20 -07:00
2018-04-12 09:58:05 -07:00
2016-03-22 11:07:51 -07:00
2018-04-29 07:50:02 +02:00
2015-08-03 17:30:00 -07:00
2016-04-13 11:12:20 -07:00
2015-07-21 10:39:05 -07:00
2016-03-22 11:08:56 -07:00
2016-03-22 11:07:51 -07:00
2017-05-22 23:19:33 -07:00
2015-08-27 19:44:53 -04:00
2015-07-20 14:58:46 -04:00
2017-05-22 23:19:33 -07:00
2015-09-17 21:09:07 -07:00
2016-03-23 19:57:25 -07:00
2016-03-23 19:57:25 -07:00
2016-08-20 19:04:33 -07:00
2016-03-22 11:09:38 -07:00
2016-04-22 11:57:49 -07:00
2016-03-22 11:04:51 -07:00
2016-03-22 11:04:51 -07:00
2018-02-21 15:40:47 +00:00
2016-03-22 11:08:58 -07:00
2015-06-11 23:37:37 +02:00
2015-10-27 18:55:31 -07:00
2015-12-04 08:38:42 -07:00
2015-10-16 10:44:02 +02:00