Thread (5 messages) read the whole thread 5 messages, 3 authors, 2013-12-29

disable module support in kernel

From: Laxmi Meena <hidden>
Date: 2013-12-29 04:05:09

To disable module support . I used  "make xconfig" command and unselected
"Enable module support" option.


On Sun, Dec 29, 2013 at 9:32 AM, Laxmi Meena [off-list ref] wrote:
I am following fedoraproject.org/wiki/Building_a_custom_kernel to rebuild
the kernel.
I have disabled all modules before compilation using make xconfig and I
have also checked .config file , there is not any =m option. I think I need
to modify kernel.spec file as I am compiling the kernel using kernel.spec
file(using rpmbuild command). And in kernel.spec file it is having options
to build modules ,create module directories etc. I am not getting in this
file where all to make changes.

Thanks in advance


On Fri, Dec 27, 2013 at 7:58 PM, Kevin Wilson [off-list ref] wrote:
quoted
Hi,
What do you mean by changing kernel.spec? are you building it with
rpmbuild ? can you describe how you are trying to build it ?

KW

On Fri, Dec 27, 2013 at 4:22 PM, Andy Johnson [off-list ref]
wrote:
quoted
Laxmi,
How exactly do you try to disable it?  do you set CONFIG_MODULES to N?
 which error do you get in compile ? can you please post it here ?

regards,
Rami Rosen
http://ramirose.wix.com/ramirosen

On Fri, Dec 27, 2013 at 10:54 AM, Laxmi Meena [off-list ref]
wrote:
quoted
quoted
Hi All,

As part of hardening of kernel, I want to disable module support. so
that in
quoted
quoted
the server dynamic loading of module is not supported. Otherwise it is
possible to create malicious modules and load it.
When i try to disable the module support.I am not able to compile the
kernel.

Do I need to make changes in kernel.spec file.

Thanks in advance.

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20131229/152bc490/attachment.html 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help