Always allow a r/w opening of /dev/null though the namei check. This
authorderaadt <deraadt@openbsd.org>
Fri, 16 Oct 2015 14:20:48 +0000 (14:20 +0000)
committerderaadt <deraadt@openbsd.org>
Fri, 16 Oct 2015 14:20:48 +0000 (14:20 +0000)
commit1cd6c297dd5cc6b16b47ff9e1259bd2eb15db21b
treeacbb42025b6d74fcedebec7c76864a1e9fc59002
parenta3191c0b607d8ec655c44fe3cb76ccc2f126a9d6
Always allow a r/w opening of /dev/null though the namei check.  This
pattern is common, especially because of daemon(3) usage.  Will probably
help some daemons move their pledge() calls further upwards.
ok doug,
sys/kern/kern_pledge.c