From owner-freebsd-current@FreeBSD.ORG Tue Jul 19 03:21:38 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 8041A16A41C for ; Tue, 19 Jul 2005 03:21:38 +0000 (GMT) (envelope-from julian@vicor.com) Received: from postoffice.vicor-nb.com (postoffice.vicor.com [69.26.56.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id DFB9243D49 for ; Tue, 19 Jul 2005 03:21:37 +0000 (GMT) (envelope-from julian@vicor.com) Received: from localhost (localhost [127.0.0.1]) by postoffice.vicor-nb.com (Postfix) with ESMTP id 1B48D4CEA05 for ; Mon, 18 Jul 2005 20:21:37 -0700 (PDT) Received: from postoffice.vicor-nb.com ([127.0.0.1]) by localhost (postoffice.vicor-nb.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 70781-10 for ; Mon, 18 Jul 2005 20:21:36 -0700 (PDT) Received: from bigwoop.vicor-nb.com (bigwoop.vicor-nb.com [208.206.78.2]) by postoffice.vicor-nb.com (Postfix) with ESMTP id DC3B94CE9FE for ; Mon, 18 Jul 2005 20:21:36 -0700 (PDT) Received: from [208.206.78.97] (julian.vicor-nb.com [208.206.78.97]) by bigwoop.vicor-nb.com (Postfix) with ESMTP id C9CDD7A403 for ; Mon, 18 Jul 2005 20:21:36 -0700 (PDT) Message-ID: <42DC71C0.6010801@vicor.com> Date: Mon, 18 Jul 2005 20:21:36 -0700 From: Julian Elischer Organization: VICOR User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.8) Gecko/20050629 X-Accept-Language: en, hu MIME-Version: 1.0 To: FreeBSD Current Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postoffice.vicor.com X-Mailman-Approved-At: Tue, 19 Jul 2005 12:08:41 +0000 Subject: 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 03:21:38 -0000 Running a 4.x based jail on a 6 or 5 based system. 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. * 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. 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? If you run it all by hand it works fine because you have a controlling terminal and thus a 'tty' shows up in devfs. 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.. Anyone have any good suggestions as to how to get around this other than to fix all the x clients..?.