Add pledge(2) to some binutils that handle untrusted data. Most can do with
authorpascal <pascal@openbsd.org>
Thu, 22 Oct 2015 14:53:00 +0000 (14:53 +0000)
committerpascal <pascal@openbsd.org>
Thu, 22 Oct 2015 14:53:00 +0000 (14:53 +0000)
commitc1f838d9e76e0a1f34f7e2784d8627328f33dd46
tree23160c6a12984b34b3e854f8170c05035e25d506
parent986aa51e16c9604760ccfe33242d452a242aee43
Add pledge(2) to some binutils that handle untrusted data.  Most can do with
"stdio rpath", while objdump(1) also needs "tmppath" for objdump -i.

ok deraadt@, comments sthen@ kettenis@
gnu/usr.bin/binutils-2.17/binutils/addr2line.c
gnu/usr.bin/binutils-2.17/binutils/objdump.c
gnu/usr.bin/binutils-2.17/binutils/readelf.c
gnu/usr.bin/binutils-2.17/binutils/strings.c