From aad0bde0b5aa6ccf2714f43676d4941f820c6283 Mon Sep 17 00:00:00 2001 From: Kamil Dudka Date: Fri, 22 Jan 2010 15:17:19 +0100 Subject: 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. --- NEWS | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index 530ff959f..f4c7f97d5 100644 --- a/NEWS +++ b/NEWS @@ -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] -- cgit v1.2.3-70-g09d2