Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 200362
b: refs/heads/master
c: 2f26afb
h: refs/heads/master
v: v3
  • Loading branch information
Shi Weihua authored and Chris Mason committed Jun 11, 2010
1 parent bca41db commit be2b696
Show file tree
Hide file tree
Showing 2 changed files with 4 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: cf1e99a4e0daa4a5623cd71108509823b9ff2d30
refs/heads/master: 2f26afba46f0ebf155cf9be746496a0304a5b7cf
3 changes: 3 additions & 0 deletions trunk/fs/btrfs/acl.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,9 @@ static int btrfs_xattr_acl_set(struct dentry *dentry, const char *name,
int ret;
struct posix_acl *acl = NULL;

if (!is_owner_or_cap(dentry->d_inode))
return -EPERM;

if (value) {
acl = posix_acl_from_xattr(value, size);
if (acl == NULL) {
Expand Down

0 comments on commit be2b696

Please sign in to comment.