]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw_file: return of RGWFileHandle::FLAG_EXACT_MATCH 13858/head
authorMatt Benjamin <mbenjamin@redhat.com>
Thu, 23 Feb 2017 15:21:38 +0000 (10:21 -0500)
committerNathan Cutler <ncutler@suse.com>
Wed, 8 Mar 2017 12:09:01 +0000 (13:09 +0100)
commitdfaaec0446c3db458bffe1d725518ab4f7cc2fa8
tree13c8b531f6f75edb76df3733ee939911999e144d
parent9b3784d924112d9ba42b2088d5fb2656ef74fadc
rgw_file:  return of RGWFileHandle::FLAG_EXACT_MATCH

Allow callers of rgw_lookup() on objects attested in an
rgw_readdir() callback the ability to bypass exact match in
RGWLibFS::stat_leaf() case 2, but restore exact match enforcement
for general lookups.

This preserves required common_prefix namespace behavior, but
prevents clients from eerily permitting things like "cd sara0" via
partial name match on "sara01."

Fixes: http://tracker.ceph.com/issues/19059
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
(cherry picked from commit 70ef7d45e0abf2661bd4e23161d4e70cf5178079)
src/include/rados/rgw_file.h
src/rgw/rgw_file.cc