On Sun, 26 Apr 1998, Richard Gooch wrote:
> Roderich Schupp writes:
> > I noticed the following strange behaviour with devfs (patch-v27,
> > kernel 2.1.98). If some program opens /dev/tty (e.g. "cat < /dev/tty")
> > /dev/tty suddenly changes owner/group (to the uid/gid of the
> > program opening the device) and permissions (600). The problem is:
> > all other processes on the system see the _same_ permissions
> > of /dev/tty. Shouldn't that be visible only to the processes with
> > the same controlling terminal?
>
> In fact, the ownership/permissions shouldn't be changed at all for
> /dev/tty, since it is a pseudo-private device anyway (locking it away
> from other users through permissions doesn't make sense, since it is
> already locked away).
> I've fixed it so that uid/gid = 0/0 and mode = crw-rw-rw-. This fix
> will be in devfs-patch-v28. Watch the list for the announcement when
> it comes. If you desperately need a fix now, let me know and I'll
> produce one.
>
> Thanks for spotting this one.
>
> Regards,
>
> Richard....
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.rutgers.edu
>
-- Gerhard Mack irc admin centurion.starchat.netgmack@imag.net innerfire@starchat.net
As a computer I find your faith in technology amusing.
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu