diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2016-08-08 22:05:27 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2016-08-08 22:05:27 +0000 |
commit | a1a0cc4825570dd02b2ebae1476f0113978d647e (patch) | |
tree | 684832bb56d3a56bef65554621e4dfe7d9355e44 /sbin/fdisk | |
parent | cad4d8a2aaa04165e4354ba73bd1ed482eab3167 (diff) |
Look for a PT_GNU_RELRO section and, if present, mprotect that range
instead of the [__got_start, __got_end) range.
Also, instead of mprotecting the [__plt_start, __plt_end) range,
just scan for sections which are both writable and executable and
mprotect them to read-only. (This part was stolen from kettenis@)
ok kettenis@
Diffstat (limited to 'sbin/fdisk')
0 files changed, 0 insertions, 0 deletions