[673b0d8] | 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 | ]>
|
---|
[a001133] | 6 | <sect1 id="ch-bootable-kernel" xreflabel="Linux" role="wrap">
|
---|
[673b0d8] | 7 | <title>Linux-&linux-version;</title>
|
---|
| 8 | <?dbhtml filename="kernel.html"?>
|
---|
| 9 |
|
---|
| 10 | <indexterm zone="ch-bootable-kernel"><primary sortas="a-Linux">Linux</primary></indexterm>
|
---|
[6370fa6] | 11 |
|
---|
[a001133] | 12 | <sect2 role="package"><title/>
|
---|
[5888299] | 13 |
|
---|
[a001133] | 14 | <segmentedlist>
|
---|
| 15 | <segtitle>&buildtime;</segtitle>
|
---|
| 16 | <segtitle>&diskspace;</segtitle>
|
---|
| 17 | <seglistitem><seg>All default options: 4.20 SBU</seg>
|
---|
| 18 | <seg>All default options: 181 MB</seg></seglistitem>
|
---|
| 19 | </segmentedlist>
|
---|
| 20 |
|
---|
| 21 | </sect2>
|
---|
| 22 |
|
---|
| 23 | <sect2 role="installation">
|
---|
[2081905] | 24 | <title>Installation of the kernel</title>
|
---|
| 25 |
|
---|
[1d609dce] | 26 | <para>Kernel version 2.6.10 has a security vulnerability that will allow user
|
---|
| 27 | processes to gain root privledges upon loading of a kernel module. See:
|
---|
| 28 | <ulink url="http://www.uwsg.iu.edu/hypermail/linux/kernel/0412.3/0679.html"/> for more information. The following patch fixes this problem:</para>
|
---|
[2081905] | 29 |
|
---|
[1d609dce] | 30 | <screen><userinput>patch -Np1 -i ../linux-&linux-version;-security_fix-1.patch</userinput></screen>
|
---|
[2081905] | 31 |
|
---|
[1d609dce] | 32 | <para>Prepare for compilation by running the following command:</para>
|
---|
[b9e738a] | 33 |
|
---|
[1d609dce] | 34 | <screen><userinput>make mrproper</userinput></screen>
|
---|
[b9e738a] | 35 |
|
---|
[89d204ea] | 36 | <para>If, in <xref linkend="ch-scripts-console"/>, you decided you want
|
---|
| 37 | to compile the keymap into the kernel, issue the command below:</para>
|
---|
| 38 |
|
---|
[0c012ac] | 39 | <screen><userinput>loadkeys -m /usr/share/kbd/keymaps/<replaceable>[path to keymap]</replaceable> > \
|
---|
[89d204ea] | 40 | <replaceable>[unpacked sources dir]</replaceable>/linux-&linux-version;/drivers/char/defkeymap.c</userinput></screen>
|
---|
| 41 |
|
---|
[2081905] | 42 | <para>Configure the kernel via a menu-driven interface:</para>
|
---|
| 43 |
|
---|
| 44 | <screen><userinput>make menuconfig</userinput></screen>
|
---|
| 45 |
|
---|
[9dfc02f] | 46 | <para>Compile the kernel image and modules:</para>
|
---|
[2081905] | 47 |
|
---|
[9dfc02f] | 48 | <screen><userinput>make</userinput></screen>
|
---|
[2081905] | 49 |
|
---|
[a56c4bb] | 50 | <para>Install the modules, if your kernel configuration uses them:</para>
|
---|
[2081905] | 51 |
|
---|
[9dfc02f] | 52 | <screen><userinput>make modules_install</userinput></screen>
|
---|
[2081905] | 53 |
|
---|
| 54 | <para>The path to the kernel image may vary depending on the platform you're
|
---|
| 55 | using. Issue the following command to install the kernel:</para>
|
---|
| 56 |
|
---|
[9dfc02f] | 57 | <screen><userinput>cp arch/i386/boot/bzImage /boot/lfskernel-&linux-version;</userinput></screen>
|
---|
[2081905] | 58 |
|
---|
[9dfc02f] | 59 | <screen><userinput>cp System.map /boot/System.map-&linux-version;</userinput></screen>
|
---|
[2081905] | 60 |
|
---|
[9dfc02f] | 61 | <screen><userinput>cp .config /boot/config-&linux-version;</userinput></screen>
|
---|
[2081905] | 62 |
|
---|
| 63 | <para>If you are going to keep the kernel source tree around, you may want to
|
---|
[0c012ac] | 64 | run <command>chown -R 0:0</command> on the
|
---|
| 65 | <filename class="directory">linux-&linux-version;</filename> directory to ensure all files are
|
---|
[2081905] | 66 | owned by user <emphasis>root</emphasis>.</para>
|
---|
| 67 |
|
---|
| 68 | </sect2>
|
---|
[6910868] | 69 |
|
---|
[673b0d8] | 70 |
|
---|
[c6cb3aa] | 71 | <sect2 id="contents-kernel" role="content"><title>Contents of Linux</title>
|
---|
[673b0d8] | 72 |
|
---|
[e0a04e8] | 73 | <para>See testing</para>
|
---|
[673b0d8] | 74 |
|
---|
| 75 | </sect2>
|
---|
| 76 |
|
---|
[6370fa6] | 77 | </sect1>
|
---|