Home
last modified time | relevance | path

Searched refs:CheckOpen (Results 1 – 5 of 5) sorted by relevance

/external/libchrome/sandbox/linux/syscall_broker/
Dbroker_file_permission_unittest.cc94 ASSERT_TRUE(perm.CheckOpen(path, O_RDONLY, &file_to_open, NULL)); in CheckPerm()
95 ASSERT_FALSE(perm.CheckOpen(path, O_WRONLY, &file_to_open, NULL)); in CheckPerm()
96 ASSERT_FALSE(perm.CheckOpen(path, O_RDWR, &file_to_open, NULL)); in CheckPerm()
101 ASSERT_FALSE(perm.CheckOpen(path, O_RDONLY, &file_to_open, NULL)); in CheckPerm()
102 ASSERT_TRUE(perm.CheckOpen(path, O_WRONLY, &file_to_open, NULL)); in CheckPerm()
103 ASSERT_FALSE(perm.CheckOpen(path, O_RDWR, &file_to_open, NULL)); in CheckPerm()
108 ASSERT_TRUE(perm.CheckOpen(path, O_RDONLY, &file_to_open, NULL)); in CheckPerm()
109 ASSERT_TRUE(perm.CheckOpen(path, O_WRONLY, &file_to_open, NULL)); in CheckPerm()
110 ASSERT_TRUE(perm.CheckOpen(path, O_RDWR, &file_to_open, NULL)); in CheckPerm()
153 perm.CheckOpen(path, access_flags | flag, &file_to_open, NULL)); in CheckPerm()
[all …]
Dbroker_policy.cc90 if (permissions_array_[i].CheckOpen(requested_filename, requested_flags, in GetFileNameIfAllowedToOpen()
Dbroker_file_permission.h66 bool CheckOpen(const char* requested_filename,
Dbroker_file_permission.cc130 bool BrokerFilePermission::CheckOpen(const char* requested_filename, in CheckOpen() function in sandbox::syscall_broker::BrokerFilePermission
/external/clang/lib/StaticAnalyzer/Checkers/
DUnixAPIChecker.cpp39 void CheckOpen(CheckerContext &C, const CallExpr *CE) const;
91 void UnixAPIChecker::CheckOpen(CheckerContext &C, const CallExpr *CE) const { in CheckOpen() function in UnixAPIChecker
362 .Case("open", &UnixAPIChecker::CheckOpen) in checkPreStmt()