Home | History | Annotate | Download | only in seccomp-bpf

Lines Matching refs:ErrorCode

32                            const ErrorCode& code,
34 if (code.error_type() == ErrorCode::ET_SIMPLE ||
35 code.error_type() == ErrorCode::ET_TRAP) {
37 } else if (code.error_type() == ErrorCode::ET_COND) {
38 if (code.width() == ErrorCode::TP_32BIT &&
45 case ErrorCode::OP_EQUAL:
47 (code.width() == ErrorCode::TP_32BIT
53 case ErrorCode::OP_HAS_ALL_BITS:
55 ((code.width() == ErrorCode::TP_32BIT
62 case ErrorCode::OP_HAS_ANY_BITS:
64 (code.width() == ErrorCode::TP_32BIT
82 const ErrorCode& root_code,
83 const ErrorCode& code,
85 if (code.error_type() == ErrorCode::ET_SIMPLE ||
86 code.error_type() == ErrorCode::ET_TRAP) {
101 } else if (code.error_type() == ErrorCode::ET_COND) {
107 case ErrorCode::OP_EQUAL:
127 if (code.width() == ErrorCode::TP_32BIT) {
160 case ErrorCode::OP_HAS_ALL_BITS:
161 case ErrorCode::OP_HAS_ANY_BITS:
172 const ErrorCode& passed =
173 (!code.value() && code.op() == ErrorCode::OP_HAS_ANY_BITS) ||
181 code.op() == ErrorCode::OP_HAS_ALL_BITS) ||
183 code.op() == ErrorCode::OP_HAS_ANY_BITS)
189 const ErrorCode& failed =
190 !code.value() && code.op() == ErrorCode::OP_HAS_ALL_BITS
390 ErrorCode code = policy.EvaluateSyscall(sandbox, sysnum);