1
0
mirror of https://github.com/openbsd/src.git synced 2026-06-18 15:23:33 +02:00

When pledged, if a process receives a bad descriptor the receiver should

not be killed.  The EPERM approach used for other conditions is good enough.
Report from Henry Ford
this will be errata 7.8/022_recvfd.patch and 7.7/028_recvfd.patch
This commit is contained in:
deraadt
2026-03-13 05:46:32 +00:00
parent 7446788655
commit 7ed008f956
+2 -2
View File
@@ -1,4 +1,4 @@
/* $OpenBSD: kern_pledge.c,v 1.346 2026/03/12 15:00:58 deraadt Exp $ */
/* $OpenBSD: kern_pledge.c,v 1.347 2026/03/13 05:46:32 deraadt Exp $ */
/*
* Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org>
@@ -750,7 +750,7 @@ pledge_recvfd(struct proc *p, struct file *fp)
if (vp->v_type != VDIR)
return (0);
}
return pledge_fail(p, EINVAL, PLEDGE_RECVFD);
return (EPERM);
}
/*