linux/drivers/net/irda
David Howells 4f06e65272 Annotate hardware config module parameters in drivers/net/irda/
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/net/irda/.

Suggested-by: Alan Cox <gnomes@lxorguk.ukuu.org.uk>
Signed-off-by: David Howells <dhowells@redhat.com>
cc: Samuel Ortiz <samuel@sortiz.org>
cc: netdev@vger.kernel.org
2017-04-20 12:02:32 +01:00
..
act200l-sir.c
actisys-sir.c
ali-ircc.c Annotate hardware config module parameters in drivers/net/irda/ 2017-04-20 12:02:32 +01:00
ali-ircc.h
au1k_ir.c net: irda: au1k_ir: drop useless include 2017-02-14 14:51:03 -05:00
bfin_sir.c net: Remove usage of net_device last_rx member 2017-01-18 17:22:49 -05:00
bfin_sir.h net/irda: bfin_sir: remove duplicate defines 2016-01-21 10:45:45 -08:00
donauboe.c
donauboe.h
esi-sir.c
girbil-sir.c
irda-usb.c net: irda: set error code on failures 2016-12-05 14:53:08 -05:00
irda-usb.h
irtty-sir.c Replace <asm/uaccess.h> with <linux/uaccess.h> globally 2016-12-24 11:46:01 -08:00
irtty-sir.h
Kconfig irda: sh_irda: remove driver 2016-04-04 16:24:13 -04:00
kingsun-sir.c Replace <asm/uaccess.h> with <linux/uaccess.h> globally 2016-12-24 11:46:01 -08:00
ks959-sir.c Replace <asm/uaccess.h> with <linux/uaccess.h> globally 2016-12-24 11:46:01 -08:00
ksdazzle-sir.c Replace <asm/uaccess.h> with <linux/uaccess.h> globally 2016-12-24 11:46:01 -08:00
litelink-sir.c
ma600-sir.c
Makefile irda: sh_irda: remove driver 2016-04-04 16:24:13 -04:00
mcp2120-sir.c
mcs7780.c Replace <asm/uaccess.h> with <linux/uaccess.h> globally 2016-12-24 11:46:01 -08:00
mcs7780.h
nsc-ircc.c Annotate hardware config module parameters in drivers/net/irda/ 2017-04-20 12:02:32 +01:00
nsc-ircc.h
old_belkin-sir.c
pxaficp_ir.c sched/headers: Prepare for new header dependencies before moving code to <linux/sched/clock.h> 2017-03-02 08:42:27 +01:00
sa1100_ir.c
sh_sir.c net: Remove usage of net_device last_rx member 2017-01-18 17:22:49 -05:00
sir_dev.c
sir_dongle.c
sir-dev.h
smsc-ircc2.c Annotate hardware config module parameters in drivers/net/irda/ 2017-04-20 12:02:32 +01:00
smsc-ircc2.h
smsc-sio.h
stir4200.c sched/headers: Prepare to move signal wakeup & sigpending methods from <linux/sched.h> into <linux/sched/signal.h> 2017-03-02 08:42:32 +01:00
tekram-sir.c
toim3232-sir.c irda: toim3232-sir: delete some dead code 2016-01-08 13:25:33 -05:00
via-ircc.c treewide: replace dev->trans_start update with helper 2016-05-04 14:16:49 -04:00
via-ircc.h
vlsi_ir.c Replace <asm/uaccess.h> with <linux/uaccess.h> globally 2016-12-24 11:46:01 -08:00
vlsi_ir.h
w83977af_ir.c Annotate hardware config module parameters in drivers/net/irda/ 2017-04-20 12:02:32 +01:00
w83977af_ir.h
w83977af.h