From 0fb7496ecc7961644cd60d81c31fa44dd0d73ed5 Mon Sep 17 00:00:00 2001 From: deraadt Date: Wed, 14 Oct 2015 04:05:43 +0000 Subject: [PATCH] pledge "tty" can allow ioctl TIOCEXCL on a tty --- sys/kern/kern_pledge.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 */ -- 2.20.1