Date: Fri, 5 Mar 2010 10:14:46 +0100 From: Ed Schouten <ed@80386.nl> To: Alexander Leidinger <Alexander@Leidinger.net> Cc: freebsd-emulation@freebsd.org Subject: Re: linux-only jail possible? Message-ID: <20100305091446.GZ8200@hoeg.nl> In-Reply-To: <20100305092611.0000772c@unknown> References: <201003021325.27197.lists@jnielsen.net> <20100303180636.GA31551@freebsd.org> <20100304114050.00007a59@unknown> <201003041322.57875.lists@jnielsen.net> <20100305092611.0000772c@unknown>
next in thread | previous in thread | raw e-mail | index | archive | help
--RjH8iK+mLKhkkRey Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello Alexander, * Alexander Leidinger <Alexander@Leidinger.net> 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 <ed@80386.nl> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100305091446.GZ8200>