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

Built ELF file via builder image owned by root #57

Open
lgadban opened this issue Jan 11, 2022 · 0 comments
Open

Built ELF file via builder image owned by root #57

lgadban opened this issue Jan 11, 2022 · 0 comments

Comments

@lgadban
Copy link
Collaborator

lgadban commented Jan 11, 2022

Version

main

Linux Version

N/A

Describe the bug

When iterating builds with the build container (not as sudo), the BPF ELF generated is owned by root, so successive builds fail until the ELF is manually removed e.g. via sudo

Steps to reproduce the bug

$ ./mybee build examples/tcpconnect/tcpconnect.c tcpconnect
Error: open examples/tcpconnect/tcpconnect.o: permission denied
2022/01/11 16:51:00 exiting: open examples/tcpconnect/tcpconnect.o: permission denied
 ls -al examples/tcpconnect/tcpconnect.o 
-rw-r--r-- 1 root root 731424 Jan 11 02:17 examples/tcpconnect/tcpconnect.o

Expected Behavior

UX allowing iteration without manual cleanup necessary

Additional Context

No response

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

No branches or pull requests

1 participant