|
@@ -218,6 +218,8 @@ posix_acl_permission(struct inode *inode, const struct posix_acl *acl, int want)
|
|
const struct posix_acl_entry *pa, *pe, *mask_obj;
|
|
const struct posix_acl_entry *pa, *pe, *mask_obj;
|
|
int found = 0;
|
|
int found = 0;
|
|
|
|
|
|
|
|
+ want &= MAY_READ | MAY_WRITE | MAY_EXEC | MAY_NOT_BLOCK;
|
|
|
|
+
|
|
FOREACH_ACL_ENTRY(pa, acl, pe) {
|
|
FOREACH_ACL_ENTRY(pa, acl, pe) {
|
|
switch(pa->e_tag) {
|
|
switch(pa->e_tag) {
|
|
case ACL_USER_OBJ:
|
|
case ACL_USER_OBJ:
|