VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Christian Brauner <christian.brauner@ubuntu.com> 2021-01-21 14:19:25 +0100 committer: Christian Brauner <christian.brauner@ubuntu.com> 2021-01-24 14:27:16 +0100 commit: 21cb47be6fb9ece7e6ee63f6780986faa384a77c parent: 47291baa8ddfdae10663624ff0a15ab165952708
Commit Summary:
inode: make init and permission helpers idmapped mount aware
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/fs/crypto/policy.c b/fs/crypto/policy.c
index a51cef6bd27f..ed3d623724cd 100644
--- a/fs/crypto/policy.c
+++ b/fs/crypto/policy.c
@@ -465,7 +465,7 @@ int fscrypt_ioctl_set_policy(struct file *filp, const void __user *arg)
 		return -EFAULT;
 	policy.version = version;
 
-	if (!inode_owner_or_capable(inode))
+	if (!inode_owner_or_capable(&init_user_ns, inode))
 		return -EACCES;
 
 	ret = mnt_want_write_file(filp);