diff options
author | 2015-10-15 17:50:05 +0000 | |
---|---|---|
committer | 2015-10-15 17:50:05 +0000 | |
commit | a061b5743560744314bee49cc4b5f28d4631871a (patch) | |
tree | d432c8085b4df9e55fd63c7df9493d0bdb2758ff /sys/kern/kern_pledge.c | |
parent | Plegde x99token with "stdio rpath wpath cpath fattr getpw tty". (diff) | |
download | wireguard-openbsd-a061b5743560744314bee49cc4b5f28d4631871a.tar.xz wireguard-openbsd-a061b5743560744314bee49cc4b5f28d4631871a.zip |
Exposing FIOASYNC in pledge "ioctl" is a mistake; remove it, cannot find safe uses of it
Diffstat (limited to '')
-rw-r--r-- | sys/kern/kern_pledge.c | 3 |
1 files changed, 1 insertions, 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 <nicm@openbsd.org> @@ -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); |