Home
last modified time | relevance | path

Searched refs:bpf (Results 1 – 25 of 152) sorted by relevance

1234567

/system/netd/tests/
Dkernel_test.cpp86 if (bpf::isKernel32Bit()) GTEST_SKIP() << "Exempt on 32-bit kernel."; in TEST()
97 if (!bpf::isAtLeastKernelVersion(5, 16, 0)) GTEST_SKIP() << "Exempt on < 5.16 kernel."; in TEST()
98 ASSERT_TRUE(bpf::isKernel64Bit()); in TEST()
104 if (!bpf::isX86()) GTEST_SKIP() << "Exempt on non-x86 architecture."; in TEST()
105 ASSERT_TRUE(bpf::isKernel64Bit()); in TEST()
110 ASSERT_TRUE(bpf::isAtLeastKernelVersion(4, 19, 0)); in TEST()
115 ASSERT_TRUE(!bpf::isRiscV()); in TEST()
119 ASSERT_TRUE(bpf::isLtsKernel()); in TEST()
133 if (!bpf::isKernelVersion((major), (minor))) GTEST_SKIP() << "Not for this LTS ver."; \
134 ASSERT_TRUE(bpf::isAtLeastKernelVersion((major), (minor), (sub))); \
[all …]
/system/sepolicy/prebuilts/api/29.0/private/
Dbpfloader.te1 # bpf program loader
6 # These permission is required for pin bpf program for netd.
11 # Allow bpfloader to create bpf maps and programs. The map_read and map_write permission is needed
13 allow bpfloader self:bpf { prog_load prog_run map_read map_write map_create };
20 neverallow { domain -bpfloader } *:bpf { map_create prog_load };
21 neverallow { domain -bpfloader -netd -netutils_wrapper } *:bpf prog_run;
24 # only system_server, netd and bpfloader can read/write the bpf maps
25 neverallow { domain -system_server -netd -bpfloader} *:bpf { map_read map_write };
/system/sepolicy/prebuilts/api/30.0/private/
Dbpfloader.te1 # bpf program loader
10 # Allow bpfloader to create bpf maps and programs.
11 allow bpfloader self:bpf { map_create map_read map_write prog_load prog_run };
29 neverallow { domain -bpfloader } *:bpf { map_create prog_load };
30 neverallow { domain -bpfloader -netd -netutils_wrapper -system_server } *:bpf prog_run;
31 neverallow { domain -bpfloader -netd -system_server } *:bpf { map_read map_write };
/system/sepolicy/prebuilts/api/33.0/private/
Dgpuservice.te50 # Needed for reading tracepoint ids in order to attach bpf programs.
55 # Needed for interact with bpf fs.
56 # Write is needed to open read/write bpf maps.
59 # Needed for enabling bpf programs and accessing bpf maps (read-only and read/write).
60 allow gpuservice bpfloader:bpf { map_read map_write prog_run };
62 # Needed for getting a prop to ensure bpf programs loaded.
Dbpfloader.te13 # Allow bpfloader to create bpf maps and programs.
14 allow bpfloader self:bpf { map_create map_read map_write prog_load prog_run };
45 neverallow { domain -bpfloader } *:bpf { map_create prog_load };
57 } *:bpf prog_run;
58 …puservice -lmkd -mediaprovider_app -netd -network_stack -system_server } *:bpf { map_read map_writ…
68 # Currently only bpfloader.rc (which runs as init) can do bpf sysctl setup
Dbpfdomain.te11 # any domain which uses bpf is a bpfdomain
12 neverallow { domain -bpfdomain } *:bpf *;
/system/sepolicy/prebuilts/api/32.0/private/
Dbpfloader.te1 # bpf program loader
11 # Allow bpfloader to create bpf maps and programs.
12 allow bpfloader self:bpf { map_create map_read map_write prog_load prog_run };
34 neverallow { domain -bpfloader } *:bpf { map_create prog_load };
35 …main -bpfloader -gpuservice -netd -netutils_wrapper -network_stack -system_server } *:bpf prog_run;
36 neverallow { domain -bpfloader -gpuservice -lmkd -netd -network_stack -system_server } *:bpf { map_…
Dgpuservice.te48 # Needed for reading tracepoint ids in order to attach bpf programs.
53 # Needed for interact with bpf fs.
57 # Needed for enable the bpf program and read the map.
58 allow gpuservice bpfloader:bpf { map_read prog_run };
60 # Needed for getting a prop to ensure bpf programs loaded.
/system/sepolicy/prebuilts/api/31.0/private/
Dbpfloader.te1 # bpf program loader
11 # Allow bpfloader to create bpf maps and programs.
12 allow bpfloader self:bpf { map_create map_read map_write prog_load prog_run };
34 neverallow { domain -bpfloader } *:bpf { map_create prog_load };
35 …main -bpfloader -gpuservice -netd -netutils_wrapper -network_stack -system_server } *:bpf prog_run;
36 neverallow { domain -bpfloader -gpuservice -lmkd -netd -network_stack -system_server } *:bpf { map_…
Dgpuservice.te48 # Needed for reading tracepoint ids in order to attach bpf programs.
53 # Needed for interact with bpf fs.
57 # Needed for enable the bpf program and read the map.
58 allow gpuservice bpfloader:bpf { map_read prog_run };
60 # Needed for getting a prop to ensure bpf programs loaded.
/system/sepolicy/prebuilts/api/34.0/private/
Dgpuservice.te50 # Needed for reading tracepoint ids in order to attach bpf programs.
55 # Needed for interact with bpf fs.
56 # Write is needed to open read/write bpf maps.
59 # Needed for enabling bpf programs and accessing bpf maps (read-only and read/write).
60 allow gpuservice bpfloader:bpf { map_read map_write prog_run };
Dbpfloader.te14 # Allow bpfloader to create bpf maps and programs.
15 allow bpfloader self:bpf { map_create map_read map_write prog_load prog_run };
49 neverallow { domain -bpfloader } *:bpf { map_create prog_load };
52 neverallow { domain -bpfloader } fs_bpf_loader:bpf *;
65 } *:bpf prog_run;
66 …puservice -lmkd -mediaprovider_app -netd -network_stack -system_server } *:bpf { map_read map_writ…
Dbpfdomain.te11 # any domain which uses bpf is a bpfdomain
12 neverallow { domain -bpfdomain } *:bpf *;
24 # common/native/bpf_headers/include/bpf/WaitForProgsLoaded.h
/system/sepolicy/private/
Dgpuservice.te49 # Needed for reading tracepoint ids in order to attach bpf programs.
54 # Needed for interact with bpf fs.
55 # Write is needed to open read/write bpf maps.
58 # Needed for enabling bpf programs and accessing bpf maps (read-only and read/write).
59 allow gpuservice bpfloader:bpf { map_read map_write prog_run };
Dbpfdomain.te11 # any domain which uses bpf is a bpfdomain
12 neverallow { domain -bpfdomain } *:bpf *;
24 # common/native/bpf_headers/include/bpf/WaitForProgsLoaded.h
Dbpfloader.te14 # Allow bpfloader to create bpf maps and programs.
15 allow bpfloader self:bpf { map_create map_read map_write prog_load prog_run };
50 neverallow { domain -bpfloader } *:bpf prog_load;
51 neverallow { domain -bpfdomain } *:bpf { map_create map_read map_write prog_run };
54 neverallow { domain -bpfloader } fs_bpf_loader:bpf *;
/system/sepolicy/prebuilts/api/202404/private/
Dgpuservice.te49 # Needed for reading tracepoint ids in order to attach bpf programs.
54 # Needed for interact with bpf fs.
55 # Write is needed to open read/write bpf maps.
58 # Needed for enabling bpf programs and accessing bpf maps (read-only and read/write).
59 allow gpuservice bpfloader:bpf { map_read map_write prog_run };
Dbpfdomain.te11 # any domain which uses bpf is a bpfdomain
12 neverallow { domain -bpfdomain } *:bpf *;
24 # common/native/bpf_headers/include/bpf/WaitForProgsLoaded.h
Dbpfloader.te14 # Allow bpfloader to create bpf maps and programs.
15 allow bpfloader self:bpf { map_create map_read map_write prog_load prog_run };
50 neverallow { domain -bpfloader } *:bpf { map_create prog_load };
53 neverallow { domain -bpfloader } fs_bpf_loader:bpf *;
67 } *:bpf prog_run;
68 …kd -mediaprovider_app -netd -network_stack -system_server -uprobestats } *:bpf { map_read map_writ…
/system/bpf/loader/
DBpfLoadTest.cpp31 namespace bpf { namespace
76 EXPECT_EQ(android::bpf::loadProg(progPath.c_str(), &critical, loc), -1); in SetUp()
78 EXPECT_EQ(android::bpf::loadProg(progPath.c_str(), &critical), 0); in SetUp()
97 android::bpf::BpfMap<uint32_t, uint32_t> m(mTpMapPath.c_str()); in checkMapNonZero()
DBpfLoader.cpp76 const android::bpf::Location locations[] = {
100 int loadAllElfObjects(const android::bpf::Location& location) { in loadAllElfObjects()
114 int ret = android::bpf::loadProg(progPath.c_str(), &critical, location); in loadAllElfObjects()
/system/bpfprogs/
DAndroid.bp30 bpf {
39 "system/bpf/progs/include",
58 name: "bpf-time-in-state-tests",
83 bpf {
/system/memory/libmeminfo/libmemevents/bpfprogs/
DAndroid.bp14 bpf {
26 bpf {
/system/bpfprogs/test/
DAndroid.bp21 bpf {
30 bpf {
/system/netd/tests/benchmarks/
Dbpf_benchmark.cpp28 using android::bpf::BpfMap;
72 int ret = android::bpf::synchronizeKernelRCU(); in BENCHMARK_DEFINE_F()

1234567