Searched refs:ValidatePath (Results 1 – 4 of 4) 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);
58 var firstInvalid = paths.FirstOrDefault(p => !ValidatePath(p)); in ToJson()86 private static bool ValidatePath(string input) in ValidatePath() method in Google.Protobuf.WellKnownTypes.FieldMask