From 1e9fceabc457dd46a622710c6ec81cfe30a2656e Mon Sep 17 00:00:00 2001 From: Florian Florensa Date: Mon, 22 Jun 2020 12:53:40 +0200 Subject: [PATCH] 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 --- src/osd/OSDCap.cc | 2 ++ 1 file changed, 2 insertions(+) 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"), -- 2.47.3