Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: BPF_PROG_TYPE issue for android #275

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

pomhg
Copy link

@pomhg pomhg commented Aug 13, 2023

Background

pname is useful for dae running on android, e.g. pname(netd) -> must_direct. (netd is the networkmanager for android)
dae pname not working on android, coz the bpf prog type name is different in libbpf_android.

Error 1
FATA[0002] Attach(group: (GroupSock(tproxy_wan_cg_sock_create)#27: create link: operation not permitted

Error 2
FATA[0000] load eBPF objects: field TproxyWanCgConnect4: cannot load program tproxy_wan_cg_connect4: program type is unspecified

Refs.
AOSP Extending the Kernel with eBPF

Loader.cpp main branch source

Loader.cpp android13-qpr3-release branch source

Checklist

Full Changelogs

  • Error 1 solved
  • Error 2 upstream AOSP newer version of bpfloader for android needed, coz connect4/6 and sendmsg4/6 are not fully supported until bpfloader v0.36 which is now v0.19 in android13-qpr3-release branch.

Issue Reference

Closes #[issue number]

Test Result

@dae-prow dae-prow bot assigned pomhg Aug 13, 2023
@pomhg pomhg changed the title fix BPF_PROG_TYPE issue for android fix: BPF_PROG_TYPE issue for android Aug 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant