Allow read/write access to /dev/tty when using "tty" pledge.
authordoug <doug@openbsd.org>
Sun, 18 Oct 2015 01:07:19 +0000 (01:07 +0000)
committerdoug <doug@openbsd.org>
Sun, 18 Oct 2015 01:07:19 +0000 (01:07 +0000)
commit3a4e2d708b650304a4703b197f2544cae82a1094
tree731a3f865353c887e850067c83c2114152e24faa
parent7ce8eabaa67c4198b2bad6bbd9a0439483e6c0b5
Allow read/write access to /dev/tty when using "tty" pledge.

Without this change, you need "rpath" and "wpath" to open /dev/tty.  Some
applications explicitly open /dev/tty, but deraadt@ found the most
common use is indirectly via readpassphrase().

tweak and ok deraadt@
pre-tweak ok millert@, semarie@
sys/kern/kern_pledge.c