Home
last modified time | relevance | path

Searched refs:BPF_RET (Results 1 – 25 of 60) sorted by relevance

123

/external/strace/xlat/
Dbpf_class.h48 #if defined(BPF_RET) || (defined(HAVE_DECL_BPF_RET) && HAVE_DECL_BPF_RET)
50 static_assert((BPF_RET) == (0x6), "BPF_RET != 0x6");
53 # define BPF_RET 0x6
79 [BPF_RET] = XLAT(BPF_RET),
Dbpf_class.in8 BPF_RET 0x6
/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()
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()
282 BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_ALLOW), in TEST_SIGNAL()
286 BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_KILL), in TEST_SIGNAL()
[all …]
Dresumption.c102 BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_ALLOW), 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.c80 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/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()
412 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_KILL), in TEST_SIGNAL()
[all …]
/external/minijail/
Dsyscall_filter_unittest_macros.h74 BPF_RET+BPF_K, SECCOMP_RET_KILL); \
81 BPF_RET+BPF_K, SECCOMP_RET_TRAP); \
88 BPF_RET+BPF_K, SECCOMP_RET_LOG); \
96 BPF_RET+BPF_K, SECCOMP_RET_ALLOW); \
105 EXPECT_EQ_STMT(&(_filter)[2], BPF_RET + BPF_K, \
114 BPF_RET+BPF_K, SECCOMP_RET_ALLOW); \
Dbpf.h171 set_bpf_stmt((_block), BPF_RET+BPF_K, SECCOMP_RET_KILL)
174 set_bpf_stmt((_block), BPF_RET+BPF_K, SECCOMP_RET_KILL_PROCESS)
177 set_bpf_stmt((_block), BPF_RET+BPF_K, SECCOMP_RET_TRAP)
180 set_bpf_stmt((_block), BPF_RET+BPF_K, \
184 set_bpf_stmt((_block), BPF_RET+BPF_K, SECCOMP_RET_LOG)
187 set_bpf_stmt((_block), BPF_RET+BPF_K, SECCOMP_RET_ALLOW)
/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-mx32/
Dseccomp-filter-v.c56 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)
164 case BPF_RET: in main()
Dprctl-seccomp-filter-v.c56 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)
Dsock_filter-v.c73 BPF_STMT(BPF_RET|BPF_K, -1U),
74 BPF_STMT(BPF_RET|BPF_K, 0)
111 XLAT_ARGS(BPF_RET), XLAT_ARGS(BPF_K), in print_filter()
115 XLAT_ARGS(BPF_RET), XLAT_ARGS(BPF_K), in print_filter()
/external/strace/tests-m32/
Dseccomp-filter-v.c56 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)
164 case BPF_RET: in main()
Dprctl-seccomp-filter-v.c56 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)
Dsock_filter-v.c73 BPF_STMT(BPF_RET|BPF_K, -1U),
74 BPF_STMT(BPF_RET|BPF_K, 0)
111 XLAT_ARGS(BPF_RET), XLAT_ARGS(BPF_K), in print_filter()
115 XLAT_ARGS(BPF_RET), XLAT_ARGS(BPF_K), in print_filter()
/external/strace/tests/
Dseccomp-filter-v.c56 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)
164 case BPF_RET: in main()
Dprctl-seccomp-filter-v.c56 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)
Dsock_filter-v.c73 BPF_STMT(BPF_RET|BPF_K, -1U),
74 BPF_STMT(BPF_RET|BPF_K, 0)
111 XLAT_ARGS(BPF_RET), XLAT_ARGS(BPF_K), in print_filter()
115 XLAT_ARGS(BPF_RET), XLAT_ARGS(BPF_K), in print_filter()
/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)
110 BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_ALLOW), \
128 BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_ALLOW), \
139 BPF_STMT(BPF_RET+BPF_K, SECCOMP_FILTER_FAIL),
314 BPF_STMT(BPF_RET+BPF_K, SECCOMP_FILTER_FAIL),
/external/compiler-rt/test/asan/TestCases/Linux/
Dread_binary_name_regtest.c38 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.c43 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/minijail/tools/
Dbpf.py36 BPF_RET = 0x06 variable
125 elif ins.code == BPF_RET:
201 [SockFilter(BPF_RET, 0x00, 0x00, SECCOMP_RET_KILL_PROCESS)])
209 [SockFilter(BPF_RET, 0x00, 0x00, SECCOMP_RET_KILL_THREAD)])
216 super().__init__([SockFilter(BPF_RET, 0x00, 0x00, SECCOMP_RET_TRAP)])
223 super().__init__([SockFilter(BPF_RET, 0x00, 0x00, SECCOMP_RET_TRACE)])
230 super().__init__([SockFilter(BPF_RET, 0x00, 0x00, SECCOMP_RET_USER_NOTIF)])
237 super().__init__([SockFilter(BPF_RET, 0x00, 0x00, SECCOMP_RET_LOG)])
245 SockFilter(BPF_RET, 0x00, 0x00,
255 super().__init__([SockFilter(BPF_RET, 0x00, 0x00, SECCOMP_RET_ALLOW)])
/external/libpcap/
Dbpf_filter.c115 case BPF_RET|BPF_K: in pcap_filter_with_aux_data()
118 case BPF_RET|BPF_A: in pcap_filter_with_aux_data()
521 case BPF_RET: in pcap_validate_filter()
529 return BPF_CLASS(f[len - 1].code) == BPF_RET; in pcap_validate_filter()
/external/ltp/testcases/kernel/syscalls/prctl/
Dprctl04.c47 BPF_STMT(BPF_RET | BPF_K, SECCOMP_RET_KILL),
48 BPF_STMT(BPF_RET | BPF_K, SECCOMP_RET_ALLOW)
/external/strace/
Dbpf_seccomp_filter.c46 if (BPF_CLASS(fp->code) == BPF_RET) { in print_seccomp_filter_k()

123