Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
rgw: evaluate the correct bucket action for GetACL bucket operation
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>
  • Loading branch information
theanalyst committed Aug 16, 2017
1 parent 51ccc5f commit 0e6b4f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rgw/rgw_op.cc
Expand Up @@ -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;
Expand Down

0 comments on commit 0e6b4f7

Please sign in to comment.