mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-31 20:42:34 +08:00
94b4290307
Update to v4l-utils-1.14.2. Update to vlc-3.0.0. git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@19748 af4574ff-66df-0310-9fd7-8a98e5e911e0
220 lines
6.7 KiB
XML
220 lines
6.7 KiB
XML
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
%general-entities;
|
|
|
|
<!ENTITY cryptsetup-download-http "&kernel-dl;/linux/utils/cryptsetup/v&cryptsetup-minor;/cryptsetup-&cryptsetup-version;.tar.xz">
|
|
<!ENTITY cryptsetup-download-ftp " ">
|
|
<!ENTITY cryptsetup-md5sum "d2d668223e795dcf750da44dc3e7076b">
|
|
<!ENTITY cryptsetup-size "1.2 MB">
|
|
<!ENTITY cryptsetup-buildsize "12 MB">
|
|
<!ENTITY cryptsetup-time "0.1 SBU (add 7.4 SBU for tests)">
|
|
]>
|
|
|
|
<sect1 id="cryptsetup" xreflabel="cryptsetup-&cryptsetup-version;">
|
|
<?dbhtml filename="cryptsetup.html"?>
|
|
|
|
<sect1info>
|
|
<othername>$LastChangedBy$</othername>
|
|
<date>$Date$</date>
|
|
</sect1info>
|
|
|
|
<title>cryptsetup-&cryptsetup-version;</title>
|
|
|
|
<indexterm zone="cryptsetup">
|
|
<primary sortas="a-cryptsetup">cryptsetup</primary>
|
|
</indexterm>
|
|
|
|
<sect2 role="package">
|
|
<title>Introduction to cryptsetup</title>
|
|
|
|
<para>
|
|
cryptsetup is used to set up transparent encryption of block devices
|
|
using the kernel crypto API.
|
|
</para>
|
|
|
|
&lfs81_checked;
|
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
<itemizedlist spacing="compact">
|
|
<listitem>
|
|
<para>
|
|
Download (HTTP): <ulink url="&cryptsetup-download-http;"/>
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Download (FTP): <ulink url="&cryptsetup-download-ftp;"/>
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Download MD5 sum: &cryptsetup-md5sum;
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Download size: &cryptsetup-size;
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Estimated disk space required: &cryptsetup-buildsize;
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Estimated build time: &cryptsetup-time;
|
|
</para>
|
|
</listitem>
|
|
</itemizedlist>
|
|
|
|
<bridgehead renderas="sect3">cryptsetup Dependencies</bridgehead>
|
|
|
|
<bridgehead renderas="sect4">Required</bridgehead>
|
|
<para role="required">
|
|
<xref linkend="lvm2"/>,
|
|
<xref linkend="popt"/>, and one of
|
|
<xref linkend="libgcrypt"/>,
|
|
<xref linkend="nettle"/>, or
|
|
<xref linkend="nss"/> (libgcrypt is the default)
|
|
</para>
|
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
|
<para role="optional">
|
|
<xref linkend="libpwquality"/>,
|
|
<xref linkend="python2"/>, and
|
|
<ulink url="http://www.openwall.com/passwdqc/">passwdqc</ulink>
|
|
</para>
|
|
|
|
|
|
<para condition="html" role="usernotes">User Notes:
|
|
<ulink url="&blfs-wiki;/cryptsetup"/>
|
|
</para>
|
|
</sect2>
|
|
|
|
<sect2 role="kernel" id="cryptsetup-kernel">
|
|
<title>Kernel Configuration</title>
|
|
|
|
<para>
|
|
Encrypted block devices require kernel support. To use it, the
|
|
appropriate kernel configuration parameters need to be set:
|
|
</para>
|
|
|
|
<screen><literal>Device Drivers --->
|
|
[*] Multiple devices driver support (RAID and LVM) ---> [CONFIG_MD]
|
|
<*/M> Device mapper support [CONFIG_BLK_DEV_DM]
|
|
<*/M> Crypt target support [CONFIG_DM_CRYPT]
|
|
|
|
Cryptographic API --->
|
|
<*/M> XTS support [CONFIG_CRYPTO_XTS]
|
|
<*/M> SHA224 and SHA256 digest algorithm [CONFIG_CRYPTO_SHA256]
|
|
<*/M> AES cipher algorithms [CONFIG_CRYPTO_AES]
|
|
<*/M> AES cipher algorithms (x86_64) [CONFIG_CRYPTO_AES_X86_64]
|
|
<*/M> User-space interface for symmetric key cipher algorithms
|
|
[CONFIG_CRYPTO_USER_API_SKCIPHER]
|
|
For tests:
|
|
<*/M> Twofish cipher algorithm [CONFIG_CRYPTO_TWOFISH]</literal></screen>
|
|
|
|
<indexterm zone="cryptsetup cryptsetup-kernel">
|
|
<primary sortas="d-cryptsetup">cryptsetup</primary>
|
|
</indexterm>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="installation">
|
|
<title>Installation of cryptsetup</title>
|
|
|
|
<para>
|
|
Install <application>cryptsetup</application> by running the following
|
|
commands:
|
|
</para>
|
|
|
|
<screen><userinput>./configure --prefix=/usr &&
|
|
make</userinput></screen>
|
|
|
|
<para>
|
|
To test the result, issue as the <systemitem
|
|
class="username">root</systemitem> user: <command>make check</command>
|
|
</para>
|
|
|
|
<para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
|
|
|
<screen role="root"><userinput>make install</userinput></screen>
|
|
|
|
</sect2>
|
|
|
|
|
|
<sect2 role="configuration">
|
|
<title>Configuring cryptsetup</title>
|
|
|
|
<para>
|
|
Because of the number of possible configurations, setup of encrypted
|
|
volumes is beyond the scope of the BLFS book. Please see the
|
|
configuration guide in the cryptsetup <ulink
|
|
url="https://gitlab.com/cryptsetup/cryptsetup/wikis/FrequentlyAskedQuestions#2-setup">
|
|
FAQ</ulink>.
|
|
</para>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="content">
|
|
<title>Contents</title>
|
|
|
|
<segmentedlist>
|
|
<segtitle>Installed Programs</segtitle>
|
|
<segtitle>Installed Libraries</segtitle>
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
<seglistitem>
|
|
<seg>
|
|
cryptsetup and
|
|
veritysetup
|
|
</seg>
|
|
<seg>
|
|
libcryptsetup.so
|
|
</seg>
|
|
<seg>
|
|
None
|
|
</seg>
|
|
</seglistitem>
|
|
</segmentedlist>
|
|
|
|
<variablelist>
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
<?dbfo list-presentation="list"?>
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
<varlistentry id="cryptsetup-prog">
|
|
<term><command>cryptsetup</command></term>
|
|
<listitem>
|
|
<para>
|
|
is used to setup dm-crypt managed device-mapper mappings.
|
|
</para>
|
|
<indexterm zone="cryptsetup cryptsetup-prog">
|
|
<primary sortas="b-cryptsetup">cryptsetup</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="veritysetup">
|
|
<term><command>veritysetup</command></term>
|
|
<listitem>
|
|
<para>
|
|
is used to configure dm-verity managed device-mapper mappings.
|
|
Device-mapper verity target provides read-only transparent integrity
|
|
checking of block devices using kernel crypto API.
|
|
</para>
|
|
<indexterm zone="cryptsetup veritysetup">
|
|
<primary sortas="b-veritysetup">veritysetup</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</sect2>
|
|
|
|
</sect1>
|