summaryrefslogtreecommitdiff
path: root/regress/sys
diff options
context:
space:
mode:
authorSebastien Marie <semarie@cvs.openbsd.org>2015-10-26 07:44:44 +0000
committerSebastien Marie <semarie@cvs.openbsd.org>2015-10-26 07:44:44 +0000
commit1c56d0fc92b193e02579bba247ed6d9352ba6373 (patch)
tree4cc0822920749009920beff9a83002d61c8bb8c4 /regress/sys
parent67811fe277858108878da6c7a394901fab23d09f (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