OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:requested_filename
(Results
1 - 5
of
5
) sorted by null
/external/libchrome/sandbox/linux/syscall_broker/
broker_policy.cc
39
// Check if calling access() should be allowed on |
requested_filename
| with
51
const char*
requested_filename
,
62
if (permissions_array_[i].CheckAccess(
requested_filename
, requested_mode,
70
// Check if |
requested_filename
| can be opened with flags |requested_flags|.
73
// than |
requested_filename
|, so that it never attempts to open an
78
bool BrokerPolicy::GetFileNameIfAllowedToOpen(const char*
requested_filename
,
90
if (permissions_array_[i].CheckOpen(
requested_filename
, requested_flags,
broker_file_permission.cc
54
bool BrokerFilePermission::MatchPath(const char*
requested_filename
) const {
56
if ((recursive_ && strncmp(
requested_filename
, path, strlen(path)) == 0)) {
70
} else if (strcmp(
requested_filename
, path) == 0) {
80
bool BrokerFilePermission::CheckAccess(const char*
requested_filename
,
89
if (!ValidatePath(
requested_filename
))
92
if (!MatchPath(
requested_filename
)) {
121
*file_to_access =
requested_filename
;
130
bool BrokerFilePermission::CheckOpen(const char*
requested_filename
,
134
if (!ValidatePath(
requested_filename
))
137
if (!MatchPath(
requested_filename
)) {
[
all
...]
broker_policy.h
37
// Check if calling access() should be allowed on |
requested_filename
| with
42
// In the case of a recursive match, this will be the
requested_filename
,
49
bool GetFileNameIfAllowedToAccess(const char*
requested_filename
,
53
// Check if |
requested_filename
| can be opened with flags |requested_flags|.
55
// In the case of a recursive match, this will be the
requested_filename
,
58
// than |
requested_filename
|, so that it never attempts to open an
65
bool GetFileNameIfAllowedToOpen(const char*
requested_filename
,
broker_host.cc
59
// Open |
requested_filename
| with |flags| if allowed by our policy.
63
const std::string&
requested_filename
,
72
requested_filename
.c_str(), flags, &file_to_open, &unlink_after_open);
92
// Perform access(2) on |
requested_filename
| with mode |mode| if allowed by our
95
const std::string&
requested_filename
,
101
requested_filename
.c_str(), mode, &file_to_access);
124
std::string
requested_filename
;
local
126
if (!iter.ReadString(&
requested_filename
) || !iter.ReadInt(&flags))
134
AccessFileForIPC(policy,
requested_filename
, flags, &write_pickle);
138
policy,
requested_filename
, flags, &write_pickle, &opened_files)
[
all
...]
broker_file_permission.h
57
// Returns true if |
requested_filename
| is allowed to be opened
60
// the |
requested_filename
| in the case of a recursive match,
66
bool CheckOpen(const char*
requested_filename
,
70
// Returns true if |
requested_filename
| is allowed to be accessed
73
// the |
requested_filename
| in the case of a recursive match,
78
bool CheckAccess(const char*
requested_filename
,
98
// MatchPath returns true if |
requested_filename
| is covered by this instance
99
bool MatchPath(const char*
requested_filename
) const;
Completed in 616 milliseconds