diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-10-03 03:10:39 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-10-03 03:10:39 +0000 |
commit | 378b8f4accd3842cf049cf81ad2df8a2e34908e1 (patch) | |
tree | 8ff5d00b179508e0d682f299fd9c0adca10fddd0 /bin/md5 | |
parent | 8ccd69364cfe132f094b148d3289882ce814b26e (diff) |
So you'd love me to say sleep() can be tighter than tame "stdio". OK,
there is that pesky usage message... We could tame "something" in the
non-usage codepath.. but pop quiz, anyone know what happens after main
returns or if exit(3) is called? atexit completion.. our atexit is
very paranoid with structure management and uses mprotect. So current
minimum a normal program needs is tame "malloc".
tame "stdio" done before the usage codepath splits is just as good;
tame placement before getopt provides a strong hint about program
behaviour.
I am still hoping someone comes up with a nice solution for atexit,
or a nice tame subset between "" (pure computation) and "malloc".
Ideas have been floated to expose "self", but it lacks mprotect also,
and should continue to lack it (see the ssh tame sandbox).
Diffstat (limited to 'bin/md5')
0 files changed, 0 insertions, 0 deletions