Commit d124b60a authored by Andreas Gruenbacher's avatar Andreas Gruenbacher Committed by root
Browse files

vfs: pass all mask flags check_acl and posix_acl_permission

parent 8522ca58
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -227,8 +227,6 @@ static int acl_permission_check(struct inode *inode, int mask)
{
	unsigned int mode = inode->i_mode;

	mask &= MAY_READ | MAY_WRITE | MAY_EXEC | MAY_NOT_BLOCK;

	if (current_user_ns() != inode_userns(inode))
		goto other_perms;

+2 −0
Original line number Diff line number Diff line
@@ -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;
	int found = 0;

	want &= MAY_READ | MAY_WRITE | MAY_EXEC | MAY_NOT_BLOCK;

	FOREACH_ACL_ENTRY(pa, acl, pe) {
                switch(pa->e_tag) {
                        case ACL_USER_OBJ: