Searched refs:BrokerFilePermission (Results 1 – 8 of 8) sorted by relevance
/external/libchrome/sandbox/linux/syscall_broker/ |
D | broker_file_permission_unittest.cc | 26 return BrokerFilePermission::ValidatePath(path); in ValidatePath() 29 return BrokerFilePermission::GetErrorMessageForTests(); in GetErrorMessage() 39 SANDBOX_TEST(BrokerFilePermission, CreateGood) { in SANDBOX_TEST() argument 41 BrokerFilePermission perm = BrokerFilePermission::ReadOnly(kPath); in SANDBOX_TEST() 44 SANDBOX_TEST(BrokerFilePermission, CreateGoodRecursive) { in SANDBOX_TEST() argument 46 BrokerFilePermission perm = BrokerFilePermission::ReadOnlyRecursive(kPath); in SANDBOX_TEST() 50 BrokerFilePermission, in SANDBOX_DEATH_TEST() argument 54 BrokerFilePermission perm = BrokerFilePermission::ReadOnly(kPath); in SANDBOX_DEATH_TEST() 58 BrokerFilePermission, in SANDBOX_DEATH_TEST() argument 62 BrokerFilePermission perm = BrokerFilePermission::ReadOnlyRecursive(kPath); in SANDBOX_DEATH_TEST() [all …]
|
D | broker_file_permission.h | 22 class SANDBOX_EXPORT BrokerFilePermission { 24 ~BrokerFilePermission() {} in ~BrokerFilePermission() 25 BrokerFilePermission(const BrokerFilePermission&) = default; 26 BrokerFilePermission& operator=(const BrokerFilePermission&) = default; 28 static BrokerFilePermission ReadOnly(const std::string& path) { in ReadOnly() 29 return BrokerFilePermission(path, false, false, true, false, false); in ReadOnly() 32 static BrokerFilePermission ReadOnlyRecursive(const std::string& path) { in ReadOnlyRecursive() 33 return BrokerFilePermission(path, true, false, true, false, false); in ReadOnlyRecursive() 36 static BrokerFilePermission WriteOnly(const std::string& path) { in WriteOnly() 37 return BrokerFilePermission(path, false, false, false, true, false); in WriteOnly() [all …]
|
D | broker_process_unittest.cc | 58 std::vector<BrokerFilePermission> permissions; in TEST() 59 permissions.push_back(BrokerFilePermission::ReadOnly("/proc/cpuinfo")); in TEST() 72 std::vector<BrokerFilePermission> empty; in TEST() 92 std::vector<BrokerFilePermission> permissions; in TestOpenFilePerms() 93 permissions.push_back(BrokerFilePermission::ReadOnly(kR_WhiteListed)); in TestOpenFilePerms() 95 BrokerFilePermission::ReadOnly(kR_WhiteListedButDenied)); in TestOpenFilePerms() 96 permissions.push_back(BrokerFilePermission::WriteOnly(kW_WhiteListed)); in TestOpenFilePerms() 97 permissions.push_back(BrokerFilePermission::ReadWrite(kRW_WhiteListed)); in TestOpenFilePerms() 252 std::vector<BrokerFilePermission> permissions; in TestBadPaths() 254 permissions.push_back(BrokerFilePermission::ReadOnlyRecursive("/proc/")); in TestBadPaths() [all …]
|
D | broker_file_permission.cc | 21 bool BrokerFilePermission::ValidatePath(const char* path) { in ValidatePath() 54 bool BrokerFilePermission::MatchPath(const char* requested_filename) const { in MatchPath() 80 bool BrokerFilePermission::CheckAccess(const char* requested_filename, in CheckAccess() 130 bool BrokerFilePermission::CheckOpen(const char* requested_filename, in CheckOpen() 205 const char* BrokerFilePermission::GetErrorMessageForTests() { in GetErrorMessageForTests() 210 BrokerFilePermission::BrokerFilePermission(const std::string& path, in BrokerFilePermission() function in sandbox::syscall_broker::BrokerFilePermission
|
D | broker_policy.h | 33 const std::vector<BrokerFilePermission>& permissions); 76 const std::vector<BrokerFilePermission> permissions_; 79 const BrokerFilePermission* permissions_array_;
|
D | broker_process.h | 24 class BrokerFilePermission; variable 49 const std::vector<syscall_broker::BrokerFilePermission>& permissions,
|
D | broker_policy.cc | 22 const std::vector<BrokerFilePermission>& permissions) in BrokerPolicy()
|
D | broker_process.cc | 35 const std::vector<syscall_broker::BrokerFilePermission>& permissions, in BrokerProcess()
|