diff options
author | Al Viro <viro@ZenIV.linux.org.uk> | 2009-06-10 11:36:43 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2009-06-10 11:36:43 -0400 |
commit | 7df336ec1266dccbb253bac52c529d3dcc7c22d0 (patch) | |
tree | f52acd46f2db0886669d18494a5e7e0f885b2fb5 /fs/btrfs/ctree.h | |
parent | 524724ed1f224875a117be593540591ed050c73d (diff) |
Fix btrfs when ACLs are configured out
... 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>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index 4d6e0b6f21ea..03441a99ea38 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h | |||
@@ -2301,7 +2301,11 @@ int btrfs_parse_options(struct btrfs_root *root, char *options); | |||
2301 | int btrfs_sync_fs(struct super_block *sb, int wait); | 2301 | int btrfs_sync_fs(struct super_block *sb, int wait); |
2302 | 2302 | ||
2303 | /* acl.c */ | 2303 | /* acl.c */ |
2304 | #ifdef CONFIG_FS_POSIX_ACL | ||
2304 | int btrfs_check_acl(struct inode *inode, int mask); | 2305 | int btrfs_check_acl(struct inode *inode, int mask); |
2306 | #else | ||
2307 | #define btrfs_check_acl NULL | ||
2308 | #endif | ||
2305 | int btrfs_init_acl(struct inode *inode, struct inode *dir); | 2309 | int btrfs_init_acl(struct inode *inode, struct inode *dir); |
2306 | int btrfs_acl_chmod(struct inode *inode); | 2310 | int btrfs_acl_chmod(struct inode *inode); |
2307 | 2311 | ||