Lines Matching refs:links
233 const std::string& path, const std::vector<std::string>& links) const { in GetDevicePermissions()
236 if (it->Match(path) || std::any_of(links.cbegin(), links.cend(), in GetDevicePermissions()
246 const std::vector<std::string>& links) const { in MakeDevice()
247 auto[mode, uid, gid] = GetDevicePermissions(path, links); in MakeDevice()
251 if (!SelabelLookupFileContextBestMatch(path, links, mode, &secontext)) { in MakeDevice()
348 std::vector<std::string> links; in GetBlockDeviceSymlinks() local
362 links.emplace_back(link_path + "/by-name/" + partition_name_sanitized); in GetBlockDeviceSymlinks()
365 links.emplace_back("/dev/block/by-name/" + partition_name_sanitized); in GetBlockDeviceSymlinks()
370 links.emplace_back("/dev/block/by-name/" + uevent.device_name); in GetBlockDeviceSymlinks()
374 links.emplace_back(link_path + "/" + uevent.path.substr(last_slash + 1)); in GetBlockDeviceSymlinks()
376 return links; in GetBlockDeviceSymlinks()
407 … int major, int minor, const std::vector<std::string>& links) const { in HandleDevice()
409 MakeDevice(devpath, block, major, minor, links); in HandleDevice()
414 for (const auto& link : links) { in HandleDevice()
435 for (const auto& link : links) { in HandleDevice()
471 std::vector<std::string> links; in HandleUevent() local
479 links = GetBlockDeviceSymlinks(uevent); in HandleUevent()
505 HandleDevice(uevent.action, devpath, block, uevent.major, uevent.minor, links); in HandleUevent()