Tell me more ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Is there any way how to stop unused module to loadable kernel module other than putting them in the mod probe blacklist.

share|improve this question
3  
What is the problem with blacklisting? – jasonwryan Mar 31 at 3:43
Kernel is not that smart yet – warl0ck Mar 31 at 4:12
1  
@jasonwryan i want to stop loading of external modules i.e. related to application or os or whatever it may be. my intention is that no one should insert module using insmod/modprobe after booting. – subbarao Mar 31 at 4:56
@jasonwryan if i know which module i am inserting i can put it in blacklist but i want to generalize so that whatever module it is it can't be loadable. i mean i want to block loading of modules. – subbarao Mar 31 at 4:59
any one reply me – subbarao Mar 31 at 5:25
show 4 more comments

1 Answer

If the kernel is loading modules that aren't needed, that is a bug, pure and simple. First make sure your "unused modules" aren't really dependencies for modules you are using, then find out how to reproduce it simply (hopefully without any closed source modules), and report it to your distribution.

Anything else is just papering over a problem, and might cause problems on its own.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.