-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
osd/OSDCap: allow rbd.metadata_list method under rbd-read-only profile
This was missed in commit acc447d ("osd/OSDCap: rbd profile permits use of rbd.metadata_list cls method") which adjusted only "profile rbd" OSD cap. Listing image metadata is an essential part of opening the image and "profile rbd-read-only" OSD cap must allow it too. While at it, constrain the existing grant for rbd profile from "any object in the pool" to just "rbd_info object in the global namespace of the pool" as this is where pool-level image metadata actually lives. Fixes: https://tracker.ceph.com/issues/61382 Signed-off-by: Ilya Dryomov <idryomov@gmail.com> (cherry picked from commit b580cda)
- Loading branch information
Showing
2 changed files
with
48 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters