UNIX98 Ptys and chroot bug/question

Valentin Podlovchenko (valya@comstar.ru)
Wed, 24 Nov 1999 13:34:42 +0300


Hello folk,
I'm newbie in this maillist and hope it's right place for my question.

I have next trouble/situation:

I have some programs and telnetd working in an chrooted partition,
I have also kernel 2.2.9-ac6 with UNIX98 ptys compiled in
So when anybody log into the system throuth ssh (in basic root partition)
and one log in by telnet (in chroot partition), in both (basic root and
chroot) partitions in /dev/pts filesystem appear both!!! pty devices with
^^^^^^^
strange modes and ownership:

in basic root:
>ls -l /dev/pts/
total 0
crw--w---- 1 valya tty 136, 0 Nov 24 13:25 0
crw--w--w- 1 root root 136, 1 Nov 24 13:25 1

in chroot:
>chroot /web/ !!
chroot /web/ ls -l /dev/pts/
total 0
crw--w--w- 1 root root 136, 0 Nov 24 12:16 0
crw--w---- 1 valya tty 136, 1 Nov 24 13:25 1

--------------------------------------------------------------
- pty 0 was logged in basic root and pty 1 in chrooted partition.

so any user from basic root system can write to chrooted pty and
any user from chroot can write to basic root ptys.

It seems to me slightly wrong ;)

And one problem too:
After some days work well my server in chrooted partition loose possibility
to log users in by telnet. I think it is because of some problems with ptys but
I wouldn't say it with certainty... ;)

-- 
 Podlovchenko Valentin,                        E-mail: <valya@comstar.ru>
 Comstar Telecommunications                    Tel.: +7 (095) 232-1180
                                               Fax: +7 (095) 956-2205 

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/