diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-10-15 17:55:42 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-10-15 17:55:42 +0000 |
commit | 57f035671771a0d6af02376363103ce75586bd50 (patch) | |
tree | 40bff46be1d6a28b96dadd1ea80bb39ee9f032a1 /sys/kern | |
parent | f278a89bf4f9cf22378285064b02f392bf19a175 (diff) |
Add TIOCFLUSH to "tty" in support of tcflush()
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_pledge.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/kern_pledge.c b/sys/kern/kern_pledge.c index d9fcdd27724..ac077df2697 100644 --- 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; |