diff options
author | Steve French <sfrench@us.ibm.com> | 2007-10-31 00:54:42 -0400 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2007-10-31 00:54:42 -0400 |
commit | 953f868138dbf4300196780379476ab9f07f263a (patch) | |
tree | e0dfbaebe02e75094033425fc4274328c5928dd0 /fs/cifs/cifsproto.h | |
parent | e01b64001359034d04c695388870936ed3d1b56b (diff) |
[CIFS] Don't request too much permission when reading an ACL
We were requesting GENERIC_READ but that fails when we do not have
read permission on the file (even if we could read the ACL).
Also move the dump access control entry code into debug ifdef.
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifsproto.h')
-rw-r--r-- | fs/cifs/cifsproto.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/cifs/cifsproto.h b/fs/cifs/cifsproto.h index 88c02ac97c3f..1ffe25592b25 100644 --- a/fs/cifs/cifsproto.h +++ b/fs/cifs/cifsproto.h | |||
@@ -96,6 +96,8 @@ extern int cifs_get_inode_info_unix(struct inode **pinode, | |||
96 | const unsigned char *search_path, | 96 | const unsigned char *search_path, |
97 | struct super_block *sb, int xid); | 97 | struct super_block *sb, int xid); |
98 | extern void acl_to_uid_mode(struct inode *inode, const char *search_path); | 98 | extern void acl_to_uid_mode(struct inode *inode, const char *search_path); |
99 | extern int mode_to_acl(struct inode *inode, const char *path); | ||
100 | |||
99 | extern int cifs_mount(struct super_block *, struct cifs_sb_info *, char *, | 101 | extern int cifs_mount(struct super_block *, struct cifs_sb_info *, char *, |
100 | const char *); | 102 | const char *); |
101 | extern int cifs_umount(struct super_block *, struct cifs_sb_info *); | 103 | extern int cifs_umount(struct super_block *, struct cifs_sb_info *); |