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
Handle EPERM everywhere #845
Comments
For context
The relocation errors happens because the target map - in this case .rodata - is skipped during load as |
Can we be 100% sure that we won't get EPERM from syscalls under any other circumstance than failing the capabilities check? |
Oh no we definitely will. The point is that we need to handle those cases and output meaningful error messages. From the error you get right now if you run without sudo it gives the impression that there is some kind of relocation bug 😅 |
Sometimes, aya programs are executed without xtask -- and require sudo to execute properly, otherwise there are insufficient permissions. Aya does not currently have good error output in this case, e.g.:
For each of the BPF calls, the error should be checked if EPERM and handled explicitly.
The text was updated successfully, but these errors were encountered: