Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mds: fix Session::check_access() #9769

Merged
merged 1 commit into from Jun 28, 2016
Merged

Conversation

ukernel
Copy link
Contributor

@ukernel ukernel commented Jun 17, 2016

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

@ukernel ukernel added bug-fix cephfs Ceph File System labels Jun 17, 2016
@gregsfortytwo
Copy link
Member

This looks good to me (SessionMap is the only one using these extra params), but please add a doc comment to the make_path_string() declaration...its params have already been misused!

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>
@jcsp
Copy link
Contributor

jcsp commented Jun 27, 2016

Will include on test branch

@gregsfortytwo
Copy link
Member

@gregsfortytwo gregsfortytwo merged commit aa7e487 into ceph:master Jun 28, 2016
@ukernel ukernel deleted the wip-16358 branch June 29, 2016 02:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants