mirror of
https://github.com/ceph/ceph
synced 2025-03-11 02:39:05 +00:00
mds: calculate path in check_access()
Signed-off-by: Jashan Kamboj <jashank42@gmail.com>
This commit is contained in:
parent
e24a9cbffd
commit
51f1028ac4
@ -2116,6 +2116,9 @@ bool Server::check_access(MDRequestRef& mdr, CInode *in, unsigned mask)
|
||||
// FIXME: behave with hard links
|
||||
string path;
|
||||
|
||||
//path calculation
|
||||
in->make_path_string(path, false, in->get_projected_parent_dn());
|
||||
|
||||
// FIXME: it depends on the inode!
|
||||
if (s->auth_caps.is_capable(path, in->inode.uid, in->inode.gid, in->inode.mode,
|
||||
uid, mask)) {
|
||||
|
Loading…
Reference in New Issue
Block a user