Skip to content

Commit d4b46f3

Browse files
authored
Merge pull request ceph#65441 from linuxbox2/wip-72915
rgw: fix policy enforcement for GetObjectAttributes
2 parents 31eb5e7 + 16ab79d commit d4b46f3

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/rgw/rgw_op.cc

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6235,10 +6235,7 @@ int RGWGetObjAttrs::verify_permission(optional_yield y)
62356235
rgw_iam_add_objtags(this, s, has_s3_existing_tag, has_s3_resource_tag);
62366236
}
62376237

6238-
/* XXXX the following conjunction should be &&--but iam_action2 is currently not
6239-
* hooked up and always fails (but should succeed if the requestor has READ
6240-
* acess to the object) */
6241-
perm = (verify_object_permission(this, s, iam_action1) || /* && */
6238+
perm = (verify_object_permission(this, s, iam_action1) &&
62426239
verify_object_permission(this, s, iam_action2));
62436240
}
62446241

src/rgw/rgw_op.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2224,7 +2224,6 @@ class RGWGetHealthCheck : public RGWOp {
22242224
}
22252225
};
22262226

2227-
22282227
class RGWDeleteMultiObj : public RGWOp {
22292228
/**
22302229
* Handles the deletion of an individual object and uses

0 commit comments

Comments
 (0)