]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mds/MDSAuthCaps: allow adding multiple caps via "fs auth" cmd
authorRishabh Dave <ridave@redhat.com>
Thu, 25 Jan 2024 11:20:29 +0000 (16:50 +0530)
committerRishabh Dave <ridave@redhat.com>
Mon, 9 Sep 2024 13:50:11 +0000 (19:20 +0530)
commit41593e9f3411dd1f32bafde09ac78de246cbad52
tree621b445b7473835797803096a5e34c4c253ceb4e
parent5147d3e85b13ae094cbbb080a083380f4a28549b
mds/MDSAuthCaps: allow adding multiple caps via "fs auth" cmd

When multiple caps are passed to "ceph fs authorize" command, the
command hangs because the MON crashes due to this command. Underlying
code assumes that only one cap can be passed at a time by the user
through the "ceph fs authorize" command. "ceph_assert()" checks if only
one cap is passed. If not, the code crashes.

Fixes: https://tracker.ceph.com/issues/64127
Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit 56e0f73afe5fdebf38af339efea0dfde65a4de87)
qa/tasks/cephfs/test_admin.py
src/mds/MDSAuthCaps.cc
src/mds/MDSAuthCaps.h