WSL2-Linux-Kernel/Documentation/cdrom
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
..
00-INDEX remove the documentation for the legacy CDROM drivers 2007-07-16 14:39:04 +02:00
Makefile
cdrom-standard.tex cdrom: Make device operations read-only 2017-02-14 08:29:56 -07:00
ide-cd ide: doc: remove compilation options section from ide-cd documentation 2009-12-13 20:41:53 -08:00
packet-writing.txt doc: fix broken references 2011-09-27 18:08:04 +02:00