-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
The current user does not have CAP_BPF to load bpf programs #706
Comments
Could you check CONFIG_BPF by |
is there /boot for android? I got the same issue, too. Here's for my /proc/config.gz (android 12)
|
The message is provided by detectBpfCap(). ecapture/cli/cmd/env_detection.go Lines 49 to 70 in b01cb60
Can you figure out the reason why BPF syscall returns -EPERM? A possible approach is to use retsnoop by |
tag v0.8.10 does not have this BPF permission detection function. @Shapa7276 Can you test it with this version? |
@cfc4n it worked :) |
I don't think there will be CONFIG_DEBUG_INFO_BTF enabled android kernels... , any other way to check? |
check memlock with cmd ulimit -l, exec ulimit -l unlimited and retry I also encountered the same problem. After modifying the code, I got the specific error information and modify memlock to solve it. By the way, older ecapture versions seem to be less prone to this problem, if the recent modification increased ecapture memory costs? run ecapture
code
|
|
Describe the bug
I am getting below error while trying the capture the TLS
**Android **
ecapture -v
to get the eCapture version, or run themake env
command for complete information]The text was updated successfully, but these errors were encountered: