linux-hardened/drivers/staging/speakup
David Howells dbf05cb05f Annotate hardware config module parameters in drivers/staging/speakup/
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/staging/speakup/.

Suggested-by: Alan Cox <gnomes@lxorguk.ukuu.org.uk>
Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
cc: speakup@linux-speakup.org
cc: devel@driverdev.osuosl.org
2017-04-20 12:02:32 +01:00
..
buffers.c
DefaultKeyAssignments
devsynth.c Staging: speakup: Remove space after cast 2016-08-15 19:14:53 +02:00
fakekey.c staging: rtl8192e: Aligning the * on each line in block comments 2017-02-12 13:46:57 +01:00
i18n.c staging: rtl8192e: Aligning the * on each line in block comments 2017-02-12 13:46:57 +01:00
i18n.h
Kconfig
keyhelp.c
kobjects.c Staging: speakup: style fix, octal file permissions 2017-01-10 17:37:25 +01:00
main.c staging: rtl8192e: Aligning the * on each line in block comments 2017-02-12 13:46:57 +01:00
Makefile
selection.c Staging: speakup: Remove unnecessary space after cast 2016-11-07 10:50:35 +01:00
serialio.c Staging: speakup: Remove unnecessary space after cast 2016-11-07 10:50:35 +01:00
serialio.h
speakup.h Staging: speakup: speakup.h - remove unused define 2017-02-09 13:10:20 +01:00
speakup_acnt.h
speakup_acntpc.c Annotate hardware config module parameters in drivers/staging/speakup/ 2017-04-20 12:02:32 +01:00
speakup_acntsa.c staging: rtl8192e: Aligning the * on each line in block comments 2017-02-12 13:46:57 +01:00
speakup_apollo.c staging: rtl8192e: Aligning the * on each line in block comments 2017-02-12 13:46:57 +01:00
speakup_audptr.c Staging: speakup - syle fix permissions to octal 2017-01-31 09:30:58 +01:00
speakup_bns.c Staging: speakup: speakup_bns: fix comment 2017-01-31 09:30:58 +01:00
speakup_decext.c staging: rtl8192e: Aligning the * on each line in block comments 2017-02-12 13:46:57 +01:00
speakup_decpc.c staging: rtl8192e: Aligning the * on each line in block comments 2017-02-12 13:46:57 +01:00
speakup_dectlk.c Staging: speakup - syle fix permissions to octal 2017-01-31 09:30:58 +01:00
speakup_dtlk.c Annotate hardware config module parameters in drivers/staging/speakup/ 2017-04-20 12:02:32 +01:00
speakup_dtlk.h staging: rtl8192e: Aligning the * on each line in block comments 2017-02-12 13:46:57 +01:00
speakup_dummy.c Staging: speakup - syle fix permissions to octal 2017-01-31 09:30:58 +01:00
speakup_keypc.c Annotate hardware config module parameters in drivers/staging/speakup/ 2017-04-20 12:02:32 +01:00
speakup_ltlk.c staging: rtl8192e: Aligning the * on each line in block comments 2017-02-12 13:46:57 +01:00
speakup_soft.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
speakup_spkout.c Staging: speakup - syle fix permissions to octal 2017-01-31 09:30:58 +01:00
speakup_txprt.c Staging: speakup - syle fix permissions to octal 2017-01-31 09:30:58 +01:00
speakupmap.h
speakupmap.map
spk_priv.h Drivers: staging: speakup: spk_priv.h - style fix 2017-02-05 13:05:16 +01:00
spk_priv_keyinfo.h staging: speakup: spk_priv_keyinfo.h Space around operator 2016-11-23 10:05:39 +01:00
spk_types.h staging: speakup: spk_types.h Align parenthesis 2016-11-23 10:05:39 +01:00
spkguide.txt
synth.c staging: speakup: synth.c Align parenthesis 2016-11-21 11:05:30 +01:00
thread.c staging: speakup: thread.c align on parenthesis 2016-11-21 11:05:29 +01:00
TODO staging: speakup: TODO Correct email 2016-11-21 11:05:29 +01:00
varhandlers.c staging: speakup: varhandlers.c Align parenthesis 2016-11-21 11:05:29 +01:00