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 keyutils-download-http "http://people.redhat.com/~dhowells/keyutils/keyutils-&keyutils-version;.tar.bz2">
|
---|
8 | <!ENTITY keyutils-download-ftp " ">
|
---|
9 | <!ENTITY keyutils-md5sum "919af7f33576816b423d537f8a8692e8">
|
---|
10 | <!ENTITY keyutils-size "96 KB">
|
---|
11 | <!ENTITY keyutils-buildsize "1.9 MB (with tests)">
|
---|
12 | <!ENTITY keyutils-time "less than 0.1 SBU (add 0.6 SBU for tests)">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="keyutils" xreflabel="keyutils-&keyutils-version;">
|
---|
16 | <?dbhtml filename="keyutils.html"?>
|
---|
17 |
|
---|
18 | <sect1info>
|
---|
19 | <othername>$LastChangedBy$</othername>
|
---|
20 | <date>$Date$</date>
|
---|
21 | </sect1info>
|
---|
22 |
|
---|
23 | <title>keyutils-&keyutils-version;</title>
|
---|
24 |
|
---|
25 | <indexterm zone="keyutils">
|
---|
26 | <primary sortas="a-keyutils">keyutils</primary>
|
---|
27 | </indexterm>
|
---|
28 |
|
---|
29 | <sect2 role="package">
|
---|
30 | <title>Introduction to keyutils</title>
|
---|
31 |
|
---|
32 | <para>
|
---|
33 | <application>Keyutils</application> is a set of utilities for managing
|
---|
34 | the key retention facility in the kernel, which can be used by
|
---|
35 | filesystems, block devices and more to gain and retain the authorization
|
---|
36 | and encryption keys required to perform secure operations.
|
---|
37 | </para>
|
---|
38 |
|
---|
39 | &lfs91_checked;
|
---|
40 |
|
---|
41 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
42 | <itemizedlist spacing="compact">
|
---|
43 | <listitem>
|
---|
44 | <para>
|
---|
45 | Download (HTTP): <ulink url="&keyutils-download-http;"/>
|
---|
46 | </para>
|
---|
47 | </listitem>
|
---|
48 | <listitem>
|
---|
49 | <para>
|
---|
50 | Download (FTP): <ulink url="&keyutils-download-ftp;"/>
|
---|
51 | </para>
|
---|
52 | </listitem>
|
---|
53 | <listitem>
|
---|
54 | <para>
|
---|
55 | Download MD5 sum: &keyutils-md5sum;
|
---|
56 | </para>
|
---|
57 | </listitem>
|
---|
58 | <listitem>
|
---|
59 | <para>
|
---|
60 | Download size: &keyutils-size;
|
---|
61 | </para>
|
---|
62 | </listitem>
|
---|
63 | <listitem>
|
---|
64 | <para>
|
---|
65 | Estimated disk space required: &keyutils-buildsize;
|
---|
66 | </para>
|
---|
67 | </listitem>
|
---|
68 | <listitem>
|
---|
69 | <para>
|
---|
70 | Estimated build time: &keyutils-time;
|
---|
71 | </para>
|
---|
72 | </listitem>
|
---|
73 | </itemizedlist>
|
---|
74 |
|
---|
75 | <bridgehead renderas="sect3">keyutils Dependencies</bridgehead>
|
---|
76 |
|
---|
77 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
78 | <para role="required">
|
---|
79 | <xref linkend="mitkrb"/>
|
---|
80 | <!-- Without krb5 installed, a FTBFS occurs while trying to compile dns.afsdb.c.
|
---|
81 | It looks for profile.h, which is installed by krb5. -->
|
---|
82 | </para>
|
---|
83 |
|
---|
84 | <para condition="html" role="usernotes">User Notes:
|
---|
85 | <ulink url="&blfs-wiki;/keyutils"/></para>
|
---|
86 |
|
---|
87 | </sect2>
|
---|
88 |
|
---|
89 | <sect2 role="installation">
|
---|
90 | <title>Installation of keyutils</title>
|
---|
91 |
|
---|
92 | <para>
|
---|
93 | Install <application>keyutils</application> by running the following
|
---|
94 | commands:
|
---|
95 | </para>
|
---|
96 |
|
---|
97 | <screen><userinput>sed -i 's:$(LIBDIR)/$(PKGCONFIG_DIR):/usr/pkgconfig:' Makefile &&
|
---|
98 | make</userinput></screen>
|
---|
99 |
|
---|
100 | <para>
|
---|
101 | To test the results, issue, as the
|
---|
102 | <systemitem class="username">root</systemitem> user:
|
---|
103 | </para>
|
---|
104 |
|
---|
105 | <screen role="root"
|
---|
106 | remap="test"><userinput>sed -i '/find/s:/usr/bin/::' tests/Makefile &&
|
---|
107 | make -k test </userinput></screen>
|
---|
108 |
|
---|
109 | <para>
|
---|
110 | Note that several tests will fail if certain uncommon kernel options
|
---|
111 | were not used when the kernel was built. These include CONFIG_BIG_KEYS,
|
---|
112 | CONFIG_KEY_DH_OPERATIONS, and CONFIG_CRYPTO_DH.
|
---|
113 | </para>
|
---|
114 |
|
---|
115 | <para>
|
---|
116 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
117 | </para>
|
---|
118 |
|
---|
119 | <screen role="root"><userinput>make NO_ARLIB=1 install</userinput></screen>
|
---|
120 |
|
---|
121 | </sect2>
|
---|
122 |
|
---|
123 | <sect2 role="commands">
|
---|
124 | <title>Command Explanations</title>
|
---|
125 |
|
---|
126 | <para>
|
---|
127 | <command>sed ... Makefile</command>: This command ensures the pkgconfig
|
---|
128 | file is placed in the correct directory.
|
---|
129 | </para>
|
---|
130 |
|
---|
131 | <para>
|
---|
132 | <parameter>NO_ARLIB=1</parameter>: This make flag disables installing the
|
---|
133 | static library.
|
---|
134 | </para>
|
---|
135 |
|
---|
136 | </sect2>
|
---|
137 |
|
---|
138 | <sect2 role="configuration">
|
---|
139 | <title>Configuring keyutils</title>
|
---|
140 |
|
---|
141 | <sect3 id="keyutils-config">
|
---|
142 | <title>Config Files</title>
|
---|
143 |
|
---|
144 | <para>
|
---|
145 | <filename>/etc/request-key.conf</filename> and
|
---|
146 | <filename>/etc/request-key.d/*</filename>
|
---|
147 | </para>
|
---|
148 |
|
---|
149 | <indexterm zone="keyutils keyutils-config">
|
---|
150 | <primary sortas="e-etc-request-key.conf">/etc/request-key.conf</primary>
|
---|
151 | </indexterm>
|
---|
152 |
|
---|
153 | <indexterm zone="keyutils keyutils-config">
|
---|
154 | <primary sortas="e-etc-request-key.d">/etc/request-key.d/*</primary>
|
---|
155 | </indexterm>
|
---|
156 |
|
---|
157 | </sect3>
|
---|
158 |
|
---|
159 | </sect2>
|
---|
160 |
|
---|
161 | <sect2 role="content">
|
---|
162 | <title>Contents</title>
|
---|
163 |
|
---|
164 | <segmentedlist>
|
---|
165 | <segtitle>Installed Programs</segtitle>
|
---|
166 | <segtitle>Installed Library</segtitle>
|
---|
167 | <segtitle>Installed Directory</segtitle>
|
---|
168 |
|
---|
169 | <seglistitem>
|
---|
170 | <seg>keyctl, key.dns_resolver, and request-key</seg>
|
---|
171 | <seg>libkeyutils.so</seg>
|
---|
172 | <seg>/etc/request-key.d and /usr/share/keyutils</seg>
|
---|
173 | </seglistitem>
|
---|
174 | </segmentedlist>
|
---|
175 |
|
---|
176 | <variablelist>
|
---|
177 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
178 | <?dbfo list-presentation="list"?>
|
---|
179 | <?dbhtml list-presentation="table"?>
|
---|
180 |
|
---|
181 | <varlistentry id="keyctl">
|
---|
182 | <term><command>keyctl</command></term>
|
---|
183 | <listitem>
|
---|
184 | <para>
|
---|
185 | controls the key management facility with a variety of subcommands.
|
---|
186 | </para>
|
---|
187 | <indexterm zone="keyutils keyctl">
|
---|
188 | <primary sortas="b-keyctl">keyctl</primary>
|
---|
189 | </indexterm>
|
---|
190 | </listitem>
|
---|
191 | </varlistentry>
|
---|
192 |
|
---|
193 | <varlistentry id="key.dns_resolver">
|
---|
194 | <term><command>key.dns_resolver</command></term>
|
---|
195 | <listitem>
|
---|
196 | <para>
|
---|
197 | is invoked by <command>request-key</command> on behalf of the
|
---|
198 | kernel when kernel services (such as NFS, CIFS and AFS) need to
|
---|
199 | perform a hostname lookup and the kernel does not have the key
|
---|
200 | cached. It is not ordinarily intended to be called directly.
|
---|
201 | </para>
|
---|
202 | <indexterm zone="keyutils key.dns_resolver">
|
---|
203 | <primary sortas="b-key.dns_resolver">key.dns_resolver</primary>
|
---|
204 | </indexterm>
|
---|
205 | </listitem>
|
---|
206 | </varlistentry>
|
---|
207 |
|
---|
208 | <varlistentry id="request-key">
|
---|
209 | <term><command>request-key</command></term>
|
---|
210 | <listitem>
|
---|
211 | <para>
|
---|
212 | is invoked by the kernel when the kernel is asked for a key that it
|
---|
213 | doesn't have immediately available. The kernel creates a temporary
|
---|
214 | key and then calls out to this program to instantiate it. It is
|
---|
215 | not intended to be called directly.
|
---|
216 | </para>
|
---|
217 | <indexterm zone="keyutils request-key">
|
---|
218 | <primary sortas="b-request-keyt-key">request-key</primary>
|
---|
219 | </indexterm>
|
---|
220 | </listitem>
|
---|
221 | </varlistentry>
|
---|
222 |
|
---|
223 | <varlistentry id="libkeyutils">
|
---|
224 | <term><filename class='libraryfile'>libkeyutils.so</filename></term>
|
---|
225 | <listitem>
|
---|
226 | <para>
|
---|
227 | contains the keyutils library API instantiation.
|
---|
228 | </para>
|
---|
229 | <indexterm zone="keyutils libkeyutils">
|
---|
230 | <primary sortas="c-libkeyutils">libkeyutils.so</primary>
|
---|
231 | </indexterm>
|
---|
232 | </listitem>
|
---|
233 | </varlistentry>
|
---|
234 |
|
---|
235 | </variablelist>
|
---|
236 |
|
---|
237 | </sect2>
|
---|
238 |
|
---|
239 | </sect1>
|
---|