1
0

kernel.xml 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
  3. <!ENTITY % general-entities SYSTEM "../general.ent">
  4. %general-entities;
  5. ]>
  6. <sect1 id="ch-bootable-kernel" xreflabel="Linux" role="wrap">
  7. <title>Linux-&linux-version;</title>
  8. <?dbhtml filename="kernel.html"?>
  9. <indexterm zone="ch-bootable-kernel"><primary sortas="a-Linux">Linux</primary></indexterm>
  10. <sect2 role="package"><title/>
  11. <segmentedlist>
  12. <segtitle>&buildtime;</segtitle>
  13. <segtitle>&diskspace;</segtitle>
  14. <seglistitem><seg>All default options: 4.20 SBU</seg>
  15. <seg>All default options: 181 MB</seg></seglistitem>
  16. </segmentedlist>
  17. </sect2>
  18. <sect2 role="installation">
  19. <title>Installation of the kernel</title>
  20. <para>Kernel version 2.6.10 has a security vulnerability that will allow user
  21. processes to gain root privledges upon loading of a kernel module. See:
  22. <ulink url="http://www.uwsg.iu.edu/hypermail/linux/kernel/0412.3/0679.html"/> for more information. The following patch fixes this problem:</para>
  23. <screen><userinput>patch -Np1 -i ../linux-&linux-version;-security_fix-1.patch</userinput></screen>
  24. <para>Prepare for compilation by running the following command:</para>
  25. <screen><userinput>make mrproper</userinput></screen>
  26. <!--NEW: the sed command has been removed-->
  27. <para>If, in <xref linkend="ch-scripts-console"/>, you decided you want
  28. to compile the keymap into the kernel, issue the command below:</para>
  29. <screen><userinput>loadkeys -m /usr/share/kbd/keymaps/<replaceable>[path to keymap]</replaceable> &gt; \
  30. drivers/char/defkeymap.c</userinput></screen>
  31. <para>Configure the kernel via a menu-driven interface:</para>
  32. <screen><userinput>make menuconfig</userinput></screen>
  33. <para>Compile the kernel image and modules:</para>
  34. <screen><userinput>make</userinput></screen>
  35. <para>Install the modules, if your kernel configuration uses them:</para>
  36. <screen><userinput>make modules_install</userinput></screen>
  37. <para>The path to the kernel image may vary depending on the platform you're
  38. using. Issue the following command to install the kernel:</para>
  39. <screen><userinput>cp arch/i386/boot/bzImage /boot/lfskernel-&linux-version;</userinput></screen>
  40. <screen><userinput>cp System.map /boot/System.map-&linux-version;</userinput></screen>
  41. <screen><userinput>cp .config /boot/config-&linux-version;</userinput></screen>
  42. <para>If you are going to keep the kernel source tree around, you may want to
  43. run <command>chown -R 0:0</command> on the
  44. <filename class="directory">linux-&linux-version;</filename> directory to ensure all files are
  45. owned by user <emphasis>root</emphasis>.</para>
  46. </sect2>
  47. <sect2 id="contents-kernel" role="content"><title>Contents of Linux</title>
  48. <para>See testing</para>
  49. </sect2>
  50. </sect1>