Skip to content

Commit ebbb0ef

Browse files
Christoph HellwigAl Viro
authored andcommitted
9p: do no return 0 from ->check_acl without actually checking
If we do not want to use ACLs we at least need to perform normal Unix permission checks. From the comment I'm not quite sure that's what is intended, but if 0p wants to do permission checks entirely on the server it needs to do so in ->permission, not in ->check_acl. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent e77819e commit ebbb0ef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎fs/9p/acl.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ int v9fs_check_acl(struct inode *inode, int mask)
108108
* On access = client and acl = on mode get the acl
109109
* values from the server
110110
*/
111-
return 0;
111+
return -EAGAIN;
112112
}
113113
acl = v9fs_get_cached_acl(inode, ACL_TYPE_ACCESS);
114114

0 commit comments

Comments
 (0)