lkml.org 
[lkml]   [1998]   [Apr]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: Strange behaviour of devfs wrt /dev/tty

    I get this without devfs.

    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.net

    gmack@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

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