mirror of
https://github.com/ceph/ceph
synced 2024-12-25 21:03:31 +00:00
mon/MonCap: allow osd, mds to write to cluster log
Signed-off-by: Sage Weil <sage@inktank.com>
This commit is contained in:
parent
9809371855
commit
74f5ea44a6
@ -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("/");
|
||||
|
Loading…
Reference in New Issue
Block a user