Strange behaviour of devfs wrt /dev/tty

Roderich Schupp (rsch@ExperTeam.de)
Sat, 25 Apr 1998 23:04:11 +0200


Hi,
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?
Cheers, Roderich
--
Neben Eden eben
Neben Amor
nie adretter
die Liebe grte!
Bier! Feten!
Gesegnete Freibetrge!
Bei Leid Retter da!
.. ein Roman eben.
Roderich Schupp          mailto:rsch@ExperTeam.de
ExperTeam GmbH           http://www.experteam.de/
Munich, Germany               linux:2.1.98

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu