diff options
author | Kees Cook <[email protected]> | 2017-02-13 16:25:26 -0800 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2017-02-14 08:29:56 -0700 |
commit | 853fe1bf7554155376bb3b231112cdff9ff79177 (patch) | |
tree | 7d8b38a77574919d078443cecffcae9dd380a692 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | d1a987f35ebf859a771ac530e95a89933b6fcce8 (diff) |
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 <[email protected]>
Acked-by: David S. Miller <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions