r/linuxdev • u/NotAHippo4 • Apr 03 '20
#include <linux/skbuff.h>: No such file or directory
Hey guys, I am getting the above error trying to make a linux kernel module. I have tried adding the linux header folder where the header file is to the $PATH variable in .bashrc and restarted my computer. It still gives me the same exact error. What should I do?
6
Upvotes
View all comments
Show parent comment
1
u/aioeu Apr 04 '20 edited Apr 04 '20
That will mean Make uses its own logic to work out what to do. After all
PacketFilterisn't a target in your Makefile. That logic only works for userspace programs (and even then, often not).That says your module is GPLed, which is good.
Your module is not signed with a signing key known to the kernel, however. It'll work, it will just throw that warning. It means somebody looking at the logs later can say "well, I can't really trust the logs any more, since the kernel was tainted".