Skip to content

Commit bd07475

Browse files
author
Benjamin Tissoires
committed
bpf: allow bpf helpers to be used into HID-BPF struct_ops
Without this helpers like bpf_printk() or bpf_map_update() are not available, making anything but change of bytes impossible to do. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Benjamin Tissoires <[email protected]>
1 parent c94ae21 commit bd07475

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/hid/bpf/hid_bpf_struct_ops.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ static int hid_bpf_ops_btf_struct_access(struct bpf_verifier_log *log,
8989
}
9090

9191
static const struct bpf_verifier_ops hid_bpf_verifier_ops = {
92+
.get_func_proto = bpf_base_func_proto,
9293
.is_valid_access = hid_bpf_ops_is_valid_access,
9394
.btf_struct_access = hid_bpf_ops_btf_struct_access,
9495
};

0 commit comments

Comments
 (0)