lkrg-org / lkrg

Linux Kernel Runtime Guard
https://lkrg.org
Other
402 stars 72 forks source link

insmod error #248

Closed 12D687 closed 1 year ago

12D687 commented 1 year ago

When I try to load lkrg ( sudo insmod output/lkrg.ko kint_enforce=1 ) I face this issue. insmod: ERROR: could not insert module output/lkrg.ko: Operation not permitted

solardiz commented 1 year ago

My best guess is you do not really have root, not even after sudo - are you perhaps running this in a container? Also, does anything appear in dmesg?

Not an issue we need to track, so closing it, but please feel free to add comments.

solardiz commented 1 year ago

Of course, this needs to be run as root. I never said nor implied otherwise.

If your sudo works correctly, this isn't in a container, and nothing appears in dmesg, then I don't have a good guess as to what the problem may be.

As you had also opened a different issue, it sounds like you were successfully running LKRG on some other system, correct? If so, you'll need to figure out what's different between the systems or/and between your actions.