]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: cleanup for RGWDeleteObj::verify_permission() 26310/head
authorEnming.Zhang <zvampirem77@gmail.com>
Tue, 27 Nov 2018 11:41:56 +0000 (06:41 -0500)
committerPrashant D <pdhange@redhat.com>
Wed, 6 Feb 2019 23:19:31 +0000 (18:19 -0500)
commit2a13868621b51a33903287664c58a85bb2393025
tree730a5a67764f753381e4c0fd687ed7a80412cbc8
parent3874b2038288f28f067e32b53701ffd5a1fe5720
rgw: cleanup for RGWDeleteObj::verify_permission()

- if the 'Effect' field of user policy and bucket policy
  is set to 'Allow', RGWDeleteObj::verify_permission()
  should return 0 instead of true;

- as the same with bucket policy, if the 'Effect' field
  of user policy is set to 'Deny', RGWDeleteObj::verify_permission()
  should return -EACCES instead of false;

Signed-off-by: Enming.Zhang <zvampirem77@gmail.com>
(cherry picked from commit 86334645cf96c03515d30804e2df0bdf22916fb5)

Conflicts:
src/rgw/rgw_op.cc : Resolved in verify_permission
src/rgw/rgw_op.cc