From: Sage Weil Date: Fri, 26 Jul 2013 00:58:47 +0000 (-0700) Subject: mon/MonCap: match param for entity (not name) X-Git-Tag: v0.67-rc3~53 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=dfabc61c2cf8cba246f431ee1df86c850c3e7e6e;p=ceph.git mon/MonCap: match param for entity (not name) Signed-off-by: Sage Weil Reviewed-by: Dan Mick --- diff --git a/src/mon/MonCap.cc b/src/mon/MonCap.cc index 8e35b775247c..7ac8d142d87a 100644 --- a/src/mon/MonCap.cc +++ b/src/mon/MonCap.cc @@ -149,7 +149,7 @@ void MonCapGrant::expand_profile(entity_name_t name) const profile_grants.push_back(MonCapGrant("osd create")); profile_grants.push_back(MonCapGrant("osd crush set")); // FIXME: constraint this further? profile_grants.push_back(MonCapGrant("auth add")); - profile_grants.back().command_args["name"] = StringConstraint("", "osd."); + profile_grants.back().command_args["entity"] = StringConstraint("", "osd."); profile_grants.back().command_args["caps_mon"] = StringConstraint("allow profile osd", ""); profile_grants.back().command_args["caps_osd"] = StringConstraint("allow *", ""); } @@ -158,7 +158,7 @@ void MonCapGrant::expand_profile(entity_name_t name) const profile_grants.push_back(MonCapGrant("osd", MON_CAP_R)); // read osdmap profile_grants.push_back(MonCapGrant("mon getmap")); profile_grants.push_back(MonCapGrant("auth get-or-create")); // FIXME: this can expose other mds keys - profile_grants.back().command_args["name"] = StringConstraint("", "mds."); + profile_grants.back().command_args["entity"] = StringConstraint("", "mds."); profile_grants.back().command_args["caps_mon"] = StringConstraint("allow profile mds", ""); profile_grants.back().command_args["caps_osd"] = StringConstraint("allow rwx", ""); profile_grants.back().command_args["caps_mds"] = StringConstraint("allow", "");