From: John Spray Date: Thu, 15 Jun 2017 16:22:06 +0000 (-0400) Subject: mon: more power for "profile mgr" X-Git-Tag: v12.1.0~36^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=75c4e854f82bb6cf083cd0dff5d9b06e5c6959f2;p=ceph.git mon: more power for "profile mgr" mgr modules are meant to be able to do management type operations, even though they're mostly currently doing monitoring. Signed-off-by: John Spray --- diff --git a/src/mon/MonCap.cc b/src/mon/MonCap.cc index 997bb15ba842..af98eb2d863a 100644 --- a/src/mon/MonCap.cc +++ b/src/mon/MonCap.cc @@ -170,9 +170,9 @@ void MonCapGrant::expand_profile_mon(const EntityName& name) const } if (profile == "mgr") { profile_grants.push_back(MonCapGrant("mgr", MON_CAP_ALL)); - profile_grants.push_back(MonCapGrant("log", MON_CAP_W)); - profile_grants.push_back(MonCapGrant("mon", MON_CAP_R)); - profile_grants.push_back(MonCapGrant("mds", MON_CAP_R)); + profile_grants.push_back(MonCapGrant("log", MON_CAP_R | MON_CAP_W)); + profile_grants.push_back(MonCapGrant("mon", MON_CAP_R | MON_CAP_W)); + profile_grants.push_back(MonCapGrant("mds", 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("config-key", MON_CAP_R | MON_CAP_W));