Searched refs:ValidatePath (Results 1 – 3 of 3) sorted by relevance
25 static bool ValidatePath(const char* path) { in ValidatePath() function in sandbox::syscall_broker::BrokerFilePermissionTester26 return BrokerFilePermission::ValidatePath(path); in ValidatePath()244 TEST(BrokerFilePermission, ValidatePath) { in TEST() argument245 EXPECT_TRUE(BrokerFilePermissionTester::ValidatePath("/path")); in TEST()246 EXPECT_TRUE(BrokerFilePermissionTester::ValidatePath("/")); in TEST()247 EXPECT_TRUE(BrokerFilePermissionTester::ValidatePath("/..path")); in TEST()249 EXPECT_FALSE(BrokerFilePermissionTester::ValidatePath("")); in TEST()250 EXPECT_FALSE(BrokerFilePermissionTester::ValidatePath("bad")); in TEST()251 EXPECT_FALSE(BrokerFilePermissionTester::ValidatePath("/bad/")); in TEST()252 EXPECT_FALSE(BrokerFilePermissionTester::ValidatePath("bad/")); in TEST()[all …]
21 bool BrokerFilePermission::ValidatePath(const char* path) { in ValidatePath() function in sandbox::syscall_broker::BrokerFilePermission89 if (!ValidatePath(requested_filename)) in CheckAccess()134 if (!ValidatePath(requested_filename)) in CheckOpen()
96 static bool ValidatePath(const char* path);