kernel.xml 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. <para>If, in <xref linkend="ch-scripts-console"/>, you decided you want
  27. to compile the keymap into the kernel, issue the command below:</para>
  28. <screen><userinput>loadkeys -m /usr/share/kbd/keymaps/<replaceable>[path to keymap]</replaceable> &gt; \
  29. <replaceable>[unpacked sources dir]</replaceable>/linux-&linux-version;/drivers/char/defkeymap.c</userinput></screen>
  30. <para>Configure the kernel via a menu-driven interface:</para>
  31. <screen><userinput>make menuconfig</userinput></screen>
  32. <para>Compile the kernel image and modules:</para>
  33. <screen><userinput>make</userinput></screen>
  34. <para>Install the modules, if your kernel configuration uses them:</para>
  35. <screen><userinput>make modules_install</userinput></screen>
  36. <para>The path to the kernel image may vary depending on the platform you're
  37. using. Issue the following command to install the kernel:</para>
  38. <screen><userinput>cp arch/i386/boot/bzImage /boot/lfskernel-&linux-version;</userinput></screen>
  39. <screen><userinput>cp System.map /boot/System.map-&linux-version;</userinput></screen>
  40. <screen><userinput>cp .config /boot/config-&linux-version;</userinput></screen>
  41. <para>If you are going to keep the kernel source tree around, you may want to
  42. run <command>chown -R 0:0</command> on the
  43. <filename class="directory">linux-&linux-version;</filename> directory to ensure all files are
  44. owned by user <emphasis>root</emphasis>.</para>
  45. </sect2>
  46. <sect2 id="contents-kernel" role="content"><title>Contents of Linux</title>
  47. <para>See testing</para>
  48. </sect2>
  49. </sect1>