]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/attr.c
[patch 1/4] vfs: utimes: move owner check into inode_change_ok()
[linux-2.6-omap-h63xx.git] / fs / attr.c
index 966b73e25f82e06f69ad0eca22a3f6fe268c4cd0..765fc75fab3b0d0bfc3d26ba2ed18235cf48f5cd 100644 (file)
--- a/fs/attr.c
+++ b/fs/attr.c
@@ -51,7 +51,7 @@ int inode_change_ok(struct inode *inode, struct iattr *attr)
        }
 
        /* Check for setting the inode time. */
-       if (ia_valid & (ATTR_MTIME_SET | ATTR_ATIME_SET)) {
+       if (ia_valid & (ATTR_MTIME_SET | ATTR_ATIME_SET | ATTR_TIMES_SET)) {
                if (!is_owner_or_cap(inode))
                        goto error;
        }