Skip to content

Commit f73e83a

Browse files
committed
rgw: GetObjectAttributes iam policy policy hooks
Signed-off-by: Matt Benjamin <[email protected]>
1 parent ed6134c commit f73e83a

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/rgw/rgw_iam_policy.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ static const actpair actpairs[] =
9494
{ "s3:GetPublicAccessBlock", s3GetPublicAccessBlock },
9595
{ "s3:GetObjectAcl", s3GetObjectAcl },
9696
{ "s3:GetObject", s3GetObject },
97+
{ "s3:GetObjectAttributes", s3GetObjectAttributes },
9798
{ "s3:GetObjectTorrent", s3GetObjectTorrent },
9899
{ "s3:GetObjectVersionAcl", s3GetObjectVersionAcl },
99100
{ "s3:GetObjectVersion", s3GetObjectVersion },
@@ -1335,6 +1336,7 @@ const char* action_bit_string(uint64_t action) {
13351336

13361337
case s3ListBucketVersions:
13371338
return "s3:ListBucketVersions";
1339+
13381340
case s3ListAllMyBuckets:
13391341
return "s3:ListAllMyBuckets";
13401342

@@ -1479,6 +1481,9 @@ const char* action_bit_string(uint64_t action) {
14791481
case s3BypassGovernanceRetention:
14801482
return "s3:BypassGovernanceRetention";
14811483

1484+
case s3GetObjectAttributes:
1485+
return "s3:GetObjectAttributes";
1486+
14821487
case s3DescribeJob:
14831488
return "s3:DescribeJob";
14841489

src/rgw/rgw_iam_policy.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ inline int op_to_perm(std::uint64_t op) {
249249
case s3GetObjectVersionTagging:
250250
case s3GetObjectRetention:
251251
case s3GetObjectLegalHold:
252+
case s3GetObjectAttributes:
252253
case s3ListAllMyBuckets:
253254
case s3ListBucket:
254255
case s3ListBucketMultipartUploads:

0 commit comments

Comments
 (0)