]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw_file: return of RGWFileHandle::FLAG_EXACT_MATCH 13607/head
authorMatt Benjamin <mbenjamin@redhat.com>
Thu, 23 Feb 2017 15:21:38 +0000 (10:21 -0500)
committerMatt Benjamin <mbenjamin@redhat.com>
Thu, 23 Feb 2017 15:55:51 +0000 (10:55 -0500)
commit70ef7d45e0abf2661bd4e23161d4e70cf5178079
treecca238dd7dbd593053c9cb076530379c52bf3f7a
parentdea8d1ee373399a21851690a9753388b659b8ede
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>
src/include/rados/rgw_file.h
src/rgw/rgw_file.cc