From a061b5743560744314bee49cc4b5f28d4631871a Mon Sep 17 00:00:00 2001 From: deraadt Date: Thu, 15 Oct 2015 17:50:05 +0000 Subject: [PATCH] Exposing FIOASYNC in pledge "ioctl" is a mistake; remove it, cannot find safe uses of it --- sys/kern/kern_pledge.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/kern/kern_pledge.c b/sys/kern/kern_pledge.c index a758a9670b4..d9fcdd27724 100644 --- a/sys/kern/kern_pledge.c +++ b/sys/kern/kern_pledge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_pledge.c,v 1.28 2015/10/15 04:58:54 deraadt Exp $ */ +/* $OpenBSD: kern_pledge.c,v 1.29 2015/10/15 17:50:05 deraadt Exp $ */ /* * Copyright (c) 2015 Nicholas Marriott @@ -1044,7 +1044,6 @@ pledge_ioctl_check(struct proc *p, long com, void *v) */ if ((p->p_p->ps_pledge & PLEDGE_IOCTL)) { switch (com) { - case FIOASYNC: case FIOSETOWN: case FIOGETOWN: return (0); -- 2.20.1