linux/drivers/media/rc
David Howells 5a8fc6a3ce Annotate hardware config module parameters in drivers/media/
When the kernel is running in secure boot mode, we lock down the kernel to
prevent userspace from modifying the running kernel image.  Whilst this
includes prohibiting access to things like /dev/mem, it must also prevent
access by means of configuring driver modules in such a way as to cause a
device to access or modify the kernel image.

To this end, annotate module_param* statements that refer to hardware
configuration and indicate for future reference what type of parameter they
specify.  The parameter parser in the core sees this information and can
skip such parameters with an error message if the kernel is locked down.
The module initialisation then runs as normal, but just sees whatever the
default values for those parameters is.

Note that we do still need to do the module initialisation because some
drivers have viable defaults set in case parameters aren't specified and
some drivers support automatic configuration (e.g. PNP or PCI) in addition
to manually coded parameters.

This patch annotates drivers in drivers/media/.

Suggested-by: Alan Cox <gnomes@lxorguk.ukuu.org.uk>
Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
cc: mjpeg-users@lists.sourceforge.net
cc: linux-media@vger.kernel.org
2017-04-20 12:02:32 +01:00
..
img-ir [media] rc-main: assign driver type during allocation 2017-01-30 13:59:57 -02:00
keymaps [media] mce_kbd: add missing keys from UK layout 2017-02-03 14:23:37 -02:00
ati_remote.c [media] rc-main: assign driver type during allocation 2017-01-30 13:59:57 -02:00
ene_ir.c [media] rc-main: assign driver type during allocation 2017-01-30 13:59:57 -02:00
ene_ir.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
fintek-cir.c [media] rc-main: assign driver type during allocation 2017-01-30 13:59:57 -02:00
fintek-cir.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
gpio-ir-recv.c [media] rc-main: assign driver type during allocation 2017-01-30 13:59:57 -02:00
igorplugusb.c [media] rc-main: assign driver type during allocation 2017-01-30 13:59:57 -02:00
iguanair.c [media] rc-main: assign driver type during allocation 2017-01-30 13:59:57 -02:00
imon.c [media] staging: lirc_imon: port remaining usb ids to imon and remove 2017-01-30 14:34:57 -02:00
ir-hix5hd2.c [media] rc-main: assign driver type during allocation 2017-01-30 13:59:57 -02:00
ir-jvc-decoder.c [media] rc: ir-jvc-decoder: Add encode capability 2017-01-30 13:52:57 -02:00
ir-lirc-codec.c [media] lirc: LIRC_GET_MIN_TIMEOUT should be in range 2017-01-31 07:30:22 -02:00
ir-mce_kbd-decoder.c [media] mce_kbd: add missing keys from UK layout 2017-02-03 14:23:37 -02:00
ir-nec-decoder.c [media] rc: ir-nec-decoder: Add encode capability 2017-01-30 13:52:28 -02:00
ir-rc5-decoder.c [media] rc: ir-rc5-decoder: Add encode capability 2017-01-30 13:50:52 -02:00
ir-rc6-decoder.c [media] rc: ir-rc6-decoder: Add encode capability 2017-01-30 13:51:34 -02:00
ir-rx51.c [media] ir-rx51: port to rc-core 2017-01-30 14:25:04 -02:00
ir-sanyo-decoder.c [media] rc: ir-sanyo-decoder: Add encode capability 2017-01-30 13:53:28 -02:00
ir-sharp-decoder.c [media] rc: ir-sharp-decoder: Add encode capability 2017-01-30 13:53:57 -02:00
ir-sony-decoder.c [media] rc: ir-sony-decoder: Add encode capability 2017-01-30 13:54:54 -02:00
ir-spi.c [media] rc: add support for IR LEDs driven through SPI 2017-01-30 14:21:20 -02:00
ir-xmp-decoder.c [media] media: rc: move check whether a protocol is enabled to the core 2015-11-19 11:39:17 -02:00
ite-cir.c [media] rc-main: assign driver type during allocation 2017-01-30 13:59:57 -02:00
ite-cir.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
Kconfig [media] rc: add driver for IR remote receiver on MT7623 SoC 2017-01-31 07:25:30 -02:00
lirc_dev.c media fixes for v4.11-rc2 2017-03-09 15:50:56 -08:00
Makefile [media] rc: add driver for IR remote receiver on MT7623 SoC 2017-01-31 07:25:30 -02:00
mceusb.c [media] rc-main: assign driver type during allocation 2017-01-30 13:59:57 -02:00
meson-ir.c [media] rc-main: assign driver type during allocation 2017-01-30 13:59:57 -02:00
mtk-cir.c [media] rc: add driver for IR remote receiver on MT7623 SoC 2017-01-31 07:25:30 -02:00
nuvoton-cir.c [media] rc: nuvoton: fix deadlock in nvt_write_wakeup_codes 2017-03-03 07:06:57 -03:00
nuvoton-cir.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
rc-core-priv.h [media] rc: ir-sony-decoder: Add encode capability 2017-01-30 13:54:54 -02:00
rc-ir-raw.c [media] rc-ir-raw: do not generate any receiving thread for raw transmitters 2017-01-30 14:14:39 -02:00
rc-loopback.c [media] rc-main: assign driver type during allocation 2017-01-30 13:59:57 -02:00
rc-main.c [media] rc: protocol is not set on register for raw IR devices 2017-03-03 07:06:59 -03:00
redrat3.c [media] rc-main: assign driver type during allocation 2017-01-30 13:59:57 -02:00
serial_ir.c Annotate hardware config module parameters in drivers/media/ 2017-04-20 12:02:32 +01:00
st_rc.c [media] rc-main: assign driver type during allocation 2017-01-30 13:59:57 -02:00
streamzap.c [media] rc-main: assign driver type during allocation 2017-01-30 13:59:57 -02:00
sunxi-cir.c [media] rc-main: assign driver type during allocation 2017-01-30 13:59:57 -02:00
ttusbir.c [media] rc-main: assign driver type during allocation 2017-01-30 13:59:57 -02:00
winbond-cir.c [media] rc-main: assign driver type during allocation 2017-01-30 13:59:57 -02:00