summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authordoug <doug@openbsd.org>2015-08-21 07:26:09 +0000
committerdoug <doug@openbsd.org>2015-08-21 07:26:09 +0000
commit4cd0ce138207b78267419adeadf194afaad774b9 (patch)
treed4bddaec9e1841b3740ad816df5dc95f6554650e /sys
parentuse vaddr_t for kernel va range calculation instead of paddr_t. No binary (diff)
downloadwireguard-openbsd-4cd0ce138207b78267419adeadf194afaad774b9.tar.xz
wireguard-openbsd-4cd0ce138207b78267419adeadf194afaad774b9.zip
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))