android_system_bpf/loader
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Motomu Utsumi 315feea5fc Fix kernel version check for program loading
Before this CL, the kernel version check occurred after all programs
were loaded by `open_file.load()`.

This CL moves the check before `open_file.load()`. It calls
`prog.set_autoload(false)` for programs incompatible with the current
kernel, preventing their auto-load by libbpf.

Test: Verify the program is not loaded if the kver is out of range
Bug: 410982483
Change-Id: Ifacd9dd8696a7bb4fd186ad1faf01fba9f021c6d
2025-05-21 15:29:27 +09:00
..
include BpfLoader: remove unnecessary logging functionality 2024-10-04 21:10:13 +00:00
Android.bp Explicitly set bpf fuse program type for fuse/ programs 2025-05-19 13:37:50 +09:00
bpfloader.rs Fix kernel version check for program loading 2025-05-21 15:29:27 +09:00
BpfLoadTest.cpp BpfLoadTest: change some EXPECT's to ASSERT's 2024-09-17 00:04:20 +00:00
Loader.cpp Add -Wshadow to bpf_cc_defaults 2025-03-21 16:27:05 +09:00