Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
clang: check header ownership (iovisor#4928)
Example testing with a brendan-owned /tmp/kheaders file (note the "ERROR:" message): ~/bcc/build$ sudo /usr/share/bcc/tools/biosnoop ERROR: header file ownership unexpected: /tmp/kheaders-5.15.47-internal <built-in>:1:10: fatal error: './include/linux/kconfig.h' file not found #include "./include/linux/kconfig.h" ^~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated. Traceback (most recent call last): File "/usr/share/bcc/tools/biosnoop", line 335, in <module> b = BPF(text=bpf_text) File "/usr/lib/python3/dist-packages/bcc-0.1.5+6cd27218-py3.10.egg/bcc/__init__.py", line 479, in __init__ Exception: Failed to compile BPF module <text> ~/bcc/build$ ls -lhd /tmp/kheaders-5.15.47-internal drwxrwxr-x 2 brendan dev 4.0K Mar 6 02:50 /tmp/kheaders-5.15.47-internal No error when chown'd back to root.
- Loading branch information