]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: check subuser illegal access parameter. 5313/head
authorguce <guce@h3c.com>
Thu, 23 Jul 2015 01:37:24 +0000 (09:37 +0800)
committerguce <guce@h3c.com>
Thu, 23 Jul 2015 01:37:29 +0000 (09:37 +0800)
commit518c0b377e01fc171712bde148f1a12016dfd2d3
treee273912b96862f6bf64d128b79856964a20c7ada
parent0fa6e5197922dafd3c8736d6c842199051ab9b2b
rgw: check subuser illegal access parameter.

Both empty arguments and illegal parameters, can modify the existing configuration to none permissions.

It should be modified to:
1.empty parameter modify the existing configuration to none permissions.
2.illegal parameter return an error.

test fix:
    before: subuser create or modify, illegal access parameter can modify the existing configuration.
    after changes, do the same procedure, can check for illegal access parameters.

Signed-off-by: guce <guce@h3c.com>
src/rgw/rgw_acl.h [changed mode: 0644->0755]
src/rgw/rgw_rest_user.cc [changed mode: 0644->0755]
src/rgw/rgw_user.cc [changed mode: 0644->0755]
src/rgw/rgw_user.h [changed mode: 0644->0755]