Home
last modified time | relevance | path

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

12

/external/wpa_supplicant_8/src/drivers/
Ddriver_nl80211_monitor.c183 BPF_STMT(BPF_LD | BPF_B | BPF_ABS, 2),
185 BPF_STMT(BPF_MISC| BPF_TAX, 0),
187 BPF_STMT(BPF_LD | BPF_B | BPF_ABS, 3),
189 BPF_STMT(BPF_ALU | BPF_LSH | BPF_K, 8),
191 BPF_STMT(BPF_ALU | BPF_OR | BPF_X, 0),
193 BPF_STMT(BPF_MISC| BPF_TAX, 0),
200 BPF_STMT(BPF_LD | BPF_B | BPF_IND, 0),
202 BPF_STMT(BPF_ALU | BPF_AND | BPF_K, 0xF),
215 BPF_STMT(BPF_LD | BPF_H | BPF_IND, 0),
217 BPF_STMT(BPF_ALU | BPF_AND | BPF_K, 0x0F03),
[all …]
/external/autotest/client/site_tests/security_SeccompSyscallFilters/src/
Dseccomp_bpf_tests.c123 BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_ALLOW), in TEST()
147 BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_ALLOW), in TEST()
168 BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_ALLOW), in TEST()
200 BPF_STMT(BPF_RET+BPF_K, 0x10000000U), in TEST_SIGNAL()
220 BPF_STMT(BPF_RET+BPF_K, 0x90000000U), in TEST_SIGNAL()
239 BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_KILL), in TEST_SIGNAL()
255 BPF_STMT(BPF_LD+BPF_W+BPF_ABS, in TEST_SIGNAL()
258 BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_KILL), in TEST_SIGNAL()
259 BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_ALLOW), in TEST_SIGNAL()
279 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/openssh/
Dsandbox-seccomp-filter.c94 BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_ERRNO|(_errno))
97 BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_ALLOW)
101 BPF_STMT(BPF_LD+BPF_W+BPF_ABS, \
106 BPF_STMT(BPF_LD+BPF_W+BPF_ABS, \
110 BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_ALLOW), \
112 BPF_STMT(BPF_LD+BPF_W+BPF_ABS, \
118 BPF_STMT(BPF_LD+BPF_W+BPF_ABS, \
120 BPF_STMT(BPF_ALU+BPF_AND+BPF_K, ~((_arg_mask) & 0xFFFFFFFF)), \
123 BPF_STMT(BPF_LD+BPF_W+BPF_ABS, \
125 BPF_STMT(BPF_ALU+BPF_AND+BPF_K, \
[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/linux-kselftest/tools/testing/selftests/seccomp/
Dseccomp_bpf.c293 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW), in TEST()
324 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW), in TEST()
361 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW), in TEST()
399 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW), in TEST()
422 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW), in TEST()
447 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW), in TEST()
485 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_LOG),
508 BPF_STMT(BPF_RET|BPF_K, 0x10000000U), in TEST_SIGNAL()
530 BPF_STMT(BPF_RET|BPF_K, 0x90000000U), in TEST_SIGNAL()
551 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_KILL), in TEST_SIGNAL()
[all …]
/external/strace/tests-m32/
Dprctl-seccomp-filter-v.c52 && defined BPF_STMT
56 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW)
60 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ERRNO|(SECCOMP_RET_DATA & (err)))
63 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_KILL)
77 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, offsetof(struct seccomp_data, nr)),
Dseccomp-filter-v.c52 && defined BPF_STMT
56 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW)
60 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ERRNO|(SECCOMP_RET_DATA & (err)))
63 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_KILL)
77 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, offsetof(struct seccomp_data, nr)),
132 BPF_STMT(BPF_CLASS(i), i << 16); in main()
Dsock_filter-v.c65 BPF_STMT(BPF_LD|BPF_B|BPF_ABS, SKF_LL_OFF+4),
66 BPF_STMT(BPF_LD|BPF_B|BPF_ABS, SKF_NET_OFF+8),
67 BPF_STMT(BPF_LD|BPF_B|BPF_ABS, SKF_AD_OFF+SKF_AD_PROTOCOL),
69 BPF_STMT(BPF_LD|BPF_W|BPF_LEN, 0),
71 BPF_STMT(BPF_LD|BPF_B|BPF_ABS, 42),
73 BPF_STMT(BPF_RET|BPF_K, -1U),
74 BPF_STMT(BPF_RET|BPF_K, 0)
Dnlattr_packet_diag_msg.c83 BPF_STMT(BPF_LD|BPF_B|BPF_ABS, SKF_AD_OFF+SKF_AD_PKTTYPE),
84 BPF_STMT(BPF_RET|BPF_K, 0x2a)
/external/strace/tests-mx32/
Dprctl-seccomp-filter-v.c52 && defined BPF_STMT
56 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW)
60 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ERRNO|(SECCOMP_RET_DATA & (err)))
63 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_KILL)
77 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, offsetof(struct seccomp_data, nr)),
Dseccomp-filter-v.c52 && defined BPF_STMT
56 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW)
60 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ERRNO|(SECCOMP_RET_DATA & (err)))
63 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_KILL)
77 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, offsetof(struct seccomp_data, nr)),
132 BPF_STMT(BPF_CLASS(i), i << 16); in main()
Dsock_filter-v.c65 BPF_STMT(BPF_LD|BPF_B|BPF_ABS, SKF_LL_OFF+4),
66 BPF_STMT(BPF_LD|BPF_B|BPF_ABS, SKF_NET_OFF+8),
67 BPF_STMT(BPF_LD|BPF_B|BPF_ABS, SKF_AD_OFF+SKF_AD_PROTOCOL),
69 BPF_STMT(BPF_LD|BPF_W|BPF_LEN, 0),
71 BPF_STMT(BPF_LD|BPF_B|BPF_ABS, 42),
73 BPF_STMT(BPF_RET|BPF_K, -1U),
74 BPF_STMT(BPF_RET|BPF_K, 0)
/external/strace/tests/
Dprctl-seccomp-filter-v.c52 && defined BPF_STMT
56 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW)
60 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ERRNO|(SECCOMP_RET_DATA & (err)))
63 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_KILL)
77 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, offsetof(struct seccomp_data, nr)),
Dseccomp-filter-v.c52 && defined BPF_STMT
56 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW)
60 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ERRNO|(SECCOMP_RET_DATA & (err)))
63 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_KILL)
77 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, offsetof(struct seccomp_data, nr)),
132 BPF_STMT(BPF_CLASS(i), i << 16); in main()
Dsock_filter-v.c65 BPF_STMT(BPF_LD|BPF_B|BPF_ABS, SKF_LL_OFF+4),
66 BPF_STMT(BPF_LD|BPF_B|BPF_ABS, SKF_NET_OFF+8),
67 BPF_STMT(BPF_LD|BPF_B|BPF_ABS, SKF_AD_OFF+SKF_AD_PROTOCOL),
69 BPF_STMT(BPF_LD|BPF_W|BPF_LEN, 0),
71 BPF_STMT(BPF_LD|BPF_B|BPF_ABS, 42),
73 BPF_STMT(BPF_RET|BPF_K, -1U),
74 BPF_STMT(BPF_RET|BPF_K, 0)
Dnlattr_packet_diag_msg.c83 BPF_STMT(BPF_LD|BPF_B|BPF_ABS, SKF_AD_OFF+SKF_AD_PKTTYPE),
84 BPF_STMT(BPF_RET|BPF_K, 0x2a)
/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/llvm-project/compiler-rt/test/asan/TestCases/Linux/
Dread_binary_name_regtest.c39 BPF_STMT(BPF_LD + BPF_W + BPF_ABS, syscall_nr), in main()
43 BPF_STMT(BPF_RET + BPF_K, SECCOMP_RET_ERRNO | EPERM), in main()
45 BPF_STMT(BPF_RET + BPF_K, SECCOMP_RET_ALLOW) in main()
/external/android-clat/
Dclatd.c75 BPF_STMT(BPF_LD | BPF_W | BPF_ABS, 24), in configure_packet_socket()
77 BPF_STMT(BPF_LD | BPF_W | BPF_ABS, 28), in configure_packet_socket()
79 BPF_STMT(BPF_LD | BPF_W | BPF_ABS, 32), in configure_packet_socket()
81 BPF_STMT(BPF_LD | BPF_W | BPF_ABS, 36), in configure_packet_socket()
83 BPF_STMT(BPF_RET | BPF_K, PACKETLEN), in configure_packet_socket()
84 BPF_STMT(BPF_RET | BPF_K, 0), in configure_packet_socket()
/external/iproute2/include/uapi/linux/
Dfilter.h48 #ifndef BPF_STMT
49 #define BPF_STMT(code, k) { (unsigned short)(code), 0, 0, k } macro
/external/ltp/testcases/kernel/syscalls/prctl/
Dprctl04.c39 BPF_STMT(BPF_LD | BPF_W | BPF_ABS, (offsetof (struct seccomp_data, nr))),
47 BPF_STMT(BPF_RET | BPF_K, SECCOMP_RET_KILL),
48 BPF_STMT(BPF_RET | BPF_K, SECCOMP_RET_ALLOW)
/external/kernel-headers/original/uapi/linux/
Dfilter.h48 #ifndef BPF_STMT
49 #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

12