linux/Documentation
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
..
2016-12-13 11:06:21 -08:00
2016-12-15 15:39:02 -08:00
2016-10-03 08:58:35 -07:00
2017-01-03 16:47:13 -07:00
2016-12-27 13:05:36 -07:00
2016-12-13 15:43:56 -08:00
2016-10-07 20:19:31 -07:00
2016-11-14 10:39:48 -08:00
2016-12-22 12:32:33 -08:00
2016-12-15 13:49:34 -08:00
2016-12-14 10:54:28 +01:00
2016-11-07 12:16:06 -06:00