Message ID | 20220104140414.155198-9-brauner@kernel.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | ceph: support idmapped mounts | expand |
diff --git a/fs/ceph/inode.c b/fs/ceph/inode.c index f648aecc5827..d5cecc3519fa 100644 --- a/fs/ceph/inode.c +++ b/fs/ceph/inode.c @@ -2307,7 +2307,7 @@ int ceph_permission(struct user_namespace *mnt_userns, struct inode *inode, err = ceph_do_getattr(inode, CEPH_CAP_AUTH_SHARED, false); if (!err) - err = generic_permission(&init_user_ns, inode, mask); + err = generic_permission(mnt_userns, inode, mask); return err; }