TencentOS-kernel/kernel/bpf
KP Singh 43126f5f12 bpf: Introduce BPF_PROG_TYPE_LSM
[upstream commit fc611f47f2188ade2b48ff6902d5cce8baac0c58]

Introduce types and configs for bpf programs that can be attached to
LSM hooks. The programs can be enabled by the config option
CONFIG_BPF_LSM.

Signed-off-by: KP Singh <kpsingh@google.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Brendan Jackman <jackmanb@google.com>
Reviewed-by: Florent Revest <revest@google.com>
Reviewed-by: Thomas Garnier <thgarnie@google.com>
Acked-by: Yonghong Song <yhs@fb.com>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Acked-by: James Morris <jamorris@linux.microsoft.com>
Link: https://lore.kernel.org/bpf/20200329004356.27286-2-kpsingh@chromium.org
2022-07-21 11:32:34 +08:00
..
Makefile bpf: Introduce BPF_PROG_TYPE_LSM 2022-07-21 11:32:34 +08:00
arraymap.c bpf: Simplify __bpf_arch_text_poke poke type handling 2022-07-21 11:32:32 +08:00
bpf_lru_list.c bpf_lru_list: Read double-checked variable once without lock 2021-04-12 12:52:15 +08:00
bpf_lru_list.h Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
bpf_lsm.c bpf: Introduce BPF_PROG_TYPE_LSM 2022-07-21 11:32:34 +08:00
bpf_struct_ops.c bpf: Refactor trampoline update code 2022-07-21 11:32:34 +08:00
bpf_struct_ops_types.h bpf: tcp: Support tcp_congestion_ops in bpf 2022-07-21 11:32:32 +08:00
btf.c bpf: Attachment verification for BPF_MODIFY_RETURN 2022-07-21 11:32:34 +08:00
cgroup.c Revert "bpf/cgroup: Replace rcu_swap_protected() with rcu_replace_pointer()" 2022-07-21 11:32:30 +08:00
core.c bpf: Add poke dependency tracking for prog array maps 2022-07-21 11:32:32 +08:00
cpumap.c cpumap: Avoid warning when CONFIG_DEBUG_PER_CPU_MAPS is enabled 2021-03-16 16:27:10 +08:00
devmap.c devmap: Use bpf_map_area_alloc() for allocating hash buckets 2021-03-16 16:30:57 +08:00
disasm.c bpf: Introduce BPF nospec instruction for mitigating Spectre v4 2022-07-21 11:32:29 +08:00
disasm.h Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
dispatcher.c bpf: Introduce BPF dispatcher 2022-07-21 11:32:32 +08:00
hashtab.c bpf: Factor out hashtab bucket lock operations 2022-07-21 11:32:34 +08:00
helpers.c bpf: Fix helper bpf_map_peek_elem_proto pointing to wrong callback 2021-03-16 16:44:00 +08:00
inode.c bpf: Convert bpf_prog refcnt to atomic64_t 2021-03-16 16:43:58 +08:00
local_storage.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
lpm_trie.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
map_in_map.c bpf: Move owner type, jited info into array auxiliary data 2022-07-21 11:32:32 +08:00
map_in_map.h Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
offload.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
percpu_freelist.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
percpu_freelist.h Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
queue_stack_maps.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
reuseport_array.c net: Generate reuseport group ID on group creation 2022-07-21 11:32:33 +08:00
stackmap.c bpf: Check for integer overflow when using roundup_pow_of_two() 2021-04-12 12:52:03 +08:00
syscall.c bpf: Introduce BPF_MODIFY_RETURN 2022-07-21 11:32:34 +08:00
sysfs_btf.c bpf: Fix sysfs export of empty BTF section 2021-03-16 16:37:55 +08:00
tnum.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
trampoline.c bpf: Introduce BPF_MODIFY_RETURN 2022-07-21 11:32:34 +08:00
verifier.c bpf: Attachment verification for BPF_MODIFY_RETURN 2022-07-21 11:32:34 +08:00
xskmap.c bpf: Implement map_gen_lookup() callback for XSKMAP 2022-07-21 11:32:30 +08:00