]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/OSDCap: rbd profile permits use of "rbd_info" 35699/head
authorFlorian Florensa <fflorensa@online.net>
Mon, 22 Jun 2020 10:53:40 +0000 (12:53 +0200)
committerFlorian Florensa <fflorensa@online.net>
Mon, 22 Jun 2020 11:25:41 +0000 (13:25 +0200)
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 <fflorensa@online.net>
src/osd/OSDCap.cc

index aaac7bd2b05071ac50d2dcde5f34dfa6c1c52845..3b73f6e363e7fdcacc7732dc025901e762d056b9 100644 (file)
@@ -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"),