diff options
author | 2015-08-26 05:55:53 +0000 | |
---|---|---|
committer | 2015-08-26 05:55:53 +0000 | |
commit | 319cbaca9e339e032cda501d5d4207aa2b5ef3b1 (patch) | |
tree | 6b2a8b85d29819e2956500df0f57a956185cd389 | |
parent | regen (diff) | |
download | wireguard-openbsd-319cbaca9e339e032cda501d5d4207aa2b5ef3b1.tar.xz wireguard-openbsd-319cbaca9e339e032cda501d5d4207aa2b5ef3b1.zip |
Add TIOCGETA to the tame list for TAME_IOCTL.
This is used by readpassphrase() and curses.
ok deraadt@
-rw-r--r-- | lib/libc/sys/tame.2 | 3 | ||||
-rw-r--r-- | sys/kern/kern_tame.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/libc/sys/tame.2 b/lib/libc/sys/tame.2 index 6551525e7ec..cc72194b792 100644 --- a/lib/libc/sys/tame.2 +++ b/lib/libc/sys/tame.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: tame.2,v 1.18 2015/08/26 05:20:06 doug Exp $ +.\" $OpenBSD: tame.2,v 1.19 2015/08/26 05:55:53 doug Exp $ .\" .\" Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org> .\" @@ -369,6 +369,7 @@ operations: .Dv FIONREAD , .Dv FIONBIO , .Dv FIOGETOWN , +.Dv TIOCGETA , .Dv TIOCGPGRP , .Dv TIOCGWINSZ , .Dv TIOCSTI . diff --git a/sys/kern/kern_tame.c b/sys/kern/kern_tame.c index 1b5265c6af0..75690fa7a19 100644 --- a/sys/kern/kern_tame.c +++ b/sys/kern/kern_tame.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_tame.c,v 1.30 2015/08/26 05:20:06 doug Exp $ */ +/* $OpenBSD: kern_tame.c,v 1.31 2015/08/26 05:55:53 doug Exp $ */ /* * Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org> @@ -931,6 +931,7 @@ tame_ioctl_check(struct proc *p, long com, void *v) return (EPERM); /* tty subsystem */ + case TIOCGETA: case TIOCGPGRP: case TIOCGWINSZ: /* various programs */ case TIOCSTI: /* ksh? csh? */ |