linux-stable/drivers/media/rc
Sean Young fdb5c4531c bpf: fix attach type BPF_LIRC_MODE2 dependency wrt CONFIG_CGROUP_BPF
If the kernel is compiled with CONFIG_CGROUP_BPF not enabled, it is not
possible to attach, detach or query IR BPF programs to /dev/lircN devices,
making them impossible to use. For embedded devices, it should be possible
to use IR decoding without cgroups or CONFIG_CGROUP_BPF enabled.

This change requires some refactoring, since bpf_prog_{attach,detach,query}
functions are now always compiled, but their code paths for cgroups need
moving out. Rather than a #ifdef CONFIG_CGROUP_BPF in kernel/bpf/syscall.c,
moving them to kernel/bpf/cgroup.c and kernel/bpf/sockmap.c does not
require #ifdefs since that is already conditionally compiled.

Fixes: f4364dcfc8 ("media: rc: introduce BPF_PROG_LIRC_MODE2")
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
2018-06-26 11:28:38 +02:00
..
img-ir media: img-ir: Drop METAG dependency 2018-03-05 16:34:25 +00:00
keymaps MAINTAINERS & files: Canonize the e-mails I use at files 2018-05-04 06:21:06 -04:00
ati_remote.c
bpf-lirc.c bpf: fix attach type BPF_LIRC_MODE2 dependency wrt CONFIG_CGROUP_BPF 2018-06-26 11:28:38 +02:00
ene_ir.c
ene_ir.h
fintek-cir.c
fintek-cir.h
gpio-ir-recv.c
gpio-ir-tx.c
igorplugusb.c
iguanair.c
imon.c media: imon: rename protocol from other to imon 2018-03-21 11:13:15 -04:00
imon_raw.c media: rc: new driver for early iMon device 2018-03-21 11:11:04 -04:00
ir-hix5hd2.c media: rc: ir-hix5hd2: fix error handling of clk_prepare_enable() 2018-02-14 13:35:05 -05:00
ir-imon-decoder.c media: rc: imon decoder: support the stick 2018-05-04 08:22:09 -04:00
ir-jvc-decoder.c media: rc: set timeout to smallest value required by enabled protocols 2018-04-20 09:14:31 -04:00
ir-mce_kbd-decoder.c media: rc: decoders do not need to check for transitions 2018-05-14 07:16:24 -04:00
ir-nec-decoder.c media: rc: set timeout to smallest value required by enabled protocols 2018-04-20 09:14:31 -04:00
ir-rc5-decoder.c media: rc: decoders do not need to check for transitions 2018-05-14 07:16:24 -04:00
ir-rc6-decoder.c media: rc: decoders do not need to check for transitions 2018-05-14 07:16:24 -04:00
ir-rx51.c ARM: OMAP2+: Drop unused pm-noop 2018-04-16 10:22:40 -07:00
ir-sanyo-decoder.c media: rc: set timeout to smallest value required by enabled protocols 2018-04-20 09:14:31 -04:00
ir-sharp-decoder.c media: rc: set timeout to smallest value required by enabled protocols 2018-04-20 09:14:31 -04:00
ir-sony-decoder.c media: rc: set timeout to smallest value required by enabled protocols 2018-04-20 09:14:31 -04:00
ir-spi.c media: rc: ir-spi: update Andi's e-mail 2018-04-20 09:23:28 -04:00
ir-xmp-decoder.c media: rc: set timeout to smallest value required by enabled protocols 2018-04-20 09:14:31 -04:00
ite-cir.c media: rc: ite-cir: lower timeout and extend allowed timeout range 2018-05-14 07:17:28 -04:00
ite-cir.h media: rc: ite-cir: lower timeout and extend allowed timeout range 2018-05-14 07:17:28 -04:00
Kconfig media updates for v4.18-rc1 2018-06-07 12:34:37 -07:00
lirc_dev.c media updates for v4.18-rc1 2018-06-07 12:34:37 -07:00
Makefile media: rc: introduce BPF_PROG_LIRC_MODE2 2018-05-30 12:38:40 +02:00
mceusb.c media: mceusb: add missing break 2018-05-14 07:12:33 -04:00
meson-ir.c media: rc: meson-ir: lower timeout and make configurable 2018-03-21 13:59:38 -04:00
mtk-cir.c media: rc: mtk-cir: use of_device_get_match_data() 2018-04-20 09:24:04 -04:00
nuvoton-cir.c media: rc: nuvoton: Keep device enabled during reg init 2018-05-28 17:39:49 -04:00
nuvoton-cir.h
pwm-ir-tx.c
rc-core-priv.h media updates for v4.18-rc1 2018-06-07 12:34:37 -07:00
rc-ir-raw.c media updates for v4.18-rc1 2018-06-07 12:34:37 -07:00
rc-loopback.c
rc-main.c media: rc: ensure input/lirc device can be opened after register 2018-05-28 17:40:33 -04:00
redrat3.c
serial_ir.c
sir_ir.c
st_rc.c media: st_rc: Don't stay on an IRQ handler forever 2018-04-17 05:50:05 -04:00
streamzap.c
sunxi-cir.c media: rc: update sunxi-ir driver to get base clock frequency from devicetree 2018-03-21 11:08:33 -04:00
tango-ir.c
ttusbir.c
winbond-cir.c media: rc: winbond: do not send reset and timeout raw events on startup 2018-05-14 07:17:06 -04:00
zx-irdec.c