From 39e8cee03660c7c3e71864596c4ff32651becf1c Mon Sep 17 00:00:00 2001 From: deraadt Date: Thu, 15 Oct 2015 04:58:54 +0000 Subject: [PATCH] FIOCLEX & FIONCLEX should be in base ioctl set --- sys/kern/kern_pledge.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/kern/kern_pledge.c b/sys/kern/kern_pledge.c index 1b3049a7d2e..a758a9670b4 100644 --- a/sys/kern/kern_pledge.c +++ b/sys/kern/kern_pledge.c @@ -1,4 +1,4 @@ -/* $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 @@ -1029,6 +1029,8 @@ pledge_ioctl_check(struct proc *p, long com, void *v) switch (com) { case FIONREAD: case FIONBIO: + case FIOCLEX: + case FIONCLEX: return (0); } @@ -1042,8 +1044,6 @@ pledge_ioctl_check(struct proc *p, long com, void *v) */ if ((p->p_p->ps_pledge & PLEDGE_IOCTL)) { switch (com) { - case FIOCLEX: - case FIONCLEX: case FIOASYNC: case FIOSETOWN: case FIOGETOWN: -- 2.20.1