summaryrefslogtreecommitdiff
path: root/mm/Makefile
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@suse.cz>2008-05-01 18:45:34 +0000
committerGreg Kroah-Hartman <gregkh@suse.de>2008-05-09 21:40:44 -0700
commitf9dfda1ad0637a89a64d001cf81478bd8d9b6306 (patch)
tree7a03c73d6bb6ed79a0d7d1ff464092ad32902e12 /mm/Makefile
parent9bd2c7ca75b0ebe05b0c67852d050720119983e7 (diff)
vfs: fix permission checking in sys_utimensat
commit: 02c6be615f1fcd37ac5ed93a3ad6692ad8991cd9 upstream If utimensat() is called with both times set to UTIME_NOW or one of them to UTIME_NOW and the other to UTIME_OMIT, then it will update the file time without any permission checking. I don't think this can be used for anything other than a local DoS, but could be quite bewildering at that (e.g. "Why was that large source tree rebuilt when I didn't modify anything???") This affects all kernels from 2.6.22, when the utimensat() syscall was introduced. Fix by doing the same permission checking as for the "times == NULL" case. Thanks to Michael Kerrisk, whose utimensat-non-conformances-and-fixes.patch in -mm also fixes this (and breaks other stuff), only he didn't realize the security implications of this bug. Signed-off-by: Miklos Szeredi <mszeredi@suse.cz> Cc: Ulrich Drepper <drepper@redhat.com> Cc: Michael Kerrisk <mtk-manpages@gmx.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'mm/Makefile')
0 files changed, 0 insertions, 0 deletions