/external/libchrome/sandbox/linux/bpf_dsl/ |
D | codegen_unittest.cc | 181 CodeGen::Node head = MakeInstruction(BPF_RET + BPF_K, 0); in TEST_F() 190 CodeGen::Node head = MakeInstruction(BPF_JMP + BPF_JEQ + BPF_K, 42, in TEST_F() 191 MakeInstruction(BPF_RET + BPF_K, 1), in TEST_F() 192 MakeInstruction(BPF_RET + BPF_K, 0)); in TEST_F() 201 CodeGen::Node ret = MakeInstruction(BPF_RET + BPF_K, 0); in TEST_F() 202 CodeGen::Node head = MakeInstruction(BPF_JMP + BPF_JEQ + BPF_K, 42, ret, ret); in TEST_F() 220 CodeGen::Node insn0 = MakeInstruction(BPF_RET + BPF_K, 42); in TEST_F() 226 MakeInstruction(BPF_RET + BPF_K, 42)); 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() [all …]
|
D | policy_compiler.cc | 148 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 …]
|
D | verifier.cc | 63 if (BPF_SRC(insn.code) != BPF_K || !state->acc_is_valid || in Jmp() 104 if (BPF_SRC(insn.code) != BPF_K) { in Ret() 116 if (BPF_SRC(insn.code) != BPF_K) { in Alu()
|
/external/dhcpcd-6.8.2/ |
D | bpf-filter.h | 37 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), 46 BPF_STMT(BPF_RET + BPF_K, BPF_WHOLEPACKET), 48 BPF_STMT(BPF_RET + BPF_K, 0), 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), 95 BPF_STMT(BPF_RET + BPF_K, BPF_WHOLEPACKET), [all …]
|
/external/libpcap/ |
D | bpf_image.c | 68 case BPF_RET|BPF_K: 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: 244 case BPF_ALU|BPF_ADD|BPF_K: 249 case BPF_ALU|BPF_SUB|BPF_K: 254 case BPF_ALU|BPF_MUL|BPF_K: 259 case BPF_ALU|BPF_DIV|BPF_K: 264 case BPF_ALU|BPF_MOD|BPF_K: [all …]
|
D | optimize.c | 796 if (b->s.code == (BPF_JMP|BPF_JEQ|BPF_K) && in opt_peep() 838 else if (last->s.code == (BPF_ALU|BPF_SUB|BPF_K)) { in opt_peep() 850 else if (last->s.code == (BPF_ALU|BPF_AND|BPF_K) && in opt_peep() 853 b->s.code = BPF_JMP|BPF_K|BPF_JSET; in opt_peep() 863 if (b->s.code == (BPF_JMP|BPF_K|BPF_JSET)) { in opt_peep() 885 if (vmap[val].is_const && BPF_SRC(b->s.code) == BPF_K) { in opt_peep() 983 case BPF_ALU|BPF_ADD|BPF_K: in opt_stmt() 984 case BPF_ALU|BPF_SUB|BPF_K: in opt_stmt() 985 case BPF_ALU|BPF_MUL|BPF_K: in opt_stmt() 986 case BPF_ALU|BPF_DIV|BPF_K: in opt_stmt() [all …]
|
/external/autotest/client/site_tests/security_SeccompSyscallFilters/src/ |
D | seccomp_bpf_tests.c | 131 BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_ALLOW), in TEST() 155 BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_ALLOW), in TEST() 176 BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_ALLOW), in TEST() 208 BPF_STMT(BPF_RET+BPF_K, 0x10000000U), in TEST_SIGNAL() 228 BPF_STMT(BPF_RET+BPF_K, 0x90000000U), in TEST_SIGNAL() 247 BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_KILL), in TEST_SIGNAL() 265 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, __NR_getpid, 0, 1), in TEST_SIGNAL() 266 BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_KILL), in TEST_SIGNAL() 267 BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_ALLOW), in TEST_SIGNAL() 289 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, __NR_getpid, 1, 0), in TEST_SIGNAL() [all …]
|
D | resumption.c | 96 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() 102 BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_ALLOW), 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() 111 BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_ALLOW), in FIXTURE_SETUP() 112 BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_TRAP), in FIXTURE_SETUP()
|
D | sigsegv.c | 72 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() 80 BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_ALLOW), in FIXTURE_SETUP() 81 BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_TRAP), in FIXTURE_SETUP()
|
/external/wpa_supplicant_8/src/drivers/ |
D | driver_nl80211_monitor.c | 186 BPF_STMT(BPF_ALU | BPF_LSH | BPF_K, 8), 199 BPF_STMT(BPF_ALU | BPF_AND | BPF_K, 0xF), 201 BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, 0, PASS, 0), 214 BPF_STMT(BPF_ALU | BPF_AND | BPF_K, 0x0F03), 217 BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, 0x0801, PASS, 0), 226 BPF_STMT(BPF_ALU | BPF_AND | BPF_K, 0x0c), 228 BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, 8, 0, FAIL), 233 BPF_STMT(BPF_ALU | BPF_AND | BPF_K, 0x03), 235 BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, 3, PASS, 0), 243 BPF_STMT(BPF_ALU | BPF_AND | BPF_K, 0x80), [all …]
|
/external/tlsdate/src/ |
D | seccomp.c | 36 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, __NR_ ## _nr, 0, 1), \ 37 BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_ERRNO|(_errno)) 39 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, __NR_ ## _nr, 0, 1), \ 40 BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_ALLOW) 80 BPF_JUMP (BPF_JMP+BPF_JEQ+BPF_K, SECCOMP_AUDIT_ARCH, 1, 0), in enable_setter_seccomp() 81 BPF_STMT (BPF_RET+BPF_K, SECCOMP_FILTER_FAIL), in enable_setter_seccomp() 143 BPF_STMT (BPF_RET+BPF_K, SECCOMP_FILTER_FAIL), in enable_setter_seccomp()
|
/external/minijail/ |
D | syscall_filter_unittest.c | 63 BPF_RET+BPF_K, SECCOMP_RET_KILL); \ 71 BPF_RET+BPF_K, SECCOMP_RET_ALLOW); \ 78 BPF_JMP+BPF_JEQ+BPF_K, ARCH_NR, SKIP, NEXT); \ 79 EXPECT_EQ_STMT(&(_filter)[2], BPF_RET+BPF_K, SECCOMP_RET_KILL); \ 85 BPF_JMP+BPF_JEQ+BPF_K, (_nr), NEXT, SKIP); \ 87 BPF_RET+BPF_K, SECCOMP_RET_ALLOW); \ 93 BPF_JMP+BPF_JEQ+BPF_K, (_nr), NEXT, SKIP); \ 146 BPF_JMP+BPF_JEQ+BPF_K, c, jt, jf); in TEST_F() 149 BPF_JMP+BPF_JEQ+BPF_K, 0, 0, jf + 2); in TEST_F() 152 BPF_JMP+BPF_JEQ+BPF_K, c, jt, jf); in TEST_F() [all …]
|
D | bpf.c | 19 BPF_JMP+BPF_JEQ+BPF_K, ARCH_NR, SKIP, NEXT); in bpf_validate_arch() 28 set_bpf_jump(curr_block++, BPF_JMP+BPF_JEQ+BPF_K, nr, NEXT, SKIP); in bpf_allow_syscall() 29 set_bpf_stmt(curr_block++, BPF_RET+BPF_K, SECCOMP_RET_ALLOW); in bpf_allow_syscall() 37 set_bpf_jump(curr_block++, BPF_JMP+BPF_JEQ+BPF_K, nr, NEXT, SKIP); in bpf_allow_syscall_args() 66 set_bpf_jump(filter, BPF_JMP+BPF_JEQ+BPF_K, lo, jt, jf); in bpf_comp_jeq32() 97 set_bpf_jump(filter, BPF_JMP+BPF_JSET+BPF_K, mask_lo, jt, jf); in bpf_comp_jset32()
|
D | bpf.h | 149 set_bpf_stmt((_block), BPF_RET+BPF_K, SECCOMP_RET_KILL) 152 set_bpf_stmt((_block), BPF_RET+BPF_K, SECCOMP_RET_TRAP) 155 set_bpf_stmt((_block), BPF_RET+BPF_K, \ 159 set_bpf_stmt((_block), BPF_RET+BPF_K, SECCOMP_RET_ALLOW)
|
/external/libpcap/bpf/net/ |
D | bpf_filter.c | 261 case BPF_RET|BPF_K: 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: 539 case BPF_ALU|BPF_ADD|BPF_K: 543 case BPF_ALU|BPF_SUB|BPF_K: 547 case BPF_ALU|BPF_MUL|BPF_K: 551 case BPF_ALU|BPF_DIV|BPF_K: 555 case BPF_ALU|BPF_MOD|BPF_K: [all …]
|
/external/strace/tests/ |
D | seccomp.c | 57 BPF_JUMP(BPF_JMP | BPF_K | BPF_JEQ, __NR_ ## nr, 0, 1), \ 58 BPF_STMT(BPF_RET | BPF_K, SECCOMP_RET_ALLOW) 61 BPF_JUMP(BPF_JMP | BPF_K | BPF_JEQ, __NR_ ## nr, 0, 1), \ 62 BPF_STMT(BPF_RET | BPF_K, SECCOMP_RET_ERRNO | (SECCOMP_RET_DATA & (err))) 65 BPF_STMT(BPF_RET | BPF_K, SECCOMP_RET_KILL)
|
/external/compiler-rt/test/asan/TestCases/Linux/ |
D | read_binary_name_regtest.c | 36 BPF_JUMP(BPF_JMP + BPF_JEQ + BPF_K, __NR_readlink, 0, 1), in main() 38 BPF_STMT(BPF_RET + BPF_K, SECCOMP_RET_ERRNO | EPERM), in main() 40 BPF_STMT(BPF_RET + BPF_K, SECCOMP_RET_ALLOW) in main()
|
/external/strace/xlat/ |
D | bpf_src.h | 11 #if defined(BPF_K) || (defined(HAVE_DECL_BPF_K) && HAVE_DECL_BPF_K) 12 XLAT(BPF_K),
|
D | bpf_rval.h | 11 #if defined(BPF_K) || (defined(HAVE_DECL_BPF_K) && HAVE_DECL_BPF_K) 12 XLAT(BPF_K),
|
D | bpf_src.in | 1 BPF_K
|
D | bpf_rval.in | 1 BPF_K
|
/external/android-clat/ |
D | clatd.c | 94 BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, htonl(ipv6[0]), 0, 7), in configure_packet_socket() 96 BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, htonl(ipv6[1]), 0, 5), in configure_packet_socket() 98 BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, htonl(ipv6[2]), 0, 3), in configure_packet_socket() 100 BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, htonl(ipv6[3]), 0, 1), in configure_packet_socket() 101 BPF_STMT(BPF_RET | BPF_K, PACKETLEN), in configure_packet_socket() 102 BPF_STMT(BPF_RET | BPF_K, 0) in configure_packet_socket()
|
/external/libchrome/sandbox/linux/system_headers/ |
D | linux_filter.h | 132 #ifndef BPF_K 133 #define BPF_K 0x00 macro
|
/external/kernel-headers/original/uapi/linux/ |
D | bpf_common.h | 48 #define BPF_K 0x00 macro
|
/external/iproute2/include/linux/ |
D | bpf_common.h | 48 #define BPF_K 0x00 macro
|