summaryrefslogtreecommitdiffstats
path: root/src/mds/MDSAuthCaps.h
diff options
context:
space:
mode:
authorJohn Spray <john.spray@redhat.com>2015-11-27 13:28:35 +0100
committerJohn Spray <john.spray@redhat.com>2016-01-05 15:05:04 +0100
commit94ee1ead0ae8949f67afe832bc3ddb7ae26f0070 (patch)
tree84f4fc9a2c9929709c6bbb4a2203a252d702ade2 /src/mds/MDSAuthCaps.h
parentmds: fix client root metadata validation (diff)
downloadceph-94ee1ead0ae8949f67afe832bc3ddb7ae26f0070.tar.xz
ceph-94ee1ead0ae8949f67afe832bc3ddb7ae26f0070.zip
mds: add docstring for MDSAuthCaps::path_capable
Signed-off-by: John Spray <john.spray@redhat.com>
Diffstat (limited to 'src/mds/MDSAuthCaps.h')
-rw-r--r--src/mds/MDSAuthCaps.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mds/MDSAuthCaps.h b/src/mds/MDSAuthCaps.h
index 0ecf8ac4a0a..ccf2857b70b 100644
--- a/src/mds/MDSAuthCaps.h
+++ b/src/mds/MDSAuthCaps.h
@@ -95,6 +95,12 @@ struct MDSCapMatch {
const int caller_uid,
const int caller_gid) const;
+ /**
+ * Check whether this path *might* be accessible (actual permission
+ * depends on the stronger check in match()).
+ *
+ * @param target_path filesystem path without leading '/'
+ */
bool match_path(const std::string &target_path) const;
};