Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > by-pkgid > 965e33040dd61030a94f0eb89877aee8 > files > 1160

howto-html-en-20080722-2mdv2010.1.noarch.rpm

<HTML
><HEAD
><TITLE
>Configuring the kernel</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="Cryptoloop HOWTO"
HREF="index.html"><LINK
REL="PREVIOUS"
TITLE="Introduction"
HREF="cryptoloop-introduction.html"><LINK
REL="NEXT"
TITLE="Getting the user space tools"
HREF="userspace-tools.html"></HEAD
><BODY
CLASS="sect1"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Cryptoloop HOWTO</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="cryptoloop-introduction.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="userspace-tools.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="sect1"
><H1
CLASS="sect1"
><A
NAME="kernel-configuration"
></A
>3. Configuring the kernel</H1
><P
>&#13;    In order to use Cryptoloop, you need to activate a few kernel options. You have the option to either compile these
    requirements as modules or compile them directly into the kernel. The following steps enable them as modules.
    If you are not familiar with building a 2.6 kernel, you should refer to the <A
HREF="http://www.linuxdocs.org/HOWTOs/Kernel-HOWTO.html"
TARGET="_top"
>Linux Kernel HOWTO</A
>. The following
    instructions just give the minimal steps.
    </P
><P
></P
><OL
TYPE="1"
><LI
><P
>Go to the directory that holds your kernel source tree (usually <TT
CLASS="filename"
>/usr/src/linux/</TT
>) and start the configuration:</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="screen"
>make menuconfig</PRE
></FONT
></TD
></TR
></TABLE
></LI
><LI
><P
>Enable general loop device support. Active <SPAN
CLASS="QUOTE"
>"Loopback device support"</SPAN
> under:</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="screen"
>Device Drivers -&#62; Block Devices -&#62; Loopback device support</PRE
></FONT
></TD
></TR
></TABLE
></LI
><LI
><P
>Enable Cryptoloop support in the same section. The option should show up as soon as you enable general loopback support.</P
></LI
><LI
><P
>Enable the cryptographic API by going to <SPAN
CLASS="QUOTE"
>"Cryptographic options"</SPAN
> from the main menu. You can safely enable most algorithms here.  I would recommend that you enable the following:</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="screen"
>&#13;    -- Cryptographic API
     &#60;*&#62;   HMAC support  
     &#60; &#62;   Null algorithms
     &#60;*&#62;   MD4 digest algorithm
     &#60;*&#62;   MD5 digest algorithm
     &#60;*&#62;   SHA1 digest algorithm
     &#60;*&#62;   SHA256 digest algorithm
     &#60;*&#62;   SHA384 and SHA512 digest algorithms
     &#60;*&#62;   DES and Triple DES EDE cipher algorithms
     &#60;*&#62;   Blowfish cipher algorithm
     &#60;*&#62;   Twofish cipher algorithm
     &#60;*&#62;   Serpent cipher algorithm 
     &#60;*&#62;   AES cipher algorithms
     &#60;*&#62;   CAST5 (CAST-128) cipher algorithm
     &#60;*&#62;   CAST6 (CAST-256) cipher algorithm 
     &#60;*&#62;   Deflate compression algorithm
     &#60; &#62;   Testing module
        </PRE
></FONT
></TD
></TR
></TABLE
><P
>&#13;    If you decide to make them as modules, make sure you load the appropriate modules (cryptoloop, aes, etc.) at startup before you continue.</P
></LI
><LI
><P
>Make your kernel and modules and install them. For example, if you are using lilo on a x86 machine, this can be done like this:</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="screen"
>&#13;     make
     make modules_install
     cp arch/i386/boot/bzImage /boot/kernel-2.6.1
     lilo
        </PRE
></FONT
></TD
></TR
></TABLE
></LI
><LI
><P
>Load the required modules at startup. This is handled differently on the various distributions. For example, on Gentoo these modules can be added to <TT
CLASS="filename"
>/etc/modules.autoload/kernel-2.6</TT
>. If you have compiled Cryptoloop as a module, it will have to be loaded first. It will automatically load the basic loop device module as well. You can manually load the module with:</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="screen"
>modprobe cryptoloop</PRE
></FONT
></TD
></TR
></TABLE
></LI
></OL
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="cryptoloop-introduction.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="userspace-tools.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Introduction</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Getting the user space tools</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>