Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 57455
b: refs/heads/master
c: 85f6038
h: refs/heads/master
i:
  57453: cbbc747
  57451: 8dc766f
  57447: c8d54a0
  57439: af9b0bd
v: v3
  • Loading branch information
Bryan Wu authored and Linus Torvalds committed Jun 8, 2007
1 parent 31647d6 commit 8610284
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c8d8170feb824875baf68f8aaecb181a6500ce81
refs/heads/master: 85f6038f2170e3335dda09c3dfb0f83110e87019
5 changes: 5 additions & 0 deletions trunk/fs/ramfs/file-nommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,11 @@ static int ramfs_nommu_setattr(struct dentry *dentry, struct iattr *ia)
unsigned int old_ia_valid = ia->ia_valid;
int ret = 0;

/* POSIX UID/GID verification for setting inode attributes */
ret = inode_change_ok(inode, ia);
if (ret)
return ret;

/* by providing our own setattr() method, we skip this quotaism */
if ((old_ia_valid & ATTR_UID && ia->ia_uid != inode->i_uid) ||
(old_ia_valid & ATTR_GID && ia->ia_gid != inode->i_gid))
Expand Down

0 comments on commit 8610284

Please sign in to comment.