bpf: Introduce BPF_PROG_TYPE_LSM
[linux-2.6-microblaze.git] / kernel / bpf / bpf_lsm.c
1 // SPDX-License-Identifier: GPL-2.0
2
3 /*
4  * Copyright (C) 2020 Google LLC.
5  */
6
7 #include <linux/filter.h>
8 #include <linux/bpf.h>
9 #include <linux/btf.h>
10
11 const struct bpf_prog_ops lsm_prog_ops = {
12 };
13
14 const struct bpf_verifier_ops lsm_verifier_ops = {
15         .get_func_proto = bpf_tracing_func_proto,
16         .is_valid_access = btf_ctx_access,
17 };