From: deraadt Date: Thu, 15 Oct 2015 17:50:05 +0000 (+0000) Subject: Exposing FIOASYNC in pledge "ioctl" is a mistake; remove it, cannot find safe uses... X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=a061b5743560744314bee49cc4b5f28d4631871a;p=openbsd Exposing FIOASYNC in pledge "ioctl" is a mistake; remove it, cannot find safe uses of it --- 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);