]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.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>
Fri, 16 Feb 2024 10:53:13 +0000 (16:23 +0530)
commit56e0f73afe5fdebf38af339efea0dfde65a4de87
tree6e312514068dc7e78fb3191ffc6ae7b6d12e2230
parentf33cc3303454a5688a2a568caa4067ba4a8dc847
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>
qa/tasks/cephfs/test_admin.py
src/mds/MDSAuthCaps.cc
src/mds/MDSAuthCaps.h