jailkit-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Jailkit-users] RE: How to launch a xterm into the jail (FOUCHECOURT


From: Olivier Sessink
Subject: Re: [Jailkit-users] RE: How to launch a xterm into the jail (FOUCHECOURT FREDERIC)
Date: Wed, 14 Mar 2007 21:41:36 +0100
User-agent: Thunderbird 1.5.0.7 (X11/20060927)

FOUCHECOURT FREDERIC wrote:
Thanks for your time Olivier :-)
I wait for your message when you have try xterm installation.

I did an strace on an xterm process:

[pid  3866] open("/dev/tty", O_RDWR)    = 5
[pid  3866] alarm(0)                    = 2
[pid 3866] rt_sigaction(SIGALRM, {SIG_DFL}, {0x80663d0, [ALRM], SA_RESTART}, 8) = 0 [pid 3866] ioctl(5, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
[pid  3866] close(5)                    = 0
[pid 3866] open("/dev/ptmx", O_RDWR) = -1 ENOENT (No such file or directory)
[pid  3866] open("/dev/ptyp0", O_RDWR)  = 5
[pid 3866] ioctl(5, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
[pid  3866] ioctl(5, TIOCGPTN, [134801400]) = -1 EINVAL (Invalid argument)
[pid 3866] fstat64(5, {st_mode=S_IFCHR|0666, st_rdev=makedev(2, 0), ...}) = 0 [pid 3866] stat64("/dev/ttyp0", 0xbfd16a34) = -1 ENOENT (No such file or directory)
[pid  3866] write(2, "xterm: Error 32, errno 2: ", 26) = 26
[pid  3866] write(2, "No such file or directory\n", 26) = 26
[pid  3866] write(2, "Reason: get_pty: not enough ptys"..., 33) = 33

so I added /dev/tty*

jk_cp /home/testjail /dev/tty*

and that worked for me, xterm in a jail is running

regards,
        Olivier




reply via email to

[Prev in Thread] Current Thread [Next in Thread]