Home
last modified time | relevance | path

Searched refs:BPF_JMP (Results 1 – 25 of 50) sorted by relevance

12

/external/dhcpcd-6.8.2/
Dbpf-filter.h37 BPF_JUMP(BPF_JMP + BPF_JEQ + BPF_K, ETHERTYPE_ARP, 0, 3),
41 BPF_JUMP(BPF_JMP + BPF_JEQ + BPF_K, ARPOP_REQUEST, 2, 0),
44 BPF_JUMP(BPF_JMP + BPF_JEQ + BPF_K, ARPOP_REPLY, 0, 1),
81 BPF_JUMP(BPF_JMP + BPF_JEQ + BPF_K, ETHERTYPE_IP, 0, 8),
85 BPF_JUMP(BPF_JMP + BPF_JEQ + BPF_K, IPPROTO_UDP, 0, 6),
88 BPF_JUMP(BPF_JMP + BPF_JSET + BPF_K, 0x1fff, 4, 0),
93 BPF_JUMP(BPF_JMP + BPF_JEQ + BPF_K, DHCP_CLIENT_PORT, 0, 1),
/external/libpcap/
Dbpf_image.c148 case BPF_JMP|BPF_JA:
154 case BPF_JMP|BPF_JGT|BPF_K:
159 case BPF_JMP|BPF_JGE|BPF_K:
164 case BPF_JMP|BPF_JEQ|BPF_K:
169 case BPF_JMP|BPF_JSET|BPF_K:
174 case BPF_JMP|BPF_JGT|BPF_X:
179 case BPF_JMP|BPF_JGE|BPF_X:
184 case BPF_JMP|BPF_JEQ|BPF_X:
189 case BPF_JMP|BPF_JSET|BPF_X:
310 if (BPF_CLASS(p->code) == BPF_JMP && BPF_OP(p->code) != BPF_JA) {
/external/libchrome/sandbox/linux/bpf_dsl/
Dcodegen_unittest.cc141 if (BPF_CLASS(insn.code) == BPF_JMP) { in RunTest()
190 CodeGen::Node head = MakeInstruction(BPF_JMP + BPF_JEQ + BPF_K, 42, in TEST_F()
202 CodeGen::Node head = MakeInstruction(BPF_JMP + BPF_JEQ + BPF_K, 42, ret, ret); in TEST_F()
230 MakeInstruction(BPF_JMP + BPF_JEQ + BPF_K, 42, insn2, insn3); in TEST_F()
240 MakeInstruction(BPF_JMP + BPF_JEQ + BPF_K, 42, insn5, insn4); in TEST_F()
266 CodeGen::Node i5 = MakeInstruction(BPF_JMP + BPF_JEQ + BPF_K, 1, i6, i7); in TEST_F()
268 CodeGen::Node i3 = MakeInstruction(BPF_JMP + BPF_JEQ + BPF_K, 2, i4, i5); in TEST_F()
270 CodeGen::Node i1 = MakeInstruction(BPF_JMP + BPF_JEQ + BPF_K, 1, i2, i3); in TEST_F()
290 CodeGen::Node i3 = MakeInstruction(BPF_JMP + BPF_JEQ + BPF_K, 2, i4, i5); in TEST_F()
292 CodeGen::Node i1 = MakeInstruction(BPF_JMP + BPF_JEQ + BPF_K, 1, i2, i3); in TEST_F()
[all …]
Dpolicy_compiler.cc148 gen_.MakeInstruction(BPF_JMP + BPF_JEQ + BPF_K, SECCOMP_ARCH, passed, in CheckArch()
177 BPF_JMP + BPF_JEQ + BPF_K, lopc, in MaybeAddEscapeHatch()
180 gen_.MakeInstruction(BPF_JMP + BPF_JEQ + BPF_K, hipc, in MaybeAddEscapeHatch()
209 BPF_JMP + BPF_JSET + BPF_K, 0x40000000, passed, invalidX32); in CheckSyscallNumber()
213 BPF_JMP + BPF_JSET + BPF_K, 0x40000000, invalidX32, passed); in CheckSyscallNumber()
274 return gen_.MakeInstruction(BPF_JMP + BPF_JGE + BPF_K, mid->from, jt, jf); in AssembleJumpTable()
335 BPF_JMP + BPF_JEQ + BPF_K, 0, passed, invalid_64bit)); in MaskedEqualHalf()
352 BPF_JMP + BPF_JEQ + BPF_K, in MaskedEqualHalf()
356 BPF_JMP + BPF_JEQ + BPF_K, in MaskedEqualHalf()
361 gen_.MakeInstruction(BPF_JMP + BPF_JSET + BPF_K, in MaskedEqualHalf()
[all …]
Dcodegen.cc82 if (BPF_CLASS(code) == BPF_JMP) { in AppendInstruction()
118 Node jump = Append(BPF_JMP | BPF_JA, Offset(target), 0, 0); in WithinRange()
124 if (BPF_CLASS(code) == BPF_JMP && BPF_OP(code) != BPF_JA) { in Append()
/external/minijail/
Dsyscall_filter_unittest_macros.h42 EXPECT_TRUE((_block)->code == (BPF_JMP+BPF_JA)); \
49 EXPECT_TRUE((_block)->code == (BPF_JMP+BPF_JA)); \
57 EXPECT_EQ((_block)->code, BPF_JMP+BPF_JA); \
95 BPF_JMP+BPF_JEQ+BPF_K, ARCH_NR, SKIP, NEXT); \
102 BPF_JMP+BPF_JEQ+BPF_K, (_nr), NEXT, SKIP); \
110 BPF_JMP+BPF_JEQ+BPF_K, (_nr), NEXT, SKIP); \
112 BPF_JMP+BPF_JA, (_id), (_jt), (_jf)); \
Dbpf.c19 set_bpf_jump(curr_block++, BPF_JMP + BPF_JEQ + BPF_K, ARCH_NR, SKIP, in bpf_validate_arch()
29 set_bpf_jump(curr_block++, BPF_JMP + BPF_JEQ + BPF_K, nr, NEXT, SKIP); in bpf_allow_syscall()
38 set_bpf_jump(curr_block++, BPF_JMP + BPF_JEQ + BPF_K, nr, NEXT, SKIP); in bpf_allow_syscall_args()
67 set_bpf_jump(filter, BPF_JMP + BPF_JEQ + BPF_K, lo, jt, jf); in bpf_comp_jeq32()
98 set_bpf_jump(filter, BPF_JMP + BPF_JSET + BPF_K, mask_lo, jt, jf); in bpf_comp_jset32()
220 if (instr->code != (BPF_JMP + BPF_JA)) in bpf_resolve_jumps()
/external/autotest/client/site_tests/security_SeccompSyscallFilters/src/
Dresumption.c96 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, __NR_sigreturn, 3, 0), in FIXTURE_SETUP()
98 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, __NR_exit, 2, 0), in FIXTURE_SETUP()
99 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, __NR_rt_sigreturn, 1, 0), in FIXTURE_SETUP()
101 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, __NR_write, 0, 1), in FIXTURE_SETUP()
107 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, ((__u32*)&thunk_addr)[0], 0, 3), in FIXTURE_SETUP()
110 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, ((__u32*)&thunk_addr)[1], 0, 1), in FIXTURE_SETUP()
Dsigsegv.c72 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, __NR_sigreturn, 4, 0), in FIXTURE_SETUP()
75 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, __NR_mprotect, 3, 0), in FIXTURE_SETUP()
76 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, __NR_exit, 2, 0), in FIXTURE_SETUP()
77 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, __NR_rt_sigreturn, 1, 0), in FIXTURE_SETUP()
79 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, __NR_write, 0, 1), in FIXTURE_SETUP()
Dseccomp_bpf_tests.c265 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, __NR_getpid, 0, 1), in TEST_SIGNAL()
289 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, __NR_getpid, 1, 0), in TEST_SIGNAL()
293 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, 0x0C0FFEE, 0, 1), in TEST_SIGNAL()
319 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, __NR_getpid, 1, 0), in TEST_SIGNAL()
323 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, 0x0C0FFEE, 0, 1), in TEST_SIGNAL()
368 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, __NR_read, 0, 1), in TEST()
392 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, __NR_read, 0, 1), in TEST()
420 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, __NR_getpid, 0, 1), in FIXTURE_SETUP()
528 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, __NR_getpid, 1, 0), in FIXTURE_SETUP()
535 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, __NR_getpid, 1, 0), in FIXTURE_SETUP()
[all …]
/external/wpa_supplicant_8/src/drivers/
Ddriver_nl80211_monitor.c201 BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, 0, PASS, 0),
217 BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, 0x0801, PASS, 0),
228 BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, 8, 0, FAIL),
235 BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, 3, PASS, 0),
258 BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_X, 0, PASS, 0),
264 BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, 0xAAAA0300, 0, FAIL),
266 BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, 0x0000888E, PASS, FAIL),
289 if (BPF_CLASS(insn->code) == BPF_JMP) { in add_monitor_filter()
290 if (insn->code == (BPF_JMP|BPF_JA)) { in add_monitor_filter()
/external/libpcap/bpf/net/
Dbpf_filter.c448 case BPF_JMP|BPF_JA:
463 case BPF_JMP|BPF_JGT|BPF_K:
467 case BPF_JMP|BPF_JGE|BPF_K:
471 case BPF_JMP|BPF_JEQ|BPF_K:
475 case BPF_JMP|BPF_JSET|BPF_K:
479 case BPF_JMP|BPF_JGT|BPF_X:
483 case BPF_JMP|BPF_JGE|BPF_X:
487 case BPF_JMP|BPF_JEQ|BPF_X:
491 case BPF_JMP|BPF_JSET|BPF_X:
702 case BPF_JMP:
/external/openssh/
Dsandbox-seccomp-filter.c78 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, __NR_ ## _nr, 0, 1), \
81 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, __NR_ ## _nr, 0, 1), \
84 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, __NR_ ## _nr, 0, 4), \
88 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, (_arg_val), 0, 1), \
99 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, SECCOMP_AUDIT_ARCH, 1, 0),
/external/linux-kselftest/tools/testing/selftests/net/
Dpsock_fanout.c104 { BPF_JMP | BPF_JGE | BPF_K, 0, 0, 1, DATA_LEN }, in sock_fanout_set_ebpf()
105 { BPF_JMP | BPF_JA | BPF_K, 0, 0, 4, 0 }, in sock_fanout_set_ebpf()
107 { BPF_JMP | BPF_JEQ | BPF_K, 0, 0, 2, DATA_CHAR }, in sock_fanout_set_ebpf()
108 { BPF_JMP | BPF_JEQ | BPF_K, 0, 0, 1, DATA_CHAR_1 }, in sock_fanout_set_ebpf()
110 { BPF_JMP | BPF_EXIT, 0, 0, 0, 0 } in sock_fanout_set_ebpf()
/external/linux-kselftest/tools/testing/selftests/seccomp/
Dseccomp_bpf.c411 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, __NR_getpid, 0, 1), in TEST_SIGNAL()
439 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, __NR_times, 1, 0), in TEST_SIGNAL()
443 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, in TEST_SIGNAL()
479 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, sysno, 1, 0), in TEST_SIGNAL()
483 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, 0x0C0FFEE, 0, 1), in TEST_SIGNAL()
549 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, __NR_read, 0, 1), in TEST()
576 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, __NR_read, 0, 1), in TEST()
603 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, __NR_read, 0, 1), in TEST()
634 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, __NR_getpid, 0, 1), in FIXTURE_SETUP()
752 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, __NR_getpid, 1, 0), in FIXTURE_SETUP()
[all …]
/external/strace/xlat/
Dbpf_class.h26 #if defined(BPF_JMP) || (defined(HAVE_DECL_BPF_JMP) && HAVE_DECL_BPF_JMP)
27 XLAT(BPF_JMP),
/external/seccomp-tests/linux/
Dseccomp_bpf.c411 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, __NR_getpid, 0, 1), in TEST_SIGNAL()
439 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, __NR_times, 1, 0), in TEST_SIGNAL()
443 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, in TEST_SIGNAL()
479 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, sysno, 1, 0), in TEST_SIGNAL()
483 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, 0x0C0FFEE, 0, 1), in TEST_SIGNAL()
549 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, __NR_read, 0, 1), in TEST()
576 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, __NR_read, 0, 1), in TEST()
603 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, __NR_read, 0, 1), in TEST()
634 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, __NR_getpid, 0, 1), in FIXTURE_SETUP()
752 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, __NR_getpid, 1, 0), in FIXTURE_SETUP()
[all …]
/external/strace/tests-mx32/
Dseccomp-filter-v.c56 BPF_JUMP(BPF_JMP|BPF_K|BPF_JEQ, __NR_ ## nr, 0, 1), \
60 BPF_JUMP(BPF_JMP|BPF_K|BPF_JEQ, __NR_ ## nr, 0, 1), \
164 case BPF_JMP: in main()
Dprctl-seccomp-filter-v.c56 BPF_JUMP(BPF_JMP|BPF_K|BPF_JEQ, __NR_ ## nr, 0, 1), \
60 BPF_JUMP(BPF_JMP|BPF_K|BPF_JEQ, __NR_ ## nr, 0, 1), \
/external/strace/tests-m32/
Dseccomp-filter-v.c56 BPF_JUMP(BPF_JMP|BPF_K|BPF_JEQ, __NR_ ## nr, 0, 1), \
60 BPF_JUMP(BPF_JMP|BPF_K|BPF_JEQ, __NR_ ## nr, 0, 1), \
164 case BPF_JMP: in main()
Dprctl-seccomp-filter-v.c56 BPF_JUMP(BPF_JMP|BPF_K|BPF_JEQ, __NR_ ## nr, 0, 1), \
60 BPF_JUMP(BPF_JMP|BPF_K|BPF_JEQ, __NR_ ## nr, 0, 1), \
/external/strace/tests/
Dseccomp-filter-v.c56 BPF_JUMP(BPF_JMP|BPF_K|BPF_JEQ, __NR_ ## nr, 0, 1), \
60 BPF_JUMP(BPF_JMP|BPF_K|BPF_JEQ, __NR_ ## nr, 0, 1), \
164 case BPF_JMP: in main()
Dprctl-seccomp-filter-v.c56 BPF_JUMP(BPF_JMP|BPF_K|BPF_JEQ, __NR_ ## nr, 0, 1), \
60 BPF_JUMP(BPF_JMP|BPF_K|BPF_JEQ, __NR_ ## nr, 0, 1), \
/external/libchrome/sandbox/linux/system_headers/
Dlinux_filter.h36 #ifndef BPF_JMP
37 #define BPF_JMP 0x05 macro
/external/libnetfilter_conntrack/src/conntrack/
Dbsf.c40 case BPF_JMP|BPF_JEQ|BPF_K:
46 case BPF_JMP|BPF_JA:
168 .code = BPF_JMP|BPF_JEQ|BPF_K, in nfct_bsf_cmp_k_stack()
187 .code = BPF_JMP|BPF_JEQ|BPF_K, in nfct_bsf_cmp_k_stack_jf()
284 .code = BPF_JMP|BPF_JA, in nfct_bsf_jump_to()
308 .code = BPF_JMP|BPF_JEQ|BPF_K, in bsf_cmp_subsys()
688 .code = BPF_JMP|BPF_JEQ|BPF_K, in bsf_add_mark_filter()

12