diff options
author | Sebastien Marie <semarie@cvs.openbsd.org> | 2015-10-26 07:44:44 +0000 |
---|---|---|
committer | Sebastien Marie <semarie@cvs.openbsd.org> | 2015-10-26 07:44:44 +0000 |
commit | 1c56d0fc92b193e02579bba247ed6d9352ba6373 (patch) | |
tree | 4cc0822920749009920beff9a83002d61c8bb8c4 /regress/sys | |
parent | 67811fe277858108878da6c7a394901fab23d09f (diff) |
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 'regress/sys')
0 files changed, 0 insertions, 0 deletions