<div dir="ltr"><span style="color:rgb(68,68,68);font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif;font-size:13px;line-height:17px;background-color:rgb(250,250,250)">I am following </span><a href="http://fedoraproject.org/wiki/Building_a_custom_kernel" rel="nofollow" style="margin:0px;padding:0px;border:0px;font-size:13px;vertical-align:baseline;background-color:rgb(250,250,250);color:rgb(74,107,130);text-decoration:none;font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif;line-height:17px">fedoraproject.org/wiki/Building_a_custom_kernel</a><span style="color:rgb(68,68,68);font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif;font-size:13px;line-height:17px;background-color:rgb(250,250,250)"> to rebuild the kernel.</span><br>
<div><span style="color:rgb(68,68,68);font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif;font-size:13px;line-height:17px;background-color:rgb(250,250,250)">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. </span></div>
<div><span style="color:rgb(68,68,68);font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif;font-size:13px;line-height:17px;background-color:rgb(250,250,250)"><br></span></div><div><span style="color:rgb(68,68,68);font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif;font-size:13px;line-height:17px;background-color:rgb(250,250,250)">Thanks in advance</span><span style="color:rgb(68,68,68);font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif;font-size:13px;line-height:17px;background-color:rgb(250,250,250)"><br>
</span></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Dec 27, 2013 at 7:58 PM, Kevin Wilson <span dir="ltr"><<a href="mailto:wkevils@gmail.com" target="_blank">wkevils@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
What do you mean by changing kernel.spec? are you building it with<br>
rpmbuild ? can you describe how you are trying to build it ?<br>
<span class="HOEnZb"><font color="#888888"><br>
KW<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Fri, Dec 27, 2013 at 4:22 PM, Andy Johnson <<a href="mailto:johnsonzjo@gmail.com">johnsonzjo@gmail.com</a>> wrote:<br>
> Laxmi,<br>
> How exactly do you try to disable it? do you set CONFIG_MODULES to N?<br>
> which error do you get in compile ? can you please post it here ?<br>
><br>
> regards,<br>
> Rami Rosen<br>
> <a href="http://ramirose.wix.com/ramirosen" target="_blank">http://ramirose.wix.com/ramirosen</a><br>
><br>
> On Fri, Dec 27, 2013 at 10:54 AM, Laxmi Meena <<a href="mailto:laxmicair@gmail.com">laxmicair@gmail.com</a>> wrote:<br>
>> Hi All,<br>
>><br>
>> As part of hardening of kernel, I want to disable module support. so that in<br>
>> the server dynamic loading of module is not supported. Otherwise it is<br>
>> possible to create malicious modules and load it.<br>
>> When i try to disable the module support.I am not able to compile the<br>
>> kernel.<br>
>><br>
>> Do I need to make changes in kernel.spec file.<br>
>><br>
>> Thanks in advance.<br>
>><br>
>> _______________________________________________<br>
>> Kernelnewbies mailing list<br>
>> <a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
>> <a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
>><br>
><br>
> _______________________________________________<br>
> Kernelnewbies mailing list<br>
> <a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
> <a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
</div></div></blockquote></div><br></div>