diff options
author | 2015-10-26 07:44:43 +0000 | |
---|---|---|
committer | 2015-10-26 07:44:43 +0000 | |
commit | 3775e79e5e0ae39f4d8782e1bfc872609b4a39af (patch) | |
tree | 0e61e34ee9ae8cedafe615ce2118ab903b9d0e50 /usr.bin/diff/xmalloc.h | |
parent | make pledge_check(), used for syscall check with pledge, returns an error and (diff) | |
download | wireguard-openbsd-3775e79e5e0ae39f4d8782e1bfc872609b4a39af.tar.xz wireguard-openbsd-3775e79e5e0ae39f4d8782e1bfc872609b4a39af.zip |
change some pledge_fail() error/code
- for PLEDGE_FATTR: the code is more accurate to be PLEDGE_FATTR, has
p->p_pledgenote could have multiple bits inside, and it is the lake of
PLEDGE_FATTR that make the check fail.
- for PLEDGE_RECVFD and PLEDGE_SENDFD, change the error to be EINVAL: we fail,
not because of lake of PLEDGE_RECVFD / PLEDGE_SENDFD permission, but because
the value passed is invalid in pledged program (for example trying to send a
VDIR).
"go ahead" deraadt@
Diffstat (limited to 'usr.bin/diff/xmalloc.h')
0 files changed, 0 insertions, 0 deletions