insmod: ERROR: could not insert module mymodule.ko: Operation not permitted
I have generated the .ko for my testing.
But I can not able to insmod this, its giving the below error insmod: ERROR: could not insert module mymodule.ko: Operation not permitted
I have searched this is google, found need to disable the secure boot, but in my PC if I am disabling the secure boot this is bootingup the windows, I can not get my linux PC boot.
Please suggest for this insmod issue.
If you are are using UEFI on you PC and you have it as secure mode, then your module should be sign. To sign your module you need to do somehting like this https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/System_Administrators_Guide/sect-signing-kernel-modules-for-secure-boot.html .
Not done my self actually google it I think there is another response with about the same issue. Hope this help or point you into the right direction
Also check this answer https://ask.fedoraproject.org/en/question/65473/virtualbox-error/ it detail a method to create a key for secure boot