From bd2948f456840518df71200b0234f401e9b1077a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= Date: Fri, 18 Oct 2013 10:06:03 +0200 Subject: [PATCH] Parent directory permissions are enough for extendedStat(). --- src/VfsNs.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/VfsNs.cpp b/src/VfsNs.cpp index b043e08..df597e3 100644 --- a/src/VfsNs.cpp +++ b/src/VfsNs.cpp @@ -337,9 +337,6 @@ ExtendedStat VfsCatalog::extendedStat(const std::string& path, bool follow) thro // use the retrieved xattrs vfsUpdateExtendedStat(meta, xattrs); - if (checkPermissions(this->secCtx_, meta.acl, meta.stat, S_IREAD) != 0) - vfsThrow(EACCES, "not enough permissions for '%s' to read '%s'", clientName.c_str(), meta.name.c_str()); - #if 0 // XXX: black magic // dmlite tests require proper count in st_nlink, -- 1.8.2.3