From: Xiubo Li <xiubli@xxxxxxxxxx> The code are refered to the userspace libcephfs: https://github.com/ceph/ceph/pull/48027. Xiubo Li (5): ceph: save the cap_auths in client when session being opened ceph: add ceph_mds_check_access() helper support ceph: check the cephx mds auth access for setattr ceph: check the cephx mds auth access for open ceph: check the cephx mds auth access for async dirop fs/ceph/dir.c | 27 +++++ fs/ceph/file.c | 59 +++++++++- fs/ceph/inode.c | 45 ++++++-- fs/ceph/mds_client.c | 265 ++++++++++++++++++++++++++++++++++++++++++- fs/ceph/mds_client.h | 24 ++++ 5 files changed, 408 insertions(+), 12 deletions(-) -- 2.41.0