diff options
author | Kamil Dudka <kdudka@redhat.com> | 2010-01-22 15:17:19 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2010-01-25 11:43:49 +0100 |
commit | aad0bde0b5aa6ccf2714f43676d4941f820c6283 (patch) | |
tree | a086cfa067f6896226dfaea57b2bf44b6fa36a5a /NEWS | |
parent | 0caead1ea0b2ef63173cde6b583249bea3194817 (diff) | |
download | coreutils-aad0bde0b5aa6ccf2714f43676d4941f820c6283.tar.xz |
who --mesg (-T) can use a more accurate test for TTY writability
Enabled when coreutils is configured with --with-tty-group.
Based on a patch written by Piotr Gackiewicz. Details at
http://bugzilla.redhat.com/454261
* src/who.c (is_tty_writable): A new function returning true if a TTY
device is writable by the group. Additionally it checks the group to be
the same as TTY_GROUP_NAME when compiled with --with-tty-group.
* m4/jm-macros.m4: Introduce a new configure option --with-tty-group.
* NEWS: Mention the change.
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -2,6 +2,18 @@ GNU coreutils NEWS -*- outline -*- * Noteworthy changes in release ?.? (????-??-??) [?] +** New features + + who: the "+/-" --mesg (-T) indicator of whether a user/tty is accepting + messages could be incorrectly listed as "+", when in fact, the user was + not accepting messages (mesg no). Before, who would examine only the + permission bits, and not consider the group of the TTY device file. + Thus, if a login tty's group would change somehow e.g., to "root", + that would make it unwritable (via write(1)) by normal users, in spite + of whatever the permission bits might imply. Now, when configured + using the --with-tty-group[=NAME] option, who also compares the group + of the TTY device with NAME (or "tty" if no group name is specified). + * Noteworthy changes in release 8.4 (2010-01-13) [stable] |