TTY: fix atime/mtime regression
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 <firstname.lastname@example.org>
Cc: Greg Kroah-Hartman <email@example.com>
Signed-off-by: Linus Torvalds <firstname.lastname@example.org>
1 file changed