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
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 byroot
, so successive builds fail until the ELF is manually removed e.g. viasudo
Steps to reproduce the bug
Expected Behavior
UX allowing iteration without manual cleanup necessary
Additional Context
No response