Message ID | 4021398e884433b1fef57a4d28361bb9fcf1bd05.1662568410.git.dxu@dxuuu.xyz (mailing list archive) |
---|---|
State | Accepted |
Commit | d4f7bdb2ed7bf320a8772258fdc257655d225afb |
Delegated to: | BPF |
Headers | show |
Series | Support direct writes to nf_conn:mark | expand |
diff --git a/include/linux/bpf.h b/include/linux/bpf.h index 4d32f125f4af..cee2b008f2b5 100644 --- a/include/linux/bpf.h +++ b/include/linux/bpf.h @@ -2169,6 +2169,15 @@ static inline struct bpf_prog *bpf_prog_by_id(u32 id) return ERR_PTR(-ENOTSUPP); } +static inline int btf_struct_access(struct bpf_verifier_log *log, + const struct btf *btf, + const struct btf_type *t, int off, int size, + enum bpf_access_type atype, + u32 *next_btf_id, enum bpf_type_flag *flag) +{ + return -EACCES; +} + static inline const struct bpf_func_proto * bpf_base_func_proto(enum bpf_func_id func_id) {