Re: Anybody have a patch for pdksh derivatives, for jails?
- From: xorquewasp@xxxxxxxxxxxxxx
- Date: Tue, 26 Feb 2008 20:22:02 +0000
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.
_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"
- References:
- Anybody have a patch for pdksh derivatives, for jails?
- From: cali clarke
- Re: Anybody have a patch for pdksh derivatives, for jails?
- From: Tom Evans
- Anybody have a patch for pdksh derivatives, for jails?
- Prev by Date: Re: Zeroing sensitive memory chunks [Was: Security Flaw in Popular Disk Encryption Technologies]
- Next by Date: Re: emulate an end-of-media
- Previous by thread: Re: Anybody have a patch for pdksh derivatives, for jails?
- Next by thread: emulate an end-of-media
- Index(es):
Relevant Pages
- Re: openpty() and jail in RELENG_7
... This is because you haven't been allocated a pty inside your jail. ...
Enable sshd inside your jail, ssh to your jail (which will allocate you ... (freebsd-stable) - Re: Anybody have a patch for pdksh derivatives, for jails?
... to start *ksh in a jail results in a message that /dev/tty could ...
to enter the jail as I believe ssh handles tty allocation in ... sshd will allocate
you a tty, ... (freebsd-hackers) - Re: current state of the art / best practice for devfs in a jail ?
... > I have been researching the various of ways people add devfs to a jail to ...
`mknod' will not work in a jail. ... would be nice is that the kernel will put new devices
in every devfs, ... rm: tty: File exists ... (freebsd-hackers) - Re: Cannot ssh from jail
... than their own jail) on 6.2-RELEASE-p5. ... if I then try to ssh from
the jail to another box, ... I think the problem is that if you jexec into a jail then
you don't have ... a TTY at hand, ... (freebsd-stable) - Re: Cannot ssh from jail
... than their own jail) on 6.2-RELEASE-p5. ... if I then try to ssh from
the jail to another box, ... I think the problem is that if you jexec into a jail then
you don't have ... a TTY at hand, ... (freebsd-stable)