Home
last modified time | relevance | path

Searched refs:BPF_STMT (Results 1 – 25 of 28) sorted by relevance

12

/external/dhcpcd-6.8.2/
Dbpf-filter.h36 BPF_STMT(BPF_LD + BPF_H + BPF_ABS, 12),
40 BPF_STMT(BPF_LD + BPF_H + BPF_ABS, 20 + BPF_ETHCOOK),
43 BPF_STMT(BPF_LD + BPF_H + BPF_ABS, 20 + BPF_ETHCOOK),
46 BPF_STMT(BPF_RET + BPF_K, BPF_WHOLEPACKET),
48 BPF_STMT(BPF_RET + BPF_K, 0),
80 BPF_STMT(BPF_LD + BPF_H + BPF_ABS, 12),
84 BPF_STMT(BPF_LD + BPF_B + BPF_ABS, 23 + BPF_ETHCOOK),
87 BPF_STMT(BPF_LD + BPF_H + BPF_ABS, 20 + BPF_ETHCOOK),
90 BPF_STMT(BPF_LDX + BPF_B + BPF_MSH, 14 + BPF_ETHCOOK),
92 BPF_STMT(BPF_LD + BPF_H + BPF_IND, 16 + BPF_ETHCOOK),
[all …]
/external/wpa_supplicant_8/src/drivers/
Ddriver_nl80211_monitor.c180 BPF_STMT(BPF_LD | BPF_B | BPF_ABS, 2),
182 BPF_STMT(BPF_MISC| BPF_TAX, 0),
184 BPF_STMT(BPF_LD | BPF_B | BPF_ABS, 3),
186 BPF_STMT(BPF_ALU | BPF_LSH | BPF_K, 8),
188 BPF_STMT(BPF_ALU | BPF_OR | BPF_X, 0),
190 BPF_STMT(BPF_MISC| BPF_TAX, 0),
197 BPF_STMT(BPF_LD | BPF_B | BPF_IND, 0),
199 BPF_STMT(BPF_ALU | BPF_AND | BPF_K, 0xF),
212 BPF_STMT(BPF_LD | BPF_H | BPF_IND, 0),
214 BPF_STMT(BPF_ALU | BPF_AND | BPF_K, 0x0F03),
[all …]
/external/autotest/client/site_tests/security_SeccompSyscallFilters/src/
Dseccomp_bpf_tests.c131 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()
263 BPF_STMT(BPF_LD+BPF_W+BPF_ABS, 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()
287 BPF_STMT(BPF_LD+BPF_W+BPF_ABS, in TEST_SIGNAL()
[all …]
Dresumption.c92 BPF_STMT(BPF_LD+BPF_W+BPF_ABS, in FIXTURE_SETUP()
102 BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_ALLOW), in FIXTURE_SETUP()
104 BPF_STMT(BPF_LD+BPF_W+BPF_ABS, in FIXTURE_SETUP()
108 BPF_STMT(BPF_LD+BPF_W+BPF_ABS, 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()
Dsigsegv.c68 BPF_STMT(BPF_LD+BPF_W+BPF_ABS, 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/linux-kselftest/tools/testing/selftests/seccomp/
Dseccomp_bpf.c158 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW), in TEST()
189 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW), in TEST()
226 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW), in TEST()
264 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW), in TEST()
287 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW), in TEST()
312 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW), in TEST()
348 BPF_STMT(BPF_RET|BPF_K, 0x10000000U), in TEST_SIGNAL()
370 BPF_STMT(BPF_RET|BPF_K, 0x90000000U), in TEST_SIGNAL()
391 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_KILL), in TEST_SIGNAL()
409 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, in TEST_SIGNAL()
[all …]
/external/seccomp-tests/linux/
Dseccomp_bpf.c158 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW), in TEST()
189 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW), in TEST()
226 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW), in TEST()
264 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW), in TEST()
287 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW), in TEST()
312 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW), in TEST()
348 BPF_STMT(BPF_RET|BPF_K, 0x10000000U), in TEST_SIGNAL()
370 BPF_STMT(BPF_RET|BPF_K, 0x90000000U), in TEST_SIGNAL()
391 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_KILL), in TEST_SIGNAL()
409 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, in TEST_SIGNAL()
[all …]
/external/openssh/
Dsandbox-seccomp-filter.c89 BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_ERRNO|(_errno))
92 BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_ALLOW)
96 BPF_STMT(BPF_LD+BPF_W+BPF_ABS, \
101 BPF_STMT(BPF_LD+BPF_W+BPF_ABS, \
105 BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_ALLOW), \
107 BPF_STMT(BPF_LD+BPF_W+BPF_ABS, \
113 BPF_STMT(BPF_LD+BPF_W+BPF_ABS,
116 BPF_STMT(BPF_RET+BPF_K, SECCOMP_FILTER_FAIL),
118 BPF_STMT(BPF_LD+BPF_W+BPF_ABS,
242 BPF_STMT(BPF_RET+BPF_K, SECCOMP_FILTER_FAIL),
/external/strace/tests-m32/
Dprctl-seccomp-filter-v.c53 && defined BPF_STMT
57 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW)
61 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ERRNO|(SECCOMP_RET_DATA & (err)))
64 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_KILL)
78 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, offsetof(struct seccomp_data, nr)),
Dseccomp-filter-v.c54 && defined BPF_STMT
58 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW)
62 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ERRNO|(SECCOMP_RET_DATA & (err)))
65 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_KILL)
79 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, offsetof(struct seccomp_data, nr)),
138 BPF_STMT(BPF_CLASS(i), i << 16); in main()
/external/strace/tests/
Dprctl-seccomp-filter-v.c53 && defined BPF_STMT
57 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW)
61 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ERRNO|(SECCOMP_RET_DATA & (err)))
64 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_KILL)
78 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, offsetof(struct seccomp_data, nr)),
Dseccomp-filter-v.c54 && defined BPF_STMT
58 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW)
62 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ERRNO|(SECCOMP_RET_DATA & (err)))
65 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_KILL)
79 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, offsetof(struct seccomp_data, nr)),
138 BPF_STMT(BPF_CLASS(i), i << 16); in main()
/external/strace/tests-mx32/
Dprctl-seccomp-filter-v.c53 && defined BPF_STMT
57 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW)
61 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ERRNO|(SECCOMP_RET_DATA & (err)))
64 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_KILL)
78 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, offsetof(struct seccomp_data, nr)),
Dseccomp-filter-v.c54 && defined BPF_STMT
58 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW)
62 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ERRNO|(SECCOMP_RET_DATA & (err)))
65 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_KILL)
79 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, offsetof(struct seccomp_data, nr)),
138 BPF_STMT(BPF_CLASS(i), i << 16); in main()
/external/compiler-rt/test/asan/TestCases/Linux/
Dread_binary_name_regtest.c34 BPF_STMT(BPF_LD + BPF_W + BPF_ABS, syscall_nr), 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/android-clat/
Dclatd.c93 BPF_STMT(BPF_LD | BPF_W | BPF_ABS, 24), in configure_packet_socket()
95 BPF_STMT(BPF_LD | BPF_W | BPF_ABS, 28), in configure_packet_socket()
97 BPF_STMT(BPF_LD | BPF_W | BPF_ABS, 32), in configure_packet_socket()
99 BPF_STMT(BPF_LD | BPF_W | BPF_ABS, 36), 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/iproute2/include/linux/
Dfilter.h47 #ifndef BPF_STMT
48 #define BPF_STMT(code, k) { (unsigned short)(code), 0, 0, k } macro
/external/kernel-headers/original/uapi/linux/
Dfilter.h47 #ifndef BPF_STMT
48 #define BPF_STMT(code, k) { (unsigned short)(code), 0, 0, k } macro
/external/iptables/include/linux/
Dfilter.h101 #ifndef BPF_STMT
102 #define BPF_STMT(code, k) { (unsigned short)(code), 0, 0, k } macro
/external/wpa_supplicant_8/src/l2_packet/
Dl2_packet_linux.c323 BPF_STMT(BPF_LD | BPF_H | BPF_ABS, 2 * ETH_ALEN), in l2_packet_init_bridge()
327 BPF_STMT(BPF_RET | BPF_K, ~0), in l2_packet_init_bridge()
329 BPF_STMT(BPF_RET | BPF_K, 0) in l2_packet_init_bridge()
/external/linux-kselftest/tools/testing/selftests/net/
Dpsock_fanout.c101 BPF_STMT(BPF_LD+BPF_B+BPF_ABS, 80), /* ldb [80] */ in sock_fanout_set_cbpf()
102 BPF_STMT(BPF_RET+BPF_A, 0), /* ret A */ in sock_fanout_set_cbpf()
/external/iputils/
Dping.c1376 BPF_STMT(BPF_LDX|BPF_B|BPF_MSH, 0), /* Skip IP header. F..g BSD... Look into ping6. */ in install_filter()
1377 BPF_STMT(BPF_LD|BPF_H|BPF_IND, 4), /* Load icmp echo ident */ in install_filter()
1379 BPF_STMT(BPF_RET|BPF_K, ~0U), /* Yes, it passes. */ in install_filter()
1380 BPF_STMT(BPF_LD|BPF_B|BPF_IND, 0), /* Load icmp type */ in install_filter()
1382 BPF_STMT(BPF_RET|BPF_K, 0xFFFFFFF), /* No. It passes. */ in install_filter()
1383 BPF_STMT(BPF_RET|BPF_K, 0) /* Echo with wrong ident. Reject. */ in install_filter()
Drarpd.c334 BPF_STMT(BPF_LD|BPF_H|BPF_ABS, 6), in load_arp_bpflet()
336 BPF_STMT(BPF_RET|BPF_K, 1024), in load_arp_bpflet()
337 BPF_STMT(BPF_RET|BPF_K, 0), in load_arp_bpflet()
/external/libpcap/pcap/
Dbpf.h258 #define BPF_STMT(code, k) { (u_short)(code), 0, 0, k } macro
/external/toybox/toys/pending/
Ddhcp.c240 BPF_STMT(BPF_LD|BPF_B|BPF_ABS, 9),
242 BPF_STMT(BPF_LD|BPF_H|BPF_ABS, 6),
244 BPF_STMT(BPF_LDX|BPF_B|BPF_MSH, 0), BPF_STMT(BPF_LD|BPF_H|BPF_IND, 2),
246 BPF_STMT(BPF_RET|BPF_K, 0xffffffff), BPF_STMT(BPF_RET|BPF_K, 0),

12