diff options
author | Lorenz Bauer <lmb@cloudflare.com> | 2021-03-26 17:05:01 +0100 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2021-04-01 23:33:48 +0200 |
commit | d37300ed182131f1757895a62e556332857417e5 (patch) | |
tree | d1db694c30c7e6d5af91eb3a5b6897bb869cd924 /kernel/exec_domain.c | |
parent | bpf: link: Refuse non-O_RDWR flags in BPF_OBJ_GET (diff) | |
download | linux-d37300ed182131f1757895a62e556332857417e5.tar.xz linux-d37300ed182131f1757895a62e556332857417e5.zip |
bpf: program: Refuse non-O_RDWR flags in BPF_OBJ_GET
As for bpf_link, refuse creating a non-O_RDWR fd. Since program fds
currently don't allow modifications this is a precaution, not a
straight up bug fix.
Signed-off-by: Lorenz Bauer <lmb@cloudflare.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20210326160501.46234-2-lmb@cloudflare.com
Diffstat (limited to 'kernel/exec_domain.c')
0 files changed, 0 insertions, 0 deletions