From: Florian Florensa Date: Mon, 22 Jun 2020 10:53:40 +0000 (+0200) Subject: osd/OSDCap: rbd profile permits use of "rbd_info" X-Git-Tag: v16.1.0~1867^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F35699%2Fhead;p=ceph.git osd/OSDCap: rbd profile permits use of "rbd_info" User restricted to a namespace needs to be able to read rbd_info in default namespace in order to create volumes. Fixes: https://tracker.ceph.com/issues/46139 Signed-off-by: Florian Florensa --- diff --git a/src/osd/OSDCap.cc b/src/osd/OSDCap.cc index aaac7bd2b050..3b73f6e363e7 100644 --- a/src/osd/OSDCap.cc +++ b/src/osd/OSDCap.cc @@ -333,6 +333,8 @@ void OSDCapGrant::expand_profile() if (profile.name == "rbd") { // RBD read-write grant + profile_grants.emplace_back(OSDCapMatch(string(), "rbd_info"), + OSDCapSpec(osd_rwxa_t(OSD_CAP_R))); profile_grants.emplace_back(OSDCapMatch(string(), "rbd_children"), OSDCapSpec(osd_rwxa_t(OSD_CAP_CLS_R))); profile_grants.emplace_back(OSDCapMatch(string(), "rbd_mirroring"),