]> 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)
committerCasey Bodley <cbodley@redhat.com>
Thu, 7 Mar 2024 16:12:54 +0000 (11:12 -0500)
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 f6011dbe5c9dd309e98b63ba0ece6115adae4edb..445119dd4aee7b0d69c90cb5526b98a88ecb08df 100644 (file)
@@ -8983,7 +8983,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;
   }