delete pledge_bind_check() function and remove pledge_bind_check() call from sys_bind().
authorsemarie <semarie@openbsd.org>
Fri, 16 Oct 2015 14:04:11 +0000 (14:04 +0000)
committersemarie <semarie@openbsd.org>
Fri, 16 Oct 2015 14:04:11 +0000 (14:04 +0000)
commiteca9e229172cad541818effda99d1c382e9ce9a4
tree8ba79a42bde58f5da6e1238454c775d381fda07d
parent195eedf69e5d695177b93d14ed32374b43cd681c
delete pledge_bind_check() function and remove pledge_bind_check() call from sys_bind().

bind(2) still require PLEDGE_INET or PLEDGE_UNIX in order to be called, due to
SYS_bind entry in pledge_syscalls array. The diff restores also the ability for
PLEDGE_UNIX to call bind(2) (pledge_bind_check function missed that).

problem spotted by doug@
OK deraadt@
sys/kern/kern_pledge.c
sys/kern/uipc_syscalls.c
sys/sys/pledge.h