Skip to content

Commit

Permalink
Fix btrfs when ACLs are configured out
Browse files Browse the repository at this point in the history
... otherwise generic_permission() will allow *anything* for all
files you don't own and that have some group permissions.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
  • Loading branch information
Al Viro authored and Chris Mason committed Jun 10, 2009
1 parent 524724e commit 7df336e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 0 additions & 5 deletions fs/btrfs/acl.c
Original file line number Diff line number Diff line change
Expand Up @@ -351,9 +351,4 @@ int btrfs_init_acl(struct inode *inode, struct inode *dir)
return 0;
}

int btrfs_check_acl(struct inode *inode, int mask)
{
return 0;
}

#endif /* CONFIG_FS_POSIX_ACL */
4 changes: 4 additions & 0 deletions fs/btrfs/ctree.h
Original file line number Diff line number Diff line change
Expand Up @@ -2301,7 +2301,11 @@ int btrfs_parse_options(struct btrfs_root *root, char *options);
int btrfs_sync_fs(struct super_block *sb, int wait);

/* acl.c */
#ifdef CONFIG_FS_POSIX_ACL
int btrfs_check_acl(struct inode *inode, int mask);
#else
#define btrfs_check_acl NULL
#endif
int btrfs_init_acl(struct inode *inode, struct inode *dir);
int btrfs_acl_chmod(struct inode *inode);

Expand Down

0 comments on commit 7df336e

Please sign in to comment.