From owner-freebsd-emulation@FreeBSD.ORG Fri Mar 5 09:14:48 2010 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7D316106564A for ; Fri, 5 Mar 2010 09:14:48 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (mx0.hoeg.nl [IPv6:2001:7b8:613:100::211]) by mx1.freebsd.org (Postfix) with ESMTP id 2202A8FC0C for ; Fri, 5 Mar 2010 09:14:48 +0000 (UTC) Received: by palm.hoeg.nl (Postfix, from userid 1000) id A7D7D1CD18; Fri, 5 Mar 2010 10:14:46 +0100 (CET) Date: Fri, 5 Mar 2010 10:14:46 +0100 From: Ed Schouten To: Alexander Leidinger Message-ID: <20100305091446.GZ8200@hoeg.nl> References: <201003021325.27197.lists@jnielsen.net> <20100303180636.GA31551@freebsd.org> <20100304114050.00007a59@unknown> <201003041322.57875.lists@jnielsen.net> <20100305092611.0000772c@unknown> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="RjH8iK+mLKhkkRey" Content-Disposition: inline In-Reply-To: <20100305092611.0000772c@unknown> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-emulation@freebsd.org Subject: Re: linux-only jail possible? X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Mar 2010 09:14:48 -0000 --RjH8iK+mLKhkkRey Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello Alexander, * Alexander Leidinger wrote: > > My current hurdle is sshd: > > Mar 3 22:20:51 centos sshd[88836]: fatal: openpty returns device for > > which ttyname fails. > >=20 > > Apparently the Linux sshd isn't using /dev/ptmx appropriately. I'll > > probably just have to replace it with one that does.. >=20 > Ed, can it be that the linuxulator ttyname stuff needs to be fixed > after your tty changes? Hmmm... It worked back in August 2008 when I committed it to HEAD. ttyname() on Linux works pretty bad. First of all, it tries to readlink() on a node in devfs. If that fails, it falls back to stat()ing in /dev, /dev/pts, etc. until a device node is found which shares the same major/minor number. On FreeBSD we just use FIODGNAME (see fdevname(3)). Could you please strace/truss/etc the Linux binary to see what it exactly does? --=20 Ed Schouten WWW: http://80386.nl/ --RjH8iK+mLKhkkRey Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (FreeBSD) iEYEARECAAYFAkuQy4YACgkQ52SDGA2eCwUPOgCeNS0cBkaYFh5YQwNOr28aUj1O Z2sAnRUKA0fCaV3dz8ysdZWyV8BFJrr+ =zhDC -----END PGP SIGNATURE----- --RjH8iK+mLKhkkRey--