Searched refs:SyscallSet (Results 1 – 5 of 5) sorted by relevance
/external/libchrome/sandbox/linux/bpf_dsl/ |
D | syscall_set.h | 30 class SANDBOX_EXPORT SyscallSet { 34 SyscallSet(const SyscallSet& ss) : set_(ss.set_) {} in SyscallSet() function 35 ~SyscallSet() {} in ~SyscallSet() 42 static SyscallSet All() { return SyscallSet(Set::ALL); } in All() 46 static SyscallSet ValidOnly() { return SyscallSet(Set::VALID_ONLY); } in ValidOnly() 51 static SyscallSet InvalidOnly() { return SyscallSet(Set::INVALID_ONLY); } in InvalidOnly() 60 explicit SyscallSet(Set set) : set_(set) {} in SyscallSet() function 64 friend bool operator==(const SyscallSet&, const SyscallSet&); 65 DISALLOW_ASSIGN(SyscallSet); 68 SANDBOX_EXPORT bool operator==(const SyscallSet& lhs, const SyscallSet& rhs); [all …]
|
D | syscall_set_unittest.cc | 18 const SyscallSet kSyscallSets[] = { 19 SyscallSet::All(), 20 SyscallSet::InvalidOnly(), 23 SANDBOX_TEST(SyscallSet, Monotonous) { in SANDBOX_TEST() argument 24 for (const SyscallSet& set : kSyscallSets) { in SANDBOX_TEST() 30 } else if (set == SyscallSet::All()) { in SANDBOX_TEST() 50 for (uint32_t sysnum : SyscallSet::All()) { in AssertRange() 59 SANDBOX_TEST(SyscallSet, ValidSyscallRanges) { in SANDBOX_TEST() argument 67 SANDBOX_TEST(SyscallSet, InvalidSyscalls) { in SANDBOX_TEST() argument 85 for (const SyscallSet& set : kSyscallSets) { in SANDBOX_TEST() [all …]
|
D | syscall_set.cc | 47 SyscallSet::Iterator SyscallSet::begin() const { in begin() 51 SyscallSet::Iterator SyscallSet::end() const { in end() 55 bool SyscallSet::IsValid(uint32_t num) { in IsValid() 64 bool operator==(const SyscallSet& lhs, const SyscallSet& rhs) { in operator ==() 68 SyscallSet::Iterator::Iterator(Set set, bool done) in Iterator() 76 uint32_t SyscallSet::Iterator::operator*() const { in operator *() 81 SyscallSet::Iterator& SyscallSet::Iterator::operator++() { in operator ++() 94 uint32_t SyscallSet::Iterator::NextSyscall() const { in NextSyscall() 135 bool operator==(const SyscallSet::Iterator& lhs, in operator ==() 136 const SyscallSet::Iterator& rhs) { in operator ==() [all …]
|
D | policy_compiler.cc | 75 for (uint32_t sysnum : SyscallSet::ValidOnly()) { in HasUnsafeTraps() 230 SyscallSet::IsValid(old_sysnum) in FindRanges() 234 for (uint32_t sysnum : SyscallSet::All()) { in FindRanges() 236 SyscallSet::IsValid(sysnum) in FindRanges()
|
/external/libchrome/sandbox/linux/seccomp-bpf/ |
D | sandbox_bpf.cc | 203 return SyscallSet::IsValid(sysnum); in IsValidSyscallNumber()
|