]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw: evaluate the correct bucket action for GetACL bucket operation
authorAbhishek Lekshmanan <abhishek@suse.com>
Wed, 16 Aug 2017 13:49:55 +0000 (15:49 +0200)
committerAbhishek Lekshmanan <abhishek@suse.com>
Wed, 16 Aug 2017 13:49:55 +0000 (15:49 +0200)
We currently evaluate s3:GetObjectAcl instead of s3:GetBucketAcl for
getting BucketACL

Fixes: http://tracker.ceph.com/issues/21013
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
src/rgw/rgw_op.cc

index 985076c7224bd497205c4100d9fcced1ae802e42..4de382cd48d30c3b07da5e439aa38461015b9cf2 100644 (file)
@@ -4498,7 +4498,7 @@ int RGWGetACLs::verify_permission()
                                    rgw::IAM::s3GetObjectAcl :
                                    rgw::IAM::s3GetObjectVersionAcl);
   } else {
-    perm = verify_bucket_permission(s, rgw::IAM::s3GetObjectAcl);
+    perm = verify_bucket_permission(s, rgw::IAM::s3GetBucketAcl);
   }
   if (!perm)
     return -EACCES;