From owner-freebsd-current@FreeBSD.ORG Tue Jul 19 18:31:41 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 36CFA16A41F for ; Tue, 19 Jul 2005 18:31:41 +0000 (GMT) (envelope-from dickey@saltmine.radix.net) Received: from saltmine.radix.net (saltmine.radix.net [207.192.128.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id 691A143D58 for ; Tue, 19 Jul 2005 18:31:40 +0000 (GMT) (envelope-from dickey@saltmine.radix.net) Received: from saltmine.radix.net (localhost [127.0.0.1]) by saltmine.radix.net (8.12.2/8.12.2) with ESMTP id j6JIVcI4006915 for ; Tue, 19 Jul 2005 14:31:38 -0400 (EDT) Received: (from dickey@localhost) by saltmine.radix.net (8.12.2/8.12.2/Submit) id j6JIVbkk006913 for freebsd-current@freebsd.org; Tue, 19 Jul 2005 14:31:37 -0400 (EDT) Date: Tue, 19 Jul 2005 14:31:37 -0400 From: Thomas Dickey To: freebsd-current@freebsd.org Message-ID: <20050719183137.GA4337@saltmine.radix.net> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="envbJBWh7q8WU6mo" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.27i Subject: Re: fun with old/new jails and xdm X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jul 2005 18:31:41 -0000 --envbJBWh7q8WU6mo Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jul 19, 2005 at 08:10:52PM +0800, Julian Elischer wrote: > Running a 4.x based jail on a 6 or 5 based system. >=20 > The following ammusing (well not really) event happens if you > try to run an xdm in a 4.x jail under 5.x or 6.x to control > a remote xterminal using the 5.x supplied devfs in the jail. >=20 > * Xdm shows a login window on the remote xterminal. (so far so good) > * User logs in. > * Xdm fires up a xterm etc. (whatever the user has in his .Xsession). > * Xterm immediatly quits because there is no /dev/tty in the jail > because the xterm has no controlling terminal having been started by > xdm which is a daemon. > * Session aborts. >=20 > I'm guessing that xterm in 5.x was fixed to not require the existence > of /dev/tty.. Was that fix made by someone here? does anyone know if > it wasmajor? It might have been a change outside xterm (I don't recall a change with this symptom in xterm). A quick way to check would be to compile xterm from source and test that. ftp://invisible-island.net/xterm/ (at least that's what I would do ;-) =20 > If you run it all by hand it works fine because you have a controlling=20 > terminal and thus a 'tty' shows up in devfs. >=20 > As an aside note.. in my older devfs 'tty' always existed but it would > return ENXIO for I/O if you didn't have a controlling terminal.. more > like happened before.. >=20 > Anyone have any good suggestions as to how to get around this other > than to fix all the x clients..?. not all of them care about the controlling terminal --=20 Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net --envbJBWh7q8WU6mo Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (SunOS) Comment: For info see http://www.gnupg.org iD8DBQFC3UYDtIqByHxlDocRApuUAJ0aKyuiaC6cBWvuhxyqpR3IFuIHCgCfZyoa c7tqJo/B9wCEttwENZmglFI= =OQaz -----END PGP SIGNATURE----- --envbJBWh7q8WU6mo--