diff options
author | Jiri Slaby <jslaby@suse.cz> | 2013-04-26 13:48:53 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-05-01 09:41:03 -0700 |
commit | c61642cce0247175489666d90ebd59f8a04e7c76 (patch) | |
tree | b05f246d9e65422b243f1ff9dcbd41a6af01247c /arch/sparc/include/asm/tlbflush_64.h | |
parent | 3ab8db7b9c2e0a399e65a95999e0794a85c63975 (diff) | |
download | linux-3.10-c61642cce0247175489666d90ebd59f8a04e7c76.tar.gz linux-3.10-c61642cce0247175489666d90ebd59f8a04e7c76.tar.bz2 linux-3.10-c61642cce0247175489666d90ebd59f8a04e7c76.zip |
TTY: fix atime/mtime regression
commit 37b7f3c76595e23257f61bd80b223de8658617ee upstream.
In commit b0de59b5733d ("TTY: do not update atime/mtime on read/write")
we removed timestamps from tty inodes to fix a security issue and waited
if something breaks. Well, 'w', the utility to find out logged users
and their inactivity time broke. It shows that users are inactive since
the time they logged in.
To revert to the old behaviour while still preventing attackers to
guess the password length, we update the timestamps in one-minute
intervals by this patch.
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/sparc/include/asm/tlbflush_64.h')
0 files changed, 0 insertions, 0 deletions