summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDoug Hogan <doug@cvs.openbsd.org>2015-08-21 07:26:10 +0000
committerDoug Hogan <doug@cvs.openbsd.org>2015-08-21 07:26:10 +0000
commit259b630d4e21e470c4cd211941cb8cc2bf2e24ca (patch)
treed7097d5f29690bf16ce93f9b4e659ebe681cee62 /sys
parentf1992fcaf23a70114a28d88a28a5e22692a038c6 (diff)
Whitelist TIOCGPGRP (for tcgetpgrp()) in TAME_IOCTL.
Requested by Sunil Nimmagadda to help tame http. ok deraadt@
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/kern_tame.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/kern_tame.c b/sys/kern/kern_tame.c
index 49acb84285b..6aeef3c0f16 100644
--- a/sys/kern/kern_tame.c
+++ b/sys/kern/kern_tame.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_tame.c,v 1.19 2015/08/20 06:00:23 deraadt Exp $ */
+/* $OpenBSD: kern_tame.c,v 1.20 2015/08/21 07:26:09 doug Exp $ */
/*
* Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org>
@@ -728,6 +728,7 @@ tame_ioctl_check(struct proc *p, long com, void *v)
return (EPERM);
/* tty subsystem */
+ case TIOCGPGRP:
case TIOCGWINSZ: /* various programs */
case TIOCSTI: /* ksh? csh? */
if (fp->f_type == DTYPE_VNODE && (vp->v_flag & VISTTY))