diff options
| author | Linus Torvalds <[email protected]> | 2007-07-08 12:02:55 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2007-07-08 12:02:55 -0700 |
| commit | 1e5de2837c166535f9bb4232bfe97ea1f9fc7a1c (patch) | |
| tree | 333a9686bbebefd85e1854f1b234a0fc0f75d77b /include/linux | |
| parent | 4e99325b462ba18075768582621af74a6b79d2a5 (diff) | |
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 <[email protected]>
Cc: Markus Trippelsdorf <[email protected]>
Cc: Andrew Morton <[email protected]>
Acked-by: Al Viro <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions