From: Jiri Slaby Date: Fri, 26 Apr 2013 11:48:53 +0000 (+0200) Subject: TTY: fix atime/mtime regression X-Git-Tag: v3.2.45~44 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b28f5865ef23d2bcee122d75b4aea1e2f052624;p=pandora-kernel.git 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 Cc: Greg Kroah-Hartman Signed-off-by: Linus Torvalds [bwh: For 3.2, use Greg's backported version] Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed