summaryrefslogtreecommitdiff
path: root/src/usr.bin
diff options
context:
space:
mode:
authordjm <>2008-12-29 22:25:50 +0000
committerdjm <>2008-12-29 22:25:50 +0000
commitc2f9a0271169166b38060ef5e36ef203765e45dd (patch)
tree98faf6e6f7899c0929ab660551964d3931213b49 /src/usr.bin
parent83483f908c4b6c5c812c6388c7929c6f10a8ef28 (diff)
downloadopenbsd-c2f9a0271169166b38060ef5e36ef203765e45dd.tar.gz
openbsd-c2f9a0271169166b38060ef5e36ef203765e45dd.tar.bz2
openbsd-c2f9a0271169166b38060ef5e36ef203765e45dd.zip
extra paranoia for malloc(3):
Move all runtime options into a structure that is made read-only (via mprotect) after initialisation to protect against attacks that overwrite options to turn off malloc protections (e.g. use-after-free) Allocate the main bookkeeping data (struct dir_info) using mmap(), thereby giving it an unpredictable address. Place a PROT_NONE guard page on either side to further frustrate attacks on it. Add a new 'L' option that maps struct dir_info PROT_NONE except when in the allocator code itself. Makes attacks on it basically impossible. feedback tedu deraadt otto canacar ok otto
Diffstat (limited to 'src/usr.bin')
0 files changed, 0 insertions, 0 deletions