]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
client: Add permissions checking to open
authorSam Lang <sam.lang@inktank.com>
Tue, 16 Oct 2012 16:45:26 +0000 (11:45 -0500)
committerSage Weil <sage@inktank.com>
Wed, 17 Oct 2012 01:26:29 +0000 (18:26 -0700)
commit328bf482349485b90911fe8953d8ce5f0769c69e
treeeb86366bec552fc972bd82cec00c9a837a1ba497
parent58020d44c754fc3cdde19cbca248ac398ef6becf
client: Add permissions checking to open

Users of the libcephfs api (fuse in particular)
don't check the mode against the open flags.  This
commit does the proper checks to grant/deny access
to the file.  The check_mode() function constructs
a requested mode based on the flags, and compares that
to the mode of the file.

Signed-off-by: Sam Lang <sam.lang@inktank.com>
configure.ac
src/client/Client.cc
src/client/Client.h
src/client/Inode.cc
src/client/Inode.h
src/client/fuse_ll.cc