]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: fix Session::check_access() 9769/head
authorYan, Zheng <zyan@redhat.com>
Fri, 17 Jun 2016 03:58:13 +0000 (11:58 +0800)
committerYan, Zheng <zyan@redhat.com>
Mon, 20 Jun 2016 03:32:08 +0000 (11:32 +0800)
commita94ef56523a383c44c7a52e473e37a43fa0cb6a2
tree0a0a1cc983134348ed912bfcddb2c07ffcb00ac9
parent94fac96aa0712b44626e29d78b427f37fd756296
mds: fix Session::check_access()

It calls CInode::make_path_string(...) with the second argument is
false. The second argument makes the third argument useless. For
newly created inode, the path string is something like #1xxxxxxxxx.
This can cause the access check to fail.

Fixes: http://tracker.ceph.com/issues/16358
Signed-off-by: Yan, Zheng <zyan@redhat.com>
src/mds/CInode.cc
src/mds/CInode.h
src/mds/SessionMap.cc