X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=fs%2Futimes.c;h=682eb63b20ad3c4c7452870c3d9e6e832aea21e0;hb=8553cf4f360d6fc4913a0bdd3b22dd7b5bb9a3be;hp=b3c88952465fa28cce7e0bb213fceaf59873fdf9;hpb=702ed6ef375c19d65f2eeeefd3851476f2c4cee4;p=linux-2.6 diff --git a/fs/utimes.c b/fs/utimes.c index b3c8895246..682eb63b20 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 (!is_owner_or_cap(inode)) { if (f) { if (!(f->f_mode & FMODE_WRITE)) goto dput_and_out;