diff options
| author | Benjamin Tissoires <bentiss@kernel.org> | 2024-06-26 15:46:23 +0200 |
|---|---|---|
| committer | Benjamin Tissoires <bentiss@kernel.org> | 2024-06-27 10:58:19 +0200 |
| commit | 67eccf151d76a9939ad8a50c6db5cb486b01df24 (patch) | |
| tree | 1a2b0d02140df64b820dded3ccc511d38d47ee1d /drivers/hid/bpf/hid_bpf_struct_ops.c | |
| parent | ebae0b2a6f4b3b949f30f076fbc65d3b0bb04785 (diff) | |
HID: add source argument to HID low level functions
This allows to know who actually sent what when we process the request
to the device.
This will be useful for a BPF firewall program to allow or not requests
coming from a dedicated hidraw node client.
Link: https://patch.msgid.link/20240626-hid_hw_req_bpf-v2-2-cfd60fb6c79f@kernel.org
Acked-by: Jiri Kosina <jkosina@suse.com>
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
Diffstat (limited to 'drivers/hid/bpf/hid_bpf_struct_ops.c')
| -rw-r--r-- | drivers/hid/bpf/hid_bpf_struct_ops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/bpf/hid_bpf_struct_ops.c b/drivers/hid/bpf/hid_bpf_struct_ops.c index 5f200557ff12..8063db1c8d62 100644 --- a/drivers/hid/bpf/hid_bpf_struct_ops.c +++ b/drivers/hid/bpf/hid_bpf_struct_ops.c @@ -257,7 +257,7 @@ static void hid_bpf_unreg(void *kdata) hid_put_device(hdev); } -static int __hid_bpf_device_event(struct hid_bpf_ctx *ctx, enum hid_report_type type) +static int __hid_bpf_device_event(struct hid_bpf_ctx *ctx, enum hid_report_type type, __u64 source) { return 0; } |
