Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 May 2009 16:48:06 +0000 (UTC)
From:      Ed Schouten <ed@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r192546 - head/sys/kern
Message-ID:  <200905211648.n4LGm67s072359@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ed
Date: Thu May 21 16:48:06 2009
New Revision: 192546
URL: http://svn.freebsd.org/changeset/base/192546

Log:
  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

Modified:
  head/sys/kern/tty_inq.c

Modified: head/sys/kern/tty_inq.c
==============================================================================
--- head/sys/kern/tty_inq.c	Thu May 21 16:27:47 2009	(r192545)
+++ head/sys/kern/tty_inq.c	Thu May 21 16:48:06 2009	(r192546)
@@ -68,7 +68,7 @@ SYSCTL_ULONG(_kern, OID_AUTO, tty_inq_nf
 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");
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905211648.n4LGm67s072359>