aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests/tracing_struct.c
diff options
context:
space:
mode:
authorSean Young <[email protected]>2023-04-17 08:17:48 +0000
committerAlexei Starovoitov <[email protected]>2023-04-17 20:21:14 +0000
commit69a8c792cd9518071dc801bb110e0f2210d9f958 (patch)
treef04cb8fe57bd846df3af538df0438adb36b02464 /tools/testing/selftests/bpf/prog_tests/tracing_struct.c
parentbpf: Set skb redirect and from_ingress info in __bpf_tx_skb (diff)
downloadkernel-69a8c792cd9518071dc801bb110e0f2210d9f958.tar.gz
kernel-69a8c792cd9518071dc801bb110e0f2210d9f958.zip
bpf: lirc program type should not require SYS_CAP_ADMIN
Make it possible to load lirc program type with just CAP_BPF. There is nothing exceptional about lirc programs that means they require SYS_CAP_ADMIN. In order to attach or detach a lirc program type you need permission to open /dev/lirc0; if you have permission to do that, you can alter all sorts of lirc receiving options. Changing the IR protocol decoder is no different. Right now on a typical distribution /dev/lirc devices are only read/write by root. Ideally we would make them group read/write like other devices so that local users can use them without becoming root. Signed-off-by: Sean Young <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/tracing_struct.c')
0 files changed, 0 insertions, 0 deletions