Searched refs:Match (Results 1 – 5 of 5) sorted by relevance
227 EXPECT_TRUE(permissions.Match("/dev/null")); in TEST()228 EXPECT_FALSE(permissions.Match("/dev/nullsuffix")); in TEST()229 EXPECT_FALSE(permissions.Match("/dev/nul")); in TEST()239 EXPECT_TRUE(permissions.Match("/dev/dri/some_dri_device")); in TEST()240 EXPECT_TRUE(permissions.Match("/dev/dri/some_other_dri_device")); in TEST()241 EXPECT_TRUE(permissions.Match("/dev/dri/")); in TEST()242 EXPECT_FALSE(permissions.Match("/dev/dr/non_match")); in TEST()252 EXPECT_TRUE(permissions.Match("/dev/devicename")); in TEST()253 EXPECT_TRUE(permissions.Match("/dev/device123name")); in TEST()254 EXPECT_TRUE(permissions.Match("/dev/deviceabcname")); in TEST()[all …]
128 bool Permissions::Match(const std::string& path) const { in Match() function in android::init::Permissions138 if (Match("/sys/class/" + subsystem + "/" + path_basename)) return true; in MatchWithSubsystem()139 if (Match("/sys/bus/" + subsystem + "/devices/" + path_basename)) return true; in MatchWithSubsystem()141 return Match(path); in MatchWithSubsystem()213 if (it->Match(path) || std::any_of(links.cbegin(), links.cend(), in GetDevicePermissions()214 [it](const auto& link) { return it->Match(link); })) { in GetDevicePermissions()
39 bool Match(const std::string& path) const;
54 bool Match(pid_t chk_pid, pid_t chk_tid) { return (chk_pid == pid_ && chk_tid == tid_); } in Match() function
53 if (entry->Match(pid, tid)) { in Get()