artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a061b57
)
Add TIOCFLUSH to "tty" in support of tcflush()
author
deraadt
<deraadt@openbsd.org>
Thu, 15 Oct 2015 17:55:41 +0000
(17:55 +0000)
committer
deraadt
<deraadt@openbsd.org>
Thu, 15 Oct 2015 17:55:41 +0000
(17:55 +0000)
sys/kern/kern_pledge.c
patch
|
blob
|
history
diff --git
a/sys/kern/kern_pledge.c
b/sys/kern/kern_pledge.c
index
d9fcdd2
..
ac077df
100644
(file)
--- a/
sys/kern/kern_pledge.c
+++ b/
sys/kern/kern_pledge.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: kern_pledge.c,v 1.
29 2015/10/15 17:50:05
deraadt Exp $ */
+/* $OpenBSD: kern_pledge.c,v 1.
30 2015/10/15 17:55:41
deraadt Exp $ */
/*
* Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org>
@@
-1101,6
+1101,7
@@
pledge_ioctl_check(struct proc *p, long com, void *v)
case TIOCSETA: /* cu, ... */
case TIOCSETAW: /* cu, ... */
case TIOCSETAF: /* tcsetattr TCSAFLUSH, script */
+ case TIOCFLUSH: /* getty */
if (fp->f_type == DTYPE_VNODE && (vp->v_flag & VISTTY))
return (0);
break;