]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: Refactor checking of some ops
authorAdam C. Emerson <aemerson@redhat.com>
Sat, 28 Oct 2017 00:17:52 +0000 (20:17 -0400)
committerAdam C. Emerson <aemerson@redhat.com>
Fri, 5 Jan 2018 21:30:05 +0000 (16:30 -0500)
commitfebd39cf67eb026cf577d72440f5d5b61c98c3ad
tree908d7343bcd4bef3fc0600f117f15e58b7a19650
parentc859483fee526656b6c6cd4d9d0c975cff57b565
rgw: Refactor checking of some ops

Since some operations check the user against the bucket owner in the
absence of a policy, rather than open-coding that everywhere, act like
a proper computer scientist and abstract it.

Fixes: http://tracker.ceph.com/issues/21896
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
(cherry picked from commit 8818a0cb5e699135976e057061fb8e9d99850cd3)
src/rgw/rgw_common.cc
src/rgw/rgw_common.h
src/rgw/rgw_op.cc