]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: evaluate the correct bucket action for GetACL bucket operation 17117/head
authorAbhishek Lekshmanan <abhishek@suse.com>
Wed, 16 Aug 2017 13:49:55 +0000 (15:49 +0200)
committerAbhishek Lekshmanan <abhishek@suse.com>
Mon, 21 Aug 2017 16:18:31 +0000 (18:18 +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>
(cherry picked from commit 0e6b4f7862aacb2745e11cd7dbd16bcbec079bab)

src/rgw/rgw_op.cc

index a4694e3df1209c9e0d09a93792a0bd604f96608e..f84b02f03068ff78f5243da1b844ead059a975f6 100644 (file)
@@ -4485,7 +4485,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;