Lines Matching refs:links
241 const std::string& path, const std::vector<std::string>& links) const { in GetDevicePermissions()
244 if (it->Match(path) || std::any_of(links.cbegin(), links.cend(), in GetDevicePermissions()
254 const std::vector<std::string>& links) const { in MakeDevice()
255 auto[mode, uid, gid] = GetDevicePermissions(path, links); in MakeDevice()
259 if (!SelabelLookupFileContextBestMatch(path, links, mode, &secontext)) { in MakeDevice()
356 std::vector<std::string> links; in GetBlockDeviceSymlinks() local
370 links.emplace_back(link_path + "/by-name/" + partition_name_sanitized); in GetBlockDeviceSymlinks()
373 links.emplace_back("/dev/block/by-name/" + partition_name_sanitized); in GetBlockDeviceSymlinks()
378 links.emplace_back("/dev/block/by-name/" + uevent.device_name); in GetBlockDeviceSymlinks()
382 links.emplace_back(link_path + "/" + uevent.path.substr(last_slash + 1)); in GetBlockDeviceSymlinks()
384 return links; in GetBlockDeviceSymlinks()
415 … int major, int minor, const std::vector<std::string>& links) const { in HandleDevice()
417 MakeDevice(devpath, block, major, minor, links); in HandleDevice()
422 for (const auto& link : links) { in HandleDevice()
443 for (const auto& link : links) { in HandleDevice()
480 std::vector<std::string> links; in HandleUevent() local
488 links = GetBlockDeviceSymlinks(uevent); in HandleUevent()
516 HandleDevice(uevent.action, devpath, block, uevent.major, uevent.minor, links); in HandleUevent()