Home
last modified time | relevance | path

Searched refs:SeccompLevel (Results 1 – 2 of 2) sorted by relevance

/external/libchrome/sandbox/linux/seccomp-bpf/
Dsandbox_bpf.cc131 bool SandboxBPF::SupportsSeccompSandbox(SeccompLevel level) { in SupportsSeccompSandbox()
139 case SeccompLevel::SINGLE_THREADED: in SupportsSeccompSandbox()
141 case SeccompLevel::MULTI_THREADED: in SupportsSeccompSandbox()
148 bool SandboxBPF::StartSandbox(SeccompLevel seccomp_level) { in StartSandbox()
150 CHECK(seccomp_level == SeccompLevel::SINGLE_THREADED || in StartSandbox()
151 seccomp_level == SeccompLevel::MULTI_THREADED); in StartSandbox()
166 if (seccomp_level == SeccompLevel::SINGLE_THREADED) { in StartSandbox()
170 } else if (seccomp_level == SeccompLevel::MULTI_THREADED) { in StartSandbox()
192 seccomp_level == SeccompLevel::MULTI_THREADED); in StartSandbox()
Dsandbox_bpf.h29 enum class SeccompLevel { enum
44 static bool SupportsSeccompSandbox(SeccompLevel level);
66 bool StartSandbox(SeccompLevel level) WARN_UNUSED_RESULT;