devfs
[Top] [All Lists]

Re: devfs and device properties

To: "Khimenko Victor" <devfs@xxxxxxxxxxxxxxxxx>
Subject: Re: devfs and device properties
From: Richard Gooch <rgooch@xxxxxxxxxxxxxxx>
Date: Mon, 22 May 2000 23:19:43 -0600
Cc: devfs@xxxxxxxxxxx
In-reply-to: <ADIiUAvKQ7@khim.sch57.msk.ru>
References: <ADIiUAvKQ7@khim.sch57.msk.ru>
Sender: owner-devfs@xxxxxxxxxxx
Khimenko Victor writes:
> Looks like devfs handles changes in device ownership just fine. As
> long as you are not doing anyting apart of changin ownership, that
> is. No driver unloading, no user process exiting... Here are two
> samples:

Please trim your lines to ~70 characters.

> -- cut --

> $ su -c "xterm&"
> Password:
> <in xterm window>
> # ls -l /dev/pts
> total 0
> crw--w----   1 root     tty      136,   0 May 23 06:02 0
> <so far so good, exiting from xterm>
> $ ls -l /dev/pts
> total 0
> <still good>
> $ mc
> open (pty_name, O_RDWR): Permission denied
> couldn't open slave side of pty (/dev/pts/0)
> <hmm... something strange goes on>
> $ ls -l /dev/pts
> crw--w----   1 root     tty      136,   2 May 23 06:02 2
> <oops... HOW ? Why it's root.tty's one, not my one ?>
> -- cut --
> This is total disaster :-( If root in system using openpty()-based program 
> then
> suddenly for other users mc, xterm and so on are work only if moon is in right
> phase...
> 
> P.S. It's with kernel 2.2.15pre9 and devfs 99.11  but I've not seen any
> relevant patches in later versions :-/

Try 2.3.99-pre6 or later. Some fixes went in there.

                                Regards,

                                        Richard....
Permanent: rgooch@xxxxxxxxxxxxx
Current:   rgooch@xxxxxxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>