as it's too late. Session access authorization already happens
before new caps are issued.
Fixes: https://tracker.ceph.com/issues/56067
Signed-off-by: Ramana Raja <rraja@redhat.com>
(cherry picked from commit
96305b5eef06e2b379ed95a086edf9e4809a7e70)
if (!dirty && !change_max)
return false;
- Session *session = mds->get_session(m);
- if (session->check_access(in, MAY_WRITE,
- m->caller_uid, m->caller_gid, NULL, 0, 0) < 0) {
- dout(10) << "check_access failed, dropping cap update on " << *in << dendl;
- return false;
- }
-
// do the update.
EUpdate *le = new EUpdate(mds->mdlog, "cap update");
mds->mdlog->start_entry(le);