1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
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 keyutils-download-http "https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/keyutils.git/snapshot/keyutils-&keyutils-version;.tar.gz">
|
---|
8 | <!ENTITY keyutils-download-ftp " ">
|
---|
9 | <!ENTITY keyutils-md5sum "6b70b2b381c1b6d9adfaf66d5d3e7c00">
|
---|
10 | <!ENTITY keyutils-size "136 KB">
|
---|
11 | <!ENTITY keyutils-buildsize "2.6 MB (with tests)">
|
---|
12 | <!ENTITY keyutils-time "less than 0.1 SBU (add 0.4 SBU for tests)">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="keyutils" xreflabel="keyutils-&keyutils-version;">
|
---|
16 | <?dbhtml filename="keyutils.html"?>
|
---|
17 |
|
---|
18 |
|
---|
19 | <title>keyutils-&keyutils-version;</title>
|
---|
20 |
|
---|
21 | <indexterm zone="keyutils">
|
---|
22 | <primary sortas="a-keyutils">keyutils</primary>
|
---|
23 | </indexterm>
|
---|
24 |
|
---|
25 | <sect2 role="package">
|
---|
26 | <title>Introduction to keyutils</title>
|
---|
27 |
|
---|
28 | <para>
|
---|
29 | <application>Keyutils</application> is a set of utilities for managing
|
---|
30 | the key retention facility in the kernel, which can be used by
|
---|
31 | filesystems, block devices and more to gain and retain the authorization
|
---|
32 | and encryption keys required to perform secure operations.
|
---|
33 | </para>
|
---|
34 |
|
---|
35 | &lfs122_checked;
|
---|
36 |
|
---|
37 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
38 | <itemizedlist spacing="compact">
|
---|
39 | <listitem>
|
---|
40 | <para>
|
---|
41 | Download (HTTP): <ulink url="&keyutils-download-http;"/>
|
---|
42 | </para>
|
---|
43 | </listitem>
|
---|
44 | <listitem>
|
---|
45 | <para>
|
---|
46 | Download (FTP): <ulink url="&keyutils-download-ftp;"/>
|
---|
47 | </para>
|
---|
48 | </listitem>
|
---|
49 | <listitem>
|
---|
50 | <para>
|
---|
51 | Download MD5 sum: &keyutils-md5sum;
|
---|
52 | </para>
|
---|
53 | </listitem>
|
---|
54 | <listitem>
|
---|
55 | <para>
|
---|
56 | Download size: &keyutils-size;
|
---|
57 | </para>
|
---|
58 | </listitem>
|
---|
59 | <listitem>
|
---|
60 | <para>
|
---|
61 | Estimated disk space required: &keyutils-buildsize;
|
---|
62 | </para>
|
---|
63 | </listitem>
|
---|
64 | <listitem>
|
---|
65 | <para>
|
---|
66 | Estimated build time: &keyutils-time;
|
---|
67 | </para>
|
---|
68 | </listitem>
|
---|
69 | </itemizedlist>
|
---|
70 |
|
---|
71 | <bridgehead renderas="sect3">Keyutils Dependencies</bridgehead>
|
---|
72 |
|
---|
73 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
74 | <para role="optional">
|
---|
75 | <xref linkend="lsb-tools"/> (referred by the test suite)
|
---|
76 | </para>
|
---|
77 | </sect2>
|
---|
78 |
|
---|
79 | <sect2 role="kernel" id="keyutils-test-kernel"
|
---|
80 | xreflabel="Keyutils Kernel Configuration">
|
---|
81 | <title>Kernel Configuration</title>
|
---|
82 |
|
---|
83 | <para>
|
---|
84 | If running the test suite, some tests needs the following kernel
|
---|
85 | features enabled:
|
---|
86 | </para>
|
---|
87 |
|
---|
88 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
89 | href="keyutils-test-kernel.xml"/>
|
---|
90 |
|
---|
91 | <indexterm zone="keyutils keyutils-test-kernel">
|
---|
92 | <primary sortas="d-keyutils">keyutils (testing)</primary>
|
---|
93 | </indexterm>
|
---|
94 | </sect2>
|
---|
95 | <sect2 role="installation">
|
---|
96 | <title>Installation of keyutils</title>
|
---|
97 |
|
---|
98 | <para>
|
---|
99 | Install <application>keyutils</application> by running the following
|
---|
100 | commands:
|
---|
101 | </para>
|
---|
102 |
|
---|
103 | <screen><userinput>make</userinput></screen>
|
---|
104 |
|
---|
105 | <para>
|
---|
106 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
107 | </para>
|
---|
108 |
|
---|
109 | <screen role="root"><userinput>make NO_ARLIB=1 LIBDIR=/usr/lib BINDIR=/usr/bin SBINDIR=/usr/sbin install</userinput></screen>
|
---|
110 |
|
---|
111 | <para>
|
---|
112 | The test suite can only run after installing this package.
|
---|
113 | To test the results, issue, as the
|
---|
114 | <systemitem class="username">root</systemitem> user:
|
---|
115 | </para>
|
---|
116 |
|
---|
117 | <screen role="root" remap="test"><userinput>make -k test</userinput></screen>
|
---|
118 |
|
---|
119 | <para>
|
---|
120 | If <xref linkend='lsb-tools'/> is not installed, the test suite will
|
---|
121 | output some lines complaining the <command>lsb_release</command>
|
---|
122 | command not available but it won't affect the test result.
|
---|
123 | </para>
|
---|
124 |
|
---|
125 | </sect2>
|
---|
126 |
|
---|
127 | <sect2 role="commands">
|
---|
128 | <title>Command Explanations</title>
|
---|
129 |
|
---|
130 | <!--
|
---|
131 | <para>
|
---|
132 | <command>sed ... Makefile</command>: This command ensures the pkgconfig
|
---|
133 | file is placed in the correct directory.
|
---|
134 | </para>
|
---|
135 |
|
---|
136 | <para>
|
---|
137 | <command>sed ... tests/toolbox.inc.sh</command>: In LFS, GCC has been
|
---|
138 | configured with <option>- -enable-default-pie</option> so
|
---|
139 | <command>/usr/bin/bash</command> is a PIE, but the test script does
|
---|
140 | not anticipate it. Fix this oversight so the test can run on a LFS
|
---|
141 | system.
|
---|
142 | </para>
|
---|
143 | -->
|
---|
144 |
|
---|
145 | <para>
|
---|
146 | <parameter>NO_ARLIB=1</parameter>: This make flag disables installing the
|
---|
147 | static library.
|
---|
148 | </para>
|
---|
149 |
|
---|
150 | </sect2>
|
---|
151 |
|
---|
152 | <sect2 role="configuration">
|
---|
153 | <title>Configuring keyutils</title>
|
---|
154 |
|
---|
155 | <sect3 id="keyutils-config">
|
---|
156 | <title>Config Files</title>
|
---|
157 |
|
---|
158 | <para>
|
---|
159 | <filename>/etc/request-key.conf</filename> and
|
---|
160 | <filename>/etc/request-key.d/*</filename>
|
---|
161 | </para>
|
---|
162 |
|
---|
163 | <indexterm zone="keyutils keyutils-config">
|
---|
164 | <primary sortas="e-etc-request-key.conf">/etc/request-key.conf</primary>
|
---|
165 | </indexterm>
|
---|
166 |
|
---|
167 | <indexterm zone="keyutils keyutils-config">
|
---|
168 | <primary sortas="e-etc-request-key.d">/etc/request-key.d/*</primary>
|
---|
169 | </indexterm>
|
---|
170 |
|
---|
171 | </sect3>
|
---|
172 |
|
---|
173 | </sect2>
|
---|
174 |
|
---|
175 | <sect2 role="content">
|
---|
176 | <title>Contents</title>
|
---|
177 |
|
---|
178 | <segmentedlist>
|
---|
179 | <segtitle>Installed Programs</segtitle>
|
---|
180 | <segtitle>Installed Library</segtitle>
|
---|
181 | <segtitle>Installed Directory</segtitle>
|
---|
182 |
|
---|
183 | <seglistitem>
|
---|
184 | <seg>keyctl, key.dns_resolver, and request-key</seg>
|
---|
185 | <seg>libkeyutils.so</seg>
|
---|
186 | <seg>/etc/keyutils,
|
---|
187 | /etc/request-key.d,
|
---|
188 | and /usr/share/keyutils</seg>
|
---|
189 | </seglistitem>
|
---|
190 | </segmentedlist>
|
---|
191 |
|
---|
192 | <variablelist>
|
---|
193 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
194 | <?dbfo list-presentation="list"?>
|
---|
195 | <?dbhtml list-presentation="table"?>
|
---|
196 |
|
---|
197 | <varlistentry id="keyctl">
|
---|
198 | <term><command>keyctl</command></term>
|
---|
199 | <listitem>
|
---|
200 | <para>
|
---|
201 | controls the key management facility with a variety of subcommands
|
---|
202 | </para>
|
---|
203 | <indexterm zone="keyutils keyctl">
|
---|
204 | <primary sortas="b-keyctl">keyctl</primary>
|
---|
205 | </indexterm>
|
---|
206 | </listitem>
|
---|
207 | </varlistentry>
|
---|
208 |
|
---|
209 | <varlistentry id="key.dns_resolver">
|
---|
210 | <term><command>key.dns_resolver</command></term>
|
---|
211 | <listitem>
|
---|
212 | <para>
|
---|
213 | is invoked by <command>request-key</command> on behalf of the
|
---|
214 | kernel when kernel services (such as NFS, CIFS and AFS) need to
|
---|
215 | perform a hostname lookup and the kernel does not have the key
|
---|
216 | cached. It is not ordinarily intended to be called directly
|
---|
217 | </para>
|
---|
218 | <indexterm zone="keyutils key.dns_resolver">
|
---|
219 | <primary sortas="b-key.dns_resolver">key.dns_resolver</primary>
|
---|
220 | </indexterm>
|
---|
221 | </listitem>
|
---|
222 | </varlistentry>
|
---|
223 |
|
---|
224 | <varlistentry id="request-key">
|
---|
225 | <term><command>request-key</command></term>
|
---|
226 | <listitem>
|
---|
227 | <para>
|
---|
228 | is invoked by the kernel when the kernel is asked for a key that it
|
---|
229 | doesn't have immediately available. The kernel creates a temporary
|
---|
230 | key and then calls out to this program to instantiate it. It is
|
---|
231 | not intended to be called directly
|
---|
232 | </para>
|
---|
233 | <indexterm zone="keyutils request-key">
|
---|
234 | <primary sortas="b-request-keyt-key">request-key</primary>
|
---|
235 | </indexterm>
|
---|
236 | </listitem>
|
---|
237 | </varlistentry>
|
---|
238 |
|
---|
239 | <varlistentry id="libkeyutils">
|
---|
240 | <term><filename class="libraryfile">libkeyutils.so</filename></term>
|
---|
241 | <listitem>
|
---|
242 | <para>
|
---|
243 | contains the keyutils library API instantiation
|
---|
244 | </para>
|
---|
245 | <indexterm zone="keyutils libkeyutils">
|
---|
246 | <primary sortas="c-libkeyutils">libkeyutils.so</primary>
|
---|
247 | </indexterm>
|
---|
248 | </listitem>
|
---|
249 | </varlistentry>
|
---|
250 |
|
---|
251 | </variablelist>
|
---|
252 |
|
---|
253 | </sect2>
|
---|
254 |
|
---|
255 | </sect1>
|
---|