Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 71137
b: refs/heads/master
c: 1ac564e
h: refs/heads/master
i:
  71135: 080c9a0
v: v3
  • Loading branch information
Jeff Layton authored and Linus Torvalds committed Oct 18, 2007
1 parent 1edeaf5 commit f9f0622
Show file tree
Hide file tree
Showing 2 changed files with 9 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: ef1d7151d2901295278d5aada39c547ed8601419
refs/heads/master: 1ac564ecabc777636cf4eb88840802d7dc57d286
8 changes: 8 additions & 0 deletions trunk/fs/ecryptfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -914,6 +914,14 @@ static int ecryptfs_setattr(struct dentry *dentry, struct iattr *ia)
if (rc < 0)
goto out;
}

/*
* mode change is for clearing setuid/setgid bits. Allow lower fs
* to interpret this in its own way.
*/
if (ia->ia_valid & (ATTR_KILL_SUID | ATTR_KILL_SGID))
ia->ia_valid &= ~ATTR_MODE;

rc = notify_change(lower_dentry, ia);
out:
fsstack_copy_attr_all(inode, lower_inode, NULL);
Expand Down

0 comments on commit f9f0622

Please sign in to comment.