]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: add an inspection to the field of type when assigning user caps 6051/head
authorclever215 <wu.kongming@h3c.com>
Wed, 25 Nov 2015 16:31:48 +0000 (11:31 -0500)
committerclever215 <wu.kongming@h3c.com>
Wed, 25 Nov 2015 16:33:09 +0000 (11:33 -0500)
commit13a12a5364dc4fa0623bfd543c081a616b32682d
tree1833133d593a352504c69570413fa13636244298
parentf1ead76f80cc3d078778080c35a6427256874062
rgw: add an inspection to the field of type when assigning user caps

Bug #13096

This modification adds the check to the field of type of a user's capality while previous versions set it any value. i.e. we limit the option of types to the 9 certain values, which are "users|buckets|metadata|usage|zone|bilog|mdlog|datalog|ops These 9 choosens are found in ceph documents and in source codes.

Signed-off-by: Kongming Wu <wu.kongming@h3c.com>
src/rgw/rgw_common.cc
src/rgw/rgw_common.h