Messages in this thread | | | From | (H. Peter Anvin) | Subject | Re: UNIX98 Ptys and chroot bug/question | Date | 24 Nov 1999 21:40:55 GMT |
| |
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/
| |