LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-06-2009, 01:20 PM   #1
alfrag
LQ Newbie
 
Registered: Dec 2008
Posts: 3

Rep: Reputation: 0
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
 
Old 01-06-2009, 01:40 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Sorry if this question is silly, but which user are you doing this as?
 
Old 01-07-2009, 01:59 AM   #3
alfrag
LQ Newbie
 
Registered: Dec 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Tinkster View Post
Sorry if this question is silly, but which user are you doing this as?
i'm doing this as root.

I've also tried the following: i recompiled kernel 2.6.28 using the .config file of kernel 2.6.27-7.

Now the LKM can be loaded with insmod.
This means that the LKM module was not loaded in the initial 2.6.28 kernel because of an option set (or not set) during make menuconfig.

Thanks,
Alex
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Operation not permitted prasunhowlader Linux - Newbie 3 08-20-2008 09:29 PM
Operation not permitted jakkals Linux - General 3 09-26-2005 07:30 PM
su - operation not permitted jrtayloriv Linux - Newbie 2 06-09-2005 09:27 PM
operation not permitted jamaso Slackware 2 05-08-2004 05:55 AM
Operation not permitted FrozenShadow23 Linux - Newbie 6 10-05-2003 05:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration