From 75c4e854f82bb6cf083cd0dff5d9b06e5c6959f2 Mon Sep 17 00:00:00 2001 From: John Spray Date: Thu, 15 Jun 2017 12:22:06 -0400 Subject: [PATCH] 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 --- src/mon/MonCap.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)); -- 2.47.3