1
0
Fork 0
remarkable-linux/drivers/block/paride
Kees Cook 853fe1bf75 cdrom: Make device operations read-only
Since function tables are a common target for attackers, it's best to keep
them in read-only memory. As such, this makes the CDROM device ops tables
const. This drops additionally n_minors, since it isn't used meaningfully,
and sets the only user of cdrom_dummy_generic_packet explicitly so the
variables can all be const.

Inspired by similar changes in grsecurity/PaX.

Signed-off-by: Kees Cook <keescook@chromium.org>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Jens Axboe <axboe@fb.com>
2017-02-14 08:29:56 -07:00
..
Kconfig drivers/block/paride: remove depends on CONFIG_EXPERIMENTAL 2013-01-21 14:52:42 -08:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Transition-notes Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
aten.c [PATCH] paride_register(): shuffle return values 2006-12-07 08:39:33 -08:00
bpck.c [PATCH] paride_register(): shuffle return values 2006-12-07 08:39:33 -08:00
bpck6.c module_param: make bool parameters really bool (drivers & misc) 2012-01-13 09:32:20 +10:30
comm.c [PATCH] paride_register(): shuffle return values 2006-12-07 08:39:33 -08:00
dstr.c [PATCH] paride_register(): shuffle return values 2006-12-07 08:39:33 -08:00
epat.c [PATCH] paride_register(): shuffle return values 2006-12-07 08:39:33 -08:00
epia.c [PATCH] paride_register(): shuffle return values 2006-12-07 08:39:33 -08:00
fit2.c [PATCH] paride_register(): shuffle return values 2006-12-07 08:39:33 -08:00
fit3.c [PATCH] paride_register(): shuffle return values 2006-12-07 08:39:33 -08:00
friq.c [PATCH] paride_register(): shuffle return values 2006-12-07 08:39:33 -08:00
frpw.c [PATCH] paride_register(): shuffle return values 2006-12-07 08:39:33 -08:00
kbic.c [PATCH] paride_register(): shuffle return values 2006-12-07 08:39:33 -08:00
ktti.c [PATCH] paride_register(): shuffle return values 2006-12-07 08:39:33 -08:00
mkd Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
on20.c [PATCH] paride_register(): shuffle return values 2006-12-07 08:39:33 -08:00
on26.c [PATCH] paride_register(): shuffle return values 2006-12-07 08:39:33 -08:00
paride.c paride: use new parport device model 2015-06-01 07:10:23 +09:00
paride.h paride: use new parport device model 2015-06-01 07:10:23 +09:00
pcd.c cdrom: Make device operations read-only 2017-02-14 08:29:56 -07:00
pd.c Replace <asm/uaccess.h> with <linux/uaccess.h> globally 2016-12-24 11:46:01 -08:00
pf.c Replace <asm/uaccess.h> with <linux/uaccess.h> globally 2016-12-24 11:46:01 -08:00
pg.c Replace <asm/uaccess.h> with <linux/uaccess.h> globally 2016-12-24 11:46:01 -08:00
ppc6lnx.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
pseudo.h WorkStruct: make allyesconfig 2006-11-22 14:57:56 +00:00
pt.c Replace <asm/uaccess.h> with <linux/uaccess.h> globally 2016-12-24 11:46:01 -08:00