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.cc132 bool SandboxBPF::SupportsSeccompSandbox(SeccompLevel level) { in SupportsSeccompSandbox()
140 case SeccompLevel::SINGLE_THREADED: in SupportsSeccompSandbox()
142 case SeccompLevel::MULTI_THREADED: in SupportsSeccompSandbox()
149 bool SandboxBPF::StartSandbox(SeccompLevel seccomp_level) { in StartSandbox()
151 CHECK(seccomp_level == SeccompLevel::SINGLE_THREADED || in StartSandbox()
152 seccomp_level == SeccompLevel::MULTI_THREADED); in StartSandbox()
167 if (seccomp_level == SeccompLevel::SINGLE_THREADED) { in StartSandbox()
171 } else if (seccomp_level == SeccompLevel::MULTI_THREADED) { in StartSandbox()
193 seccomp_level == SeccompLevel::MULTI_THREADED); in StartSandbox()
Dsandbox_bpf.h28 enum class SeccompLevel { enum
43 static bool SupportsSeccompSandbox(SeccompLevel level);
65 bool StartSandbox(SeccompLevel level) WARN_UNUSED_RESULT;