From ea06929ea3dbcf897bb4f6c66db4bb36c1b2ac49 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= Date: Sat, 19 Oct 2013 21:15:59 +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 dc272ac..d9291f9 100644 --- a/src/VfsNs.cpp +++ b/src/VfsNs.cpp @@ -338,9 +338,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