-/* $OpenBSD: kern_pledge.c,v 1.27 2015/10/14 23:15:37 sthen Exp $ */
+/* $OpenBSD: kern_pledge.c,v 1.28 2015/10/15 04:58:54 deraadt Exp $ */
/*
* Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org>
switch (com) {
case FIONREAD:
case FIONBIO:
+ case FIOCLEX:
+ case FIONCLEX:
return (0);
}
*/
if ((p->p_p->ps_pledge & PLEDGE_IOCTL)) {
switch (com) {
- case FIOCLEX:
- case FIONCLEX:
case FIOASYNC:
case FIOSETOWN:
case FIOGETOWN: