diff options
author | Benjamin Tissoires <bentiss@kernel.org> | 2024-06-26 16:46:27 +0300 |
---|---|---|
committer | Benjamin Tissoires <bentiss@kernel.org> | 2024-06-27 12:00:12 +0300 |
commit | 015a4a2a439b285943da471d38b2721bbe4d8b39 (patch) | |
tree | a3d840ad28df57e4e9bab80e8b57ba6289863fb0 /drivers/pmdomain | |
parent | 75839101ce52e319cb2154a027d14f1f0aa3be09 (diff) | |
download | linux-015a4a2a439b285943da471d38b2721bbe4d8b39.tar.xz |
selftests/hid: add tests for hid_hw_raw_request HID-BPF hooks
We add 3 new tests:
- first, we make sure we can prevent the raw_request to happen
- second, we make sure that we can detect that a given hidraw client
was actually doing the request, and for that client only, call ourself
hid_bpf_hw_request(), returning a custom value
- last, we ensure that we can not loop between hooks for
hid_hw_raw_request() and manual calls to hid_bpf_hw_request() from that
hook
Link: https://patch.msgid.link/20240626-hid_hw_req_bpf-v2-6-cfd60fb6c79f@kernel.org
Acked-by: Jiri Kosina <jkosina@suse.com>
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
Diffstat (limited to 'drivers/pmdomain')
0 files changed, 0 insertions, 0 deletions