diff --git a/bpfloader/BpfLoader.cpp b/bpfloader/BpfLoader.cpp index 8d8ae4f..f153b40 100644 --- a/bpfloader/BpfLoader.cpp +++ b/bpfloader/BpfLoader.cpp @@ -227,5 +227,10 @@ int main(int argc, char** argv) { } } + if (android::base::SetProperty("bpf.progs_loaded", "1") == false) { + ALOGE("Failed to set bpf.progs_loaded property"); + return 1; + } + return 0; } diff --git a/bpfloader/bpfloader.rc b/bpfloader/bpfloader.rc index 1f7f815..95f8a61 100644 --- a/bpfloader/bpfloader.rc +++ b/bpfloader/bpfloader.rc @@ -15,8 +15,8 @@ # considered to have booted successfully. # on load_bpf_programs - exec_start bpfloader exec_start netbpfload + exec_start bpfloader service bpfloader /system/bin/bpfloader capabilities CHOWN SYS_ADMIN