lkml.org 
[lkml]   [1999]   [Nov]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: UNIX98 Ptys and chroot bug/question
Date
Followup to:  <19991124133442.C15155@comstar.ru>
By author: Valentin Podlovchenko <valya@comstar.ru>
In newsgroup: linux.dev.kernel
>
> 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 ;)

Yes, this is a problem. There aren't that many people using chroot in
such a way as that they need pty's, so this hasn't been extensively
tested. What are your mount options for /dev/pts and /web/dev/pts?

-hpa
--
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!
"Unix gives you enough rope to shoot yourself in the foot."

-
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/

\
 
 \ /
  Last update: 2005-03-22 13:55    [W:0.042 / U:0.224 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site