Home
last modified time | relevance | path

Searched refs:ValidatePath (Results 1 – 3 of 3) sorted by relevance

/external/libchrome/sandbox/linux/syscall_broker/
Dbroker_file_permission_unittest.cc25 static bool ValidatePath(const char* path) { in ValidatePath() function in sandbox::syscall_broker::BrokerFilePermissionTester
26 return BrokerFilePermission::ValidatePath(path); in ValidatePath()
244 TEST(BrokerFilePermission, ValidatePath) { in TEST() argument
245 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 …]
Dbroker_file_permission.cc21 bool BrokerFilePermission::ValidatePath(const char* path) { in ValidatePath() function in sandbox::syscall_broker::BrokerFilePermission
89 if (!ValidatePath(requested_filename)) in CheckAccess()
134 if (!ValidatePath(requested_filename)) in CheckOpen()
Dbroker_file_permission.h96 static bool ValidatePath(const char* path);