source: postlfs/security/cryptsetup.xml@ c823c075

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since c823c075 was 24f32bb, checked in by Douglas R. Reno <renodr@…>, 4 years ago

Adapt cryptsetup to work with the new version of json-c
Add recommended dependencies on json-c to bind/bind-utils

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@23019 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 8.3 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY cryptsetup-download-http "&kernel-dl;/linux/utils/cryptsetup/v&cryptsetup-minor;/cryptsetup-&cryptsetup-version;.tar.xz">
8 <!ENTITY cryptsetup-download-ftp " ">
9 <!ENTITY cryptsetup-md5sum "cef482c0579f34d9524311ac70c0875f">
10 <!ENTITY cryptsetup-size "11 MB">
11 <!ENTITY cryptsetup-buildsize "29 MB (add 12 MB for tests)">
12 <!ENTITY cryptsetup-time "0.2 SBU (add 15 SBU for tests)">
13]>
14
15<sect1 id="cryptsetup" xreflabel="cryptsetup-&cryptsetup-version;">
16 <?dbhtml filename="cryptsetup.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>cryptsetup-&cryptsetup-version;</title>
24
25 <indexterm zone="cryptsetup">
26 <primary sortas="a-cryptsetup">cryptsetup</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to cryptsetup</title>
31
32 <para>
33 cryptsetup is used to set up transparent encryption of block devices
34 using the kernel crypto API.
35 </para>
36
37 &lfs91_checked;
38
39 <bridgehead renderas="sect3">Package Information</bridgehead>
40 <itemizedlist spacing="compact">
41 <listitem>
42 <para>
43 Download (HTTP): <ulink url="&cryptsetup-download-http;"/>
44 </para>
45 </listitem>
46 <listitem>
47 <para>
48 Download (FTP): <ulink url="&cryptsetup-download-ftp;"/>
49 </para>
50 </listitem>
51 <listitem>
52 <para>
53 Download MD5 sum: &cryptsetup-md5sum;
54 </para>
55 </listitem>
56 <listitem>
57 <para>
58 Download size: &cryptsetup-size;
59 </para>
60 </listitem>
61 <listitem>
62 <para>
63 Estimated disk space required: &cryptsetup-buildsize;
64 </para>
65 </listitem>
66 <listitem>
67 <para>
68 Estimated build time: &cryptsetup-time;
69 </para>
70 </listitem>
71 </itemizedlist>
72
73 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
74 <itemizedlist spacing="compact">
75 <listitem>
76 <para>
77 Required patch:
78 <ulink url="&patch-root;/cryptsetup-&cryptsetup-version;-upstream_fixes-1.patch"/>
79 </para>
80 </listitem>
81 </itemizedlist>
82
83 <bridgehead renderas="sect3">cryptsetup Dependencies</bridgehead>
84
85 <bridgehead renderas="sect4">Required</bridgehead>
86 <para role="required">
87 <xref linkend="json-c"/>,
88 <xref linkend="libgcrypt"/>,
89 <xref linkend="lvm2"/>, and
90 <xref linkend="popt"/>
91 </para>
92
93 <bridgehead renderas="sect4">Optional</bridgehead>
94 <para role="optional">
95 <xref linkend="libpwquality"/>,
96 <xref linkend="python2"/>, and
97 <ulink url="http://www.openwall.com/passwdqc/">passwdqc</ulink>
98 </para>
99
100
101 <para condition="html" role="usernotes">User Notes:
102 <ulink url="&blfs-wiki;/cryptsetup"/>
103 </para>
104 </sect2>
105
106 <sect2 role="kernel" id="cryptsetup-kernel">
107 <title>Kernel Configuration</title>
108
109 <para>
110 Encrypted block devices require kernel support. To use it, the
111 appropriate kernel configuration parameters need to be set:
112 </para>
113
114<screen><literal>Device Drivers ---&gt;
115 [*] Multiple devices driver support (RAID and LVM) ---&gt; [CONFIG_MD]
116 &lt;*/M&gt; Device mapper support [CONFIG_BLK_DEV_DM]
117 &lt;*/M&gt; Crypt target support [CONFIG_DM_CRYPT]
118
119Cryptographic API ---&gt;
120 &lt;*/M&gt; XTS support [CONFIG_CRYPTO_XTS]
121 &lt;*/M&gt; SHA224 and SHA256 digest algorithm [CONFIG_CRYPTO_SHA256]
122 &lt;*/M&gt; AES cipher algorithms [CONFIG_CRYPTO_AES]
123 &lt;*/M&gt; AES cipher algorithms (x86_64) [CONFIG_CRYPTO_AES_X86_64]
124 &lt;*/M&gt; User-space interface for symmetric key cipher algorithms
125 [CONFIG_CRYPTO_USER_API_SKCIPHER]
126 For tests:
127 &lt;*/M&gt; Twofish cipher algorithm [CONFIG_CRYPTO_TWOFISH]</literal></screen>
128
129 <indexterm zone="cryptsetup cryptsetup-kernel">
130 <primary sortas="d-cryptsetup">cryptsetup</primary>
131 </indexterm>
132
133 </sect2>
134
135 <sect2 role="installation">
136 <title>Installation of cryptsetup</title>
137
138 <para>
139 First, apply a patch to fix a build problem caused by API changes in
140 <xref role="nodep" linkend="json-c"/>:
141 </para>
142
143<screen><userinput remap="pre">patch -Np1 -i ../cryptsetup-&cryptsetup-version;-upstream_fixes-1.patch</userinput></screen>
144
145 <para>
146 Install <application>cryptsetup</application> by running the following
147 commands:
148 </para>
149
150<screen><userinput>./configure --prefix=/usr &amp;&amp;
151make</userinput></screen>
152
153 <para>
154 To test the result, issue as the <systemitem
155 class="username">root</systemitem> user: <command>make check</command>.
156 Some tests may fail if the kernel configuration parameters above are not
157 set. Three (of 21) tests are known to fail.
158 </para>
159
160 <para>
161 Now, as the <systemitem class="username">root</systemitem> user:
162 </para>
163
164<screen role="root"><userinput>make install</userinput></screen>
165
166 </sect2>
167
168 <!--sect2 role="commands">
169 <title>Command Explanations</title>
170
171 </sect2-->
172
173 <sect2 role="configuration">
174 <title>Configuring cryptsetup</title>
175
176 <para>
177 Because of the number of possible configurations, setup of encrypted
178 volumes is beyond the scope of the BLFS book. Please see the
179 configuration guide in the cryptsetup <ulink
180 url="https://gitlab.com/cryptsetup/cryptsetup/wikis/FrequentlyAskedQuestions#2-setup">
181 FAQ</ulink>.
182 </para>
183
184 </sect2>
185
186 <sect2 role="content">
187 <title>Contents</title>
188
189 <segmentedlist>
190 <segtitle>Installed Programs</segtitle>
191 <segtitle>Installed Libraries</segtitle>
192 <segtitle>Installed Directories</segtitle>
193
194 <seglistitem>
195 <seg>
196 cryptsetup,
197 cryptsetup-reencrypt,
198 integritysetup, and
199 veritysetup
200 </seg>
201 <seg>
202 libcryptsetup.so
203 </seg>
204 <seg>
205 None
206 </seg>
207 </seglistitem>
208 </segmentedlist>
209
210 <variablelist>
211 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
212 <?dbfo list-presentation="list"?>
213 <?dbhtml list-presentation="table"?>
214
215 <varlistentry id="cryptsetup-prog">
216 <term><command>cryptsetup</command></term>
217 <listitem>
218 <para>
219 is used to setup dm-crypt managed device-mapper mappings.
220 </para>
221 <indexterm zone="cryptsetup cryptsetup-prog">
222 <primary sortas="b-cryptsetup">cryptsetup</primary>
223 </indexterm>
224 </listitem>
225 </varlistentry>
226
227 <varlistentry id="cryptsetup-reencrypt">
228 <term><command>cryptsetup-reencrypt</command></term>
229 <listitem>
230 <para>
231 is a for offline LUKS device re-encryption.
232 </para>
233 <indexterm zone="cryptsetup cryptsetup-reencrypt">
234 <primary sortas="b-cryptsetup-reencrypt">cryptsetup-reencrypt</primary>
235 </indexterm>
236 </listitem>
237 </varlistentry>
238
239 <varlistentry id="integritysetup">
240 <term><command>integritysetup</command></term>
241 <listitem>
242 <para>
243 is a tool to manage dm-integrity (block level integrity) volumes.
244 </para>
245 <indexterm zone="cryptsetup integritysetup">
246 <primary sortas="b-integritysetup">integritysetup</primary>
247 </indexterm>
248 </listitem>
249 </varlistentry>
250
251 <varlistentry id="veritysetup">
252 <term><command>veritysetup</command></term>
253 <listitem>
254 <para>
255 is used to configure dm-verity managed device-mapper mappings.
256 Device-mapper verity target provides read-only transparent integrity
257 checking of block devices using kernel crypto API.
258 </para>
259 <indexterm zone="cryptsetup veritysetup">
260 <primary sortas="b-veritysetup">veritysetup</primary>
261 </indexterm>
262 </listitem>
263 </varlistentry>
264
265 </variablelist>
266
267 </sect2>
268
269</sect1>
Note: See TracBrowser for help on using the repository browser.