Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=5b37696fda07b8acf37beba3853f83106397ccdf Commit: 5b37696fda07b8acf37beba3853f83106397ccdf Parent: 9793c3266755b4cae8915982825b2c07cd12e1c6 Author: Satyam Sharma <[EMAIL PROTECTED]> AuthorDate: Tue Jul 17 00:24:23 2007 +0530 Committer: Linus Torvalds <[EMAIL PROTECTED]> CommitDate: Mon Jul 16 12:14:08 2007 -0700
utime(s): Honour CAP_FOWNER when times==NULL do_utimes() does not honour CAP_FOWNER when times==NULL. Trivial and obvious one-line fix. Signed-off-by: Satyam Sharma <[EMAIL PROTECTED]> Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]> --- fs/utimes.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fs/utimes.c b/fs/utimes.c index b3c8895..83a7e69 100644 --- a/fs/utimes.c +++ b/fs/utimes.c @@ -106,7 +106,7 @@ long do_utimes(int dfd, char __user *filename, struct timespec *times, int flags if (IS_IMMUTABLE(inode)) goto dput_and_out; - if (current->fsuid != inode->i_uid) { + if ((current->fsuid != inode->i_uid) && !capable(CAP_FOWNER)) { if (f) { if (!(f->f_mode & FMODE_WRITE)) goto dput_and_out; - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html