Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Feb 2008 20:22:02 +0000
From:      xorquewasp@googlemail.com
To:        Tom Evans <tevans.uk@googlemail.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Anybody have a patch for pdksh derivatives, for jails?
Message-ID:  <20080226202202.GA96964@logik.internal.network>
In-Reply-To: <1204039044.2126.121.camel@localhost>
References:  <5a08be760802241042x2cd93d63of5787a744e745fe5@mail.gmail.com> <1204039044.2126.121.camel@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
On 20080226 15:17:24, Tom Evans wrote:
> Running something like 'jexec 1 /bin/sh' won't allow you to allocate a
> tty. If instead you enable sshd inside the jail, and ssh into the jail,
> sshd will allocate you a tty, and everything will work normally.

Hi.

As I mentioned in my first email, the issue isn't precisely that a tty
isn't allocated, it's that *ksh does extra pedantic checking to discover
whether or not it really does have a controlling terminal. The restrictions
that exist in jails (eg. not being able to open /dev/tty) cause the shell
to believe that it doesn't have a controlling terminal. The shells in
base don't do this extra checking and therefore work fine.

This is simply an OS specific artifact that the *ksh authors couldn't
possibly have forseen!

Given that it seems nobody has patched *ksh to work in a jail, I'll try
myself. I expect the easiest way will be to add a command line flag that
says "I really do have a controlling terminal".

Thanks anyway.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080226202202.GA96964>