]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ceph: allow idmapped set_acl inode op
authorChristian Brauner <brauner@kernel.org>
Mon, 7 Aug 2023 13:26:24 +0000 (15:26 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Fri, 3 Nov 2023 22:28:34 +0000 (23:28 +0100)
Enable ceph_set_acl() to handle idmapped mounts. This is just a matter
of passing down the mount's idmapping.

Signed-off-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/acl.c

index 295db55e4eeecce141831e4523e7d9b5347565a4..1564eacc253dfd42a91d8046a1c8c7688ba691b2 100644 (file)
@@ -107,7 +107,7 @@ int ceph_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
        case ACL_TYPE_ACCESS:
                name = XATTR_NAME_POSIX_ACL_ACCESS;
                if (acl) {
-                       ret = posix_acl_update_mode(&nop_mnt_idmap, inode,
+                       ret = posix_acl_update_mode(idmap, inode,
                                                    &new_mode, &acl);
                        if (ret)
                                goto out;