artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f53049
)
Permit TIOCSTAT on a tty.
author
deraadt
<deraadt@openbsd.org>
Wed, 21 Jun 2017 17:13:20 +0000
(17:13 +0000)
committer
deraadt
<deraadt@openbsd.org>
Wed, 21 Jun 2017 17:13:20 +0000
(17:13 +0000)
sys/kern/kern_pledge.c
patch
|
blob
|
history
diff --git
a/sys/kern/kern_pledge.c
b/sys/kern/kern_pledge.c
index
150b3f3
..
63bb874
100644
(file)
--- a/
sys/kern/kern_pledge.c
+++ b/
sys/kern/kern_pledge.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: kern_pledge.c,v 1.21
4 2017/06/19 18:35:05 bluhm Exp $
*/
+/* $OpenBSD: kern_pledge.c,v 1.21
5 2017/06/21 17:13:20 deraadt Exp $
*/
/*
* Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org>
@@
-1286,6
+1286,7
@@
pledge_ioctl(struct proc *p, long com, struct file *fp)
case TIOCGPGRP:
case TIOCGETA:
case TIOCGWINSZ: /* ENOTTY return for non-tty */
+ case TIOCSTAT: /* csh */
if (fp->f_type == DTYPE_VNODE && (vp->v_flag & VISTTY))
return (0);
return (ENOTTY);