Lines Matching refs:idmap_path

94   const std::string idmap_path = Idmap::CanonicalIdmapPathFor(kIdmapCacheDir, overlay_path);  in removeIdmap()  local
95 if (!UidHasWriteAccessToPath(uid, idmap_path)) { in removeIdmap()
98 idmap_path.c_str(), uid)); in removeIdmap()
100 if (unlink(idmap_path.c_str()) != 0) { in removeIdmap()
102 return error("failed to unlink " + idmap_path + ": " + strerror(errno)); in removeIdmap()
115 const std::string idmap_path = Idmap::CanonicalIdmapPathFor(kIdmapCacheDir, overlay_path); in verifyIdmap() local
116 std::ifstream fin(idmap_path); in verifyIdmap()
121 LOG(WARNING) << "failed to parse idmap header of '" << idmap_path << "'"; in verifyIdmap()
145 LOG(WARNING) << "idmap '" << idmap_path in verifyIdmap()
161 const std::string idmap_path = Idmap::CanonicalIdmapPathFor(kIdmapCacheDir, overlay_path); in createIdmap() local
163 if (!UidHasWriteAccessToPath(uid, idmap_path)) { in createIdmap()
165 idmap_path.c_str(), uid)); in createIdmap()
172 unlink(idmap_path.c_str()); in createIdmap()
191 std::ofstream fout(idmap_path); in createIdmap()
193 return error("failed to open idmap path " + idmap_path); in createIdmap()
200 unlink(idmap_path.c_str()); in createIdmap()
201 return error("failed to write to idmap path " + idmap_path); in createIdmap()
204 *_aidl_return = idmap_path; in createIdmap()
387 const std::string idmap_path = Idmap::CanonicalIdmapPathFor(kIdmapCacheDir, overlay_path); in deleteFabricatedOverlay() local
388 if (!UidHasWriteAccessToPath(uid, idmap_path)) { in deleteFabricatedOverlay()
391 idmap_path.c_str(), uid)); in deleteFabricatedOverlay()
399 if (unlink(idmap_path.c_str()) != 0) { in deleteFabricatedOverlay()
401 return error("failed to unlink " + idmap_path + ": " + strerror(errno)); in deleteFabricatedOverlay()
412 const auto idmap_path = Idmap::CanonicalIdmapPathFor(kIdmapCacheDir, overlay_path); in dumpIdmap() local
413 std::ifstream fin(idmap_path); in dumpIdmap()