fs: port ->permission() to pass mnt_idmap
[linux-block.git] / security / apparmor / domain.c
index 6dd3cc5309bfe5a2daa97c11bcadcd7fbd22ee0c..a8da32fecbe70336ff44b7b6b2ac0e3b1abd0ae0 100644 (file)
@@ -313,7 +313,7 @@ static int aa_xattrs_match(const struct linux_binprm *bprm,
        d = bprm->file->f_path.dentry;
 
        for (i = 0; i < attach->xattr_count; i++) {
-               size = vfs_getxattr_alloc(&init_user_ns, d, attach->xattrs[i],
+               size = vfs_getxattr_alloc(&nop_mnt_idmap, d, attach->xattrs[i],
                                          &value, value_size, GFP_KERNEL);
                if (size >= 0) {
                        u32 index, perm;