insmod, operation not permitted
Hi all,
i've succesfully compiled an LKM that registers a generic netlink family. I've used kernel 2.6.27-7.
I've now compiled a new kernel version (2.6.28). I've also succesfully compiled the LKM with the new kernel.
But, when i try insmod mylkm.ko i get the following error:
insmod: error inserting 'mylkm.ko': -1 Operation not permitted
The problem seems to be with the function genl_register_family that runs when the module is being loaded. For some reason kernel denies that operation.
Any ideas?
Thanks in advance,
Alex
|