linux-only jail possible?

Ed Schouten ed at 80386.nl
Fri Mar 5 09:14:48 UTC 2010


Hello Alexander,

* Alexander Leidinger <Alexander at Leidinger.net> wrote:
> > My current hurdle is sshd:
> > Mar  3 22:20:51 centos sshd[88836]: fatal: openpty returns device for
> > which ttyname fails.
> > 
> > Apparently the Linux sshd isn't using /dev/ptmx appropriately. I'll
> > probably just have to replace it with one that does..
> 
> 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?

-- 
 Ed Schouten <ed at 80386.nl>
 WWW: http://80386.nl/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-emulation/attachments/20100305/ebecfd9c/attachment.pgp


More information about the freebsd-emulation mailing list