]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw: fix the op in GetBucketPublicAccessBlock verify_permission
authorSeena Fallah <seenafallah@gmail.com>
Mon, 19 Feb 2024 17:20:44 +0000 (18:20 +0100)
committerKonstantin Shalygin <k0ste@k0ste.ru>
Mon, 27 Jan 2025 18:59:38 +0000 (01:59 +0700)
s3GetBucketPublicAccessBlock needs to be checked for RGWGetBucketPublicAccessBlock operation.

Fixes: https://tracker.ceph.com/issues/64492
Signed-off-by: Seena Fallah <seenafallah@gmail.com>
(cherry picked from commit 54bc5eba002cff04e5c4e25168aeb2408ba100b2)

src/rgw/rgw_op.cc

index 8d6f9a5d8b4b28e08d5abdf102c3d3bc9fc0a02d..84d126ceda8b78c9e658e0a7649d9baf4389047e 100644 (file)
@@ -8797,7 +8797,7 @@ int RGWGetBucketPublicAccessBlock::verify_permission(optional_yield y)
   if (has_s3_resource_tag)
     rgw_iam_add_buckettags(this, s);
 
-  if (!verify_bucket_permission(this, s, rgw::IAM::s3GetBucketPolicy)) {
+  if (!verify_bucket_permission(this, s, rgw::IAM::s3GetBucketPublicAccessBlock)) {
     return -EACCES;
   }