]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/MonCap: allow osd, mds to write to cluster log
authorSage Weil <sage@inktank.com>
Wed, 29 May 2013 22:29:55 +0000 (15:29 -0700)
committerDan Mick <dan.mick@inktank.com>
Tue, 4 Jun 2013 00:30:41 +0000 (17:30 -0700)
Signed-off-by: Sage Weil <sage@inktank.com>
src/mon/MonCap.cc

index 1a9be2026035eb367f51f79effcde45a7a88c237..9a53bf2f741cc1826ccc8658ad32ba73ef2ea56a 100644 (file)
@@ -128,10 +128,12 @@ void MonCapGrant::expand_profile(entity_name_t name) const
     profile_grants.push_back(MonCapGrant("osd", MON_CAP_ALL));
     profile_grants.push_back(MonCapGrant("mon", MON_CAP_R));
     profile_grants.push_back(MonCapGrant("pg", MON_CAP_R | MON_CAP_W));
+    profile_grants.push_back(MonCapGrant("log", MON_CAP_W));
   }
   if (profile == "mds") {
     profile_grants.push_back(MonCapGrant("mds", MON_CAP_ALL));
     profile_grants.push_back(MonCapGrant("mon", MON_CAP_R));
+    profile_grants.push_back(MonCapGrant("log", MON_CAP_W));
   }
   if (profile == "osd" || profile == "mds" || profile == "mon") {
     string prefix = string("daemon-private/") + stringify(name) + string("/");