Lines Matching refs:Trap
41 #include "sandbox/linux/seccomp-bpf/trap.h"
177 if (!Trap::IsSafeTrapId(insn->k & SECCOMP_RET_DATA)) {
184 // A Trap() handler that returns an "errno" value. The value is encoded
197 // it rewrites the instruction to instead call a Trap() handler that does
212 insn->k = sandbox->Trap(ReturnErrno,
244 return sandbox_compiler->Trap(ReturnErrno, reinterpret_cast<void*>(err));
248 // converting any ERRNO to a userspace trap
252 // Have an errno, need to change this to a trap
738 if (!Trap::EnableUnsafeTrapsInSigSysHandler()) {
1054 ErrorCode SandboxBPF::Trap(Trap::TrapFnc fnc, const void* aux) {
1055 return ErrorCode(fnc, aux, true /* Safe Trap */);
1058 ErrorCode SandboxBPF::UnsafeTrap(Trap::TrapFnc fnc, const void* aux) {
1059 return ErrorCode(fnc, aux, false /* Unsafe Trap */);
1137 return Trap(BPFFailure, const_cast<char*>(msg));