mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-12 09:58:36 +00:00
Enable secure TTY input buffer flushing by default.
I'm leaving the sysctl there. If people really notice a slowdown, they can revert to the old behaviour. Discussed with: kib
This commit is contained in:
parent
46bd01cb33
commit
52f542a8e4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=192546
@ -68,7 +68,7 @@ SYSCTL_ULONG(_kern, OID_AUTO, tty_inq_nfast, CTLFLAG_RD,
|
||||
static unsigned long ttyinq_nslow = 0;
|
||||
SYSCTL_ULONG(_kern, OID_AUTO, tty_inq_nslow, CTLFLAG_RD,
|
||||
&ttyinq_nslow, 0, "Buffered reads to userspace on input");
|
||||
static int ttyinq_flush_secure = 0;
|
||||
static int ttyinq_flush_secure = 1;
|
||||
SYSCTL_INT(_kern, OID_AUTO, tty_inq_flush_secure, CTLFLAG_RW,
|
||||
&ttyinq_flush_secure, 0, "Zero buffers while flushing");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user