]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/MonCap: allow 'profile mgr' to create/update/del auth IDs
authorRamana Raja <rraja@redhat.com>
Wed, 10 Jul 2019 19:03:20 +0000 (00:33 +0530)
committerKotresh HR <khiremat@redhat.com>
Thu, 5 Nov 2020 09:01:10 +0000 (14:31 +0530)
Signed-off-by: Ramana Raja <rraja@redhat.com>
src/mon/MonCap.cc

index f130f95bcc4c3bb849b34412cd7bc106e3fa7976..2dceb5311386e4ae8d9672eb491a83b727b05471 100644 (file)
@@ -201,7 +201,7 @@ void MonCapGrant::expand_profile(const EntityName& name) const
     profile_grants.push_back(MonCapGrant("mds", MON_CAP_R | MON_CAP_W));
     profile_grants.push_back(MonCapGrant("fs", MON_CAP_R | MON_CAP_W));
     profile_grants.push_back(MonCapGrant("osd", MON_CAP_R | MON_CAP_W));
-    profile_grants.push_back(MonCapGrant("auth", MON_CAP_R | MON_CAP_X));
+    profile_grants.push_back(MonCapGrant("auth", MON_CAP_R | MON_CAP_W | MON_CAP_X));
     profile_grants.push_back(MonCapGrant("config-key", MON_CAP_R | MON_CAP_W));
     profile_grants.push_back(MonCapGrant("config", MON_CAP_R | MON_CAP_W));
     // cephadm orchestrator provisions new daemon keys and updates caps