]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: policy: reuse eval_principal to evaluate the policy principal 36303/head
authorAbhishek Lekshmanan <abhishek@suse.com>
Mon, 27 Jul 2020 14:58:30 +0000 (16:58 +0200)
committerAbhishek Lekshmanan <abhishek@suse.com>
Mon, 27 Jul 2020 14:58:30 +0000 (16:58 +0200)
commit1843f2dca853f97c6c9b4196eaf27581705be0e2
tree8d06a63fbc6eadf1dbe2a0f73f32dfc489d1cd1f
parent8b43d1afdaa605f0ce431c8773ade97a221f9af4
rgw: policy: reuse eval_principal to evaluate the policy principal

Since the other edge case when no Principal or a NotPrincipal is supplied also
must be accounted for, which is already done in eval_principal function. Also
reraising the error as Effect::Pass in line with the previous output, though an
Effect::Deny would also work here.

Fixes: https://tracker.ceph.com/issues/46078
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
src/rgw/rgw_iam_policy.cc