From owner-freebsd-hackers@FreeBSD.ORG Thu Jan 26 12:46:50 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E14C616A420 for ; Thu, 26 Jan 2006 12:46:50 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [209.31.154.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5949343D69 for ; Thu, 26 Jan 2006 12:46:50 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [209.31.154.41]) by cyrus.watson.org (Postfix) with ESMTP id E6BD446B2D; Thu, 26 Jan 2006 07:46:43 -0500 (EST) Date: Thu, 26 Jan 2006 12:48:13 +0000 (GMT) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: =?ISO-8859-1?Q?Mikko_Ty=F6l=E4j=E4rvi?= In-Reply-To: <20060122235133.Y89461@fledge.watson.org> Message-ID: <20060126123025.F16741@fledge.watson.org> References: <43CC3C6B.4060703@devnet.fi> <49431.195.139.252.5.1137461466.squirrel@webmail.i13i.com> <20060121155821.Y73866@spirou.home> <20060122235133.Y89461@fledge.watson.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-hackers@freebsd.org, Antti Korpela Subject: Re: FreeBSD 6.0 default pty/tty-limit (256) OFF! X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Jan 2006 12:46:51 -0000 On Sun, 22 Jan 2006, Robert Watson wrote: > FYI, there's also a tty_pts.c floating around, based on some work I did at > McAfee a couple of years ago, that implements /dev/ptmx and /dev/pts for > FreeBSD. Among other things, it removes the limit on the number pty's, and > adopts the Sys V pty naming convention. While there are upsides and > downsides to the naming convention, it does attempt to normalize the way we > handle pty's, as well as removing the requirement for root privilege in > order to allocate and properly protect a pty. I have an older version at > http://www.watson.org/~robert/freebsd/pts/. However, it's fairly dated, and > may not work due to other changes since it was written (I've not looked to > see). I've tried several times to trick developers into picking it up and > doing the last remaining work to make it real -- largely what's required is > work on the forward/backward compatibility issue, that and extensive testing > and a security audit. It would be nice to ship 7.x with these changes as it > would resolve a lot of problems. As a follow-up, Olivier Houchard just committed tty_pts.c and supporting libc pieces to 7-CURRENT; you can find details in the HEADS UP post on freebsd-current. By default the limit is 1000 pty's, but that can be increased. Testing most welcome. Robert N M Watson