]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: policy: reuse eval_principal to evaluate the policy principal 36637/head
authorAbhishek Lekshmanan <abhishek@suse.com>
Mon, 27 Jul 2020 14:58:30 +0000 (16:58 +0200)
committerNathan Cutler <ncutler@suse.com>
Fri, 14 Aug 2020 15:12:28 +0000 (17:12 +0200)
commit8eac78471e4db2e217fc71d4bd5958a1879f67bd
tree687d510543a8e90e629217eec618b9925a38ae22
parent6706e0725d409080dccb9cbf02140fb7530be72e
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>
(cherry picked from commit 1843f2dca853f97c6c9b4196eaf27581705be0e2)
src/rgw/rgw_iam_policy.cc