<div dir="ltr"><span style="color:rgb(68,68,68);font-family:Arial,&#39;Liberation Sans&#39;,&#39;DejaVu Sans&#39;,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,&#39;Liberation Sans&#39;,&#39;DejaVu Sans&#39;,sans-serif;line-height:17px">fedoraproject.org/wiki/Building_a_custom_kernel</a><span style="color:rgb(68,68,68);font-family:Arial,&#39;Liberation Sans&#39;,&#39;DejaVu Sans&#39;,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,&#39;Liberation Sans&#39;,&#39;DejaVu Sans&#39;,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,&#39;Liberation Sans&#39;,&#39;DejaVu Sans&#39;,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,&#39;Liberation Sans&#39;,&#39;DejaVu Sans&#39;,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,&#39;Liberation Sans&#39;,&#39;DejaVu Sans&#39;,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">&lt;<a href="mailto:wkevils@gmail.com" target="_blank">wkevils@gmail.com</a>&gt;</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 &lt;<a href="mailto:johnsonzjo@gmail.com">johnsonzjo@gmail.com</a>&gt; wrote:<br>
&gt; Laxmi,<br>
&gt; How exactly do you try to disable it?  do you set CONFIG_MODULES to N?<br>
&gt;  which error do you get in compile ? can you please post it here ?<br>
&gt;<br>
&gt; regards,<br>
&gt; Rami Rosen<br>
&gt; <a href="http://ramirose.wix.com/ramirosen" target="_blank">http://ramirose.wix.com/ramirosen</a><br>
&gt;<br>
&gt; On Fri, Dec 27, 2013 at 10:54 AM, Laxmi Meena &lt;<a href="mailto:laxmicair@gmail.com">laxmicair@gmail.com</a>&gt; wrote:<br>
&gt;&gt; Hi All,<br>
&gt;&gt;<br>
&gt;&gt; As part of hardening of kernel, I want to disable module support. so that in<br>
&gt;&gt; the server dynamic loading of module is not supported. Otherwise it is<br>
&gt;&gt; possible to create malicious modules and load it.<br>
&gt;&gt; When i try to disable the module support.I am not able to compile the<br>
&gt;&gt; kernel.<br>
&gt;&gt;<br>
&gt;&gt; Do I need to make changes in kernel.spec file.<br>
&gt;&gt;<br>
&gt;&gt; Thanks in advance.<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Kernelnewbies mailing list<br>
&gt;&gt; <a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
&gt;&gt; <a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
&gt;&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Kernelnewbies mailing list<br>
&gt; <a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
&gt; <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>