From: deraadt Date: Wed, 14 Oct 2015 04:05:43 +0000 (+0000) Subject: pledge "tty" can allow ioctl TIOCEXCL on a tty X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=0fb7496ecc7961644cd60d81c31fa44dd0d73ed5;p=openbsd pledge "tty" can allow ioctl TIOCEXCL on a tty --- diff --git a/sys/kern/kern_pledge.c b/sys/kern/kern_pledge.c index 8da95a63f25..c36ae6b500e 100644 --- a/sys/kern/kern_pledge.c +++ b/sys/kern/kern_pledge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_pledge.c,v 1.23 2015/10/14 03:27:02 deraadt Exp $ */ +/* $OpenBSD: kern_pledge.c,v 1.24 2015/10/14 04:05:43 deraadt Exp $ */ /* * Copyright (c) 2015 Nicholas Marriott @@ -1086,6 +1086,7 @@ pledge_ioctl_check(struct proc *p, long com, void *v) case TIOCSWINSZ: case TIOCSBRK: /* cu */ case TIOCCDTR: /* cu */ + case TIOCEXCL: /* cu */ case TIOCSETA: /* cu, ... */ case TIOCSETAW: /* cu, ... */ case TIOCSETAF: /* tcsetattr TCSAFLUSH, script */