[LinuxPPS] 8 Jul 19:02 - Fix permission checking for the new
utimensat() system call
linuxpps: Linus Torvalds <>
webmaster at enneenne.com
Tue Jul 17 19:45:10 CEST 2007
Fix permission checking for the new utimensat() system call
Commit 1c710c896eb461895d3c399e15bb5f20b39c9073 added the utimensat()
system call, but didn't handle the case of checking for the writability
of the target right, when the target was a file descriptor, not a
filename.
We cannot use vfs_permission(MAY_WRITE) for that case, and need to
simply check whether the file descriptor is writable. The oops from
using the wrong function was noticed and narrowed down by Markus
Trippelsdorf.
Cc: Ulrich Drepper
Cc: Markus Trippelsdorf
Cc: Andrew Morton
Acked-by: Al Viro
Signed-off-by: Linus Torvalds
fs/utimes.c
URL: http://gitweb.enneenne.com/?p=linuxpps;a=commit;h=1e5de2837c166535f9bb4232bfe97ea1f9fc7a1c
More information about the LinuxPPS
mailing list