Home
last modified time | relevance | path

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

/external/libchrome/sandbox/linux/syscall_broker/
Dbroker_file_permission.cc54 bool BrokerFilePermission::MatchPath(const char* requested_filename) const { in MatchPath()
56 if ((recursive_ && strncmp(requested_filename, path, strlen(path)) == 0)) { in MatchPath()
70 } else if (strcmp(requested_filename, path) == 0) { in MatchPath()
80 bool BrokerFilePermission::CheckAccess(const char* requested_filename, in CheckAccess() argument
89 if (!ValidatePath(requested_filename)) in CheckAccess()
92 if (!MatchPath(requested_filename)) { in CheckAccess()
121 *file_to_access = requested_filename; in CheckAccess()
130 bool BrokerFilePermission::CheckOpen(const char* requested_filename, in CheckOpen() argument
134 if (!ValidatePath(requested_filename)) in CheckOpen()
137 if (!MatchPath(requested_filename)) { in CheckOpen()
[all …]
Dbroker_host.cc63 const std::string& requested_filename, in OpenFileForIPC() argument
72 requested_filename.c_str(), flags, &file_to_open, &unlink_after_open); in OpenFileForIPC()
95 const std::string& requested_filename, in AccessFileForIPC() argument
101 requested_filename.c_str(), mode, &file_to_access); in AccessFileForIPC()
124 std::string requested_filename; in HandleRemoteCommand() local
126 if (!iter.ReadString(&requested_filename) || !iter.ReadInt(&flags)) in HandleRemoteCommand()
134 AccessFileForIPC(policy, requested_filename, flags, &write_pickle); in HandleRemoteCommand()
138 policy, requested_filename, flags, &write_pickle, &opened_files); in HandleRemoteCommand()
Dbroker_policy.cc51 const char* requested_filename, in GetFileNameIfAllowedToAccess() argument
62 if (permissions_array_[i].CheckAccess(requested_filename, requested_mode, in GetFileNameIfAllowedToAccess()
78 bool BrokerPolicy::GetFileNameIfAllowedToOpen(const char* requested_filename, in GetFileNameIfAllowedToOpen() argument
90 if (permissions_array_[i].CheckOpen(requested_filename, requested_flags, in GetFileNameIfAllowedToOpen()
Dbroker_file_permission.h66 bool CheckOpen(const char* requested_filename,
78 bool CheckAccess(const char* requested_filename,
99 bool MatchPath(const char* requested_filename) const;
Dbroker_policy.h49 bool GetFileNameIfAllowedToAccess(const char* requested_filename,
65 bool GetFileNameIfAllowedToOpen(const char* requested_filename,