/mandos/release

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/release
129 by Teddy Hogeborn
* mandos-clients.conf.xml: Changed all single quotes to double quotes
1
<?xml version="1.0" encoding="UTF-8"?>
24.1.23 by Björn Påhlsson
Added manual pages for:
2
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3
	"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
74 by Teddy Hogeborn
* Makefile (PREFIX, CONFDIR): New.
4
<!ENTITY COMMANDNAME "plugin-runner">
237.7.867 by Teddy Hogeborn
Update copyright year
5
<!ENTITY TIMESTAMP "2025-06-27">
217 by Teddy Hogeborn
* .bzrignore: Added "man" directory (created by "make install-html").
6
<!ENTITY % common SYSTEM "common.ent">
7
%common;
24.1.23 by Björn Påhlsson
Added manual pages for:
8
]>
9
131 by Teddy Hogeborn
* Makefile: Make all DocBook rules include legalnotice.xml as a
10
<refentry xmlns:xi="http://www.w3.org/2001/XInclude">
24.1.23 by Björn Påhlsson
Added manual pages for:
11
  <refentryinfo>
112 by Teddy Hogeborn
* mandos-clients.conf.xml (/refentry/refentryinfo/title): Changed to
12
    <title>Mandos Manual</title>
129 by Teddy Hogeborn
* mandos-clients.conf.xml: Changed all single quotes to double quotes
13
    <!-- Nwalsh’s docbook scripts use this to generate the footer: -->
112 by Teddy Hogeborn
* mandos-clients.conf.xml (/refentry/refentryinfo/title): Changed to
14
    <productname>Mandos</productname>
217 by Teddy Hogeborn
* .bzrignore: Added "man" directory (created by "make install-html").
15
    <productnumber>&version;</productnumber>
111 by Teddy Hogeborn
* mandos-clients.conf.xml (ENTITY TIMESTAMP): New. Automatically
16
    <date>&TIMESTAMP;</date>
24.1.23 by Björn Påhlsson
Added manual pages for:
17
    <authorgroup>
18
      <author>
19
	<firstname>Björn</firstname>
20
	<surname>Påhlsson</surname>
21
	<address>
237.11.2 by Teddy Hogeborn
Change "fukt.bsnet.se" to "recompile.se" throughout.
22
	  <email>belorn@recompile.se</email>
24.1.23 by Björn Påhlsson
Added manual pages for:
23
	</address>
24
      </author>
25
      <author>
26
	<firstname>Teddy</firstname>
27
	<surname>Hogeborn</surname>
28
	<address>
237.11.2 by Teddy Hogeborn
Change "fukt.bsnet.se" to "recompile.se" throughout.
29
	  <email>teddy@recompile.se</email>
24.1.23 by Björn Påhlsson
Added manual pages for:
30
	</address>
31
      </author>
32
    </authorgroup>
33
    <copyright>
34
      <year>2008</year>
237.2.9 by Teddy Hogeborn
* README: Update copyright year; add "2009".
35
      <year>2009</year>
237.7.326 by Teddy Hogeborn
Update copyright year.
36
      <year>2010</year>
37
      <year>2011</year>
237.7.92 by Teddy Hogeborn
Updated year in copyright notices.
38
      <year>2012</year>
237.7.326 by Teddy Hogeborn
Update copyright year.
39
      <year>2013</year>
40
      <year>2014</year>
41
      <year>2015</year>
237.7.355 by Teddy Hogeborn
Update copyright year.
42
      <year>2016</year>
237.7.447 by Teddy Hogeborn
Update copyright year to 2017
43
      <year>2017</year>
237.7.471 by Teddy Hogeborn
Update copyright year to 2018
44
      <year>2018</year>
237.7.517 by Teddy Hogeborn
Update copyright year to 2019
45
      <year>2019</year>
237.7.867 by Teddy Hogeborn
Update copyright year
46
      <year>2020</year>
47
      <year>2021</year>
48
      <year>2022</year>
49
      <year>2023</year>
50
      <year>2024</year>
128 by Teddy Hogeborn
* plugin-runner.xml (/refentry/refentryinfo/copyright): Split
51
      <holder>Teddy Hogeborn</holder>
52
      <holder>Björn Påhlsson</holder>
24.1.23 by Björn Påhlsson
Added manual pages for:
53
    </copyright>
131 by Teddy Hogeborn
* Makefile: Make all DocBook rules include legalnotice.xml as a
54
    <xi:include href="legalnotice.xml"/>
24.1.23 by Björn Påhlsson
Added manual pages for:
55
  </refentryinfo>
182 by Teddy Hogeborn
* Makefile (install): Use "install-client-nokey".
56
  
24.1.23 by Björn Påhlsson
Added manual pages for:
57
  <refmeta>
58
    <refentrytitle>&COMMANDNAME;</refentrytitle>
59
    <manvolnum>8mandos</manvolnum>
60
  </refmeta>
61
  
62
  <refnamediv>
63
    <refname><command>&COMMANDNAME;</command></refname>
64
    <refpurpose>
156 by Teddy Hogeborn
* mandos-clients.conf.xml (OPTIONS): Improved spelling.
65
      Run Mandos plugins, pass data from first to succeed.
24.1.23 by Björn Påhlsson
Added manual pages for:
66
    </refpurpose>
67
  </refnamediv>
182 by Teddy Hogeborn
* Makefile (install): Use "install-client-nokey".
68
  
24.1.23 by Björn Påhlsson
Added manual pages for:
69
  <refsynopsisdiv>
70
    <cmdsynopsis>
71
      <command>&COMMANDNAME;</command>
121 by Teddy Hogeborn
* plugin-runner.xml (NAME): Improved wording.
72
      <group rep="repeat">
135 by Teddy Hogeborn
* plugin-runner.c (add_environment): Never insert existing environment
73
	<arg choice="plain"><option>--global-env=<replaceable
187 by Teddy Hogeborn
* debian/mandos-client.README.Debian: Document "eth0" default and how
74
	>ENV</replaceable><literal>=</literal><replaceable
121 by Teddy Hogeborn
* plugin-runner.xml (NAME): Improved wording.
75
	>value</replaceable></option></arg>
139 by Teddy Hogeborn
* plugin-runner.xml: Changed short option for "--global-env" to "-G",
76
	<arg choice="plain"><option>-G
187 by Teddy Hogeborn
* debian/mandos-client.README.Debian: Document "eth0" default and how
77
	<replaceable>ENV</replaceable><literal>=</literal><replaceable
121 by Teddy Hogeborn
* plugin-runner.xml (NAME): Improved wording.
78
	>value</replaceable> </option></arg>
79
      </group>
80
      <sbr/>
81
      <group rep="repeat">
135 by Teddy Hogeborn
* plugin-runner.c (add_environment): Never insert existing environment
82
	<arg choice="plain"><option>--env-for=<replaceable
121 by Teddy Hogeborn
* plugin-runner.xml (NAME): Improved wording.
83
	>PLUGIN</replaceable><literal>:</literal><replaceable
84
	>ENV</replaceable><literal>=</literal><replaceable
85
	>value</replaceable></option></arg>
139 by Teddy Hogeborn
* plugin-runner.xml: Changed short option for "--global-env" to "-G",
86
	<arg choice="plain"><option>-E<replaceable>
121 by Teddy Hogeborn
* plugin-runner.xml (NAME): Improved wording.
87
	PLUGIN</replaceable><literal>:</literal><replaceable
88
	>ENV</replaceable><literal>=</literal><replaceable
89
	>value</replaceable> </option></arg>
90
      </group>
91
      <sbr/>
92
      <group rep="repeat">
93
	<arg choice="plain"><option>--global-options=<replaceable
94
	>OPTIONS</replaceable></option></arg>
95
	<arg choice="plain"><option>-g<replaceable>
96
	OPTIONS</replaceable> </option></arg>
97
      </group>
98
      <sbr/>
99
      <group rep="repeat">
100
	<arg choice="plain"><option>--options-for=<replaceable
101
	>PLUGIN</replaceable><literal>:</literal><replaceable
102
	>OPTIONS</replaceable></option></arg>
139 by Teddy Hogeborn
* plugin-runner.xml: Changed short option for "--global-env" to "-G",
103
	<arg choice="plain"><option>-o<replaceable>
121 by Teddy Hogeborn
* plugin-runner.xml (NAME): Improved wording.
104
	PLUGIN</replaceable><literal>:</literal><replaceable
105
	>OPTIONS</replaceable> </option></arg>
106
      </group>
107
      <sbr/>
108
      <group rep="repeat">
109
	<arg choice="plain"><option>--disable=<replaceable
110
	>PLUGIN</replaceable></option></arg>
111
	<arg choice="plain"><option>-d
112
	<replaceable>PLUGIN</replaceable> </option></arg>
113
      </group>
114
      <sbr/>
139 by Teddy Hogeborn
* plugin-runner.xml: Changed short option for "--global-env" to "-G",
115
      <group rep="repeat">
116
	<arg choice="plain"><option>--enable=<replaceable
117
	>PLUGIN</replaceable></option></arg>
118
	<arg choice="plain"><option>-e
119
	<replaceable>PLUGIN</replaceable> </option></arg>
120
      </group>
121
      <sbr/>
121 by Teddy Hogeborn
* plugin-runner.xml (NAME): Improved wording.
122
      <arg><option>--groupid=<replaceable
123
      >ID</replaceable></option></arg>
124
      <sbr/>
125
      <arg><option>--userid=<replaceable
126
      >ID</replaceable></option></arg>
127
      <sbr/>
128
      <arg><option>--plugin-dir=<replaceable
129
      >DIRECTORY</replaceable></option></arg>
130
      <sbr/>
237.25.1 by Teddy Hogeborn
Add a plugin helper directory, available to all plugins.
131
      <arg><option>--plugin-helper-dir=<replaceable
132
      >DIRECTORY</replaceable></option></arg>
133
      <sbr/>
139 by Teddy Hogeborn
* plugin-runner.xml: Changed short option for "--global-env" to "-G",
134
      <arg><option>--config-file=<replaceable
135
      >FILE</replaceable></option></arg>
136
      <sbr/>
121 by Teddy Hogeborn
* plugin-runner.xml (NAME): Improved wording.
137
      <arg><option>--debug</option></arg>
138
    </cmdsynopsis>
139
    <cmdsynopsis>
140
      <command>&COMMANDNAME;</command>
141
      <group choice="req">
129 by Teddy Hogeborn
* mandos-clients.conf.xml: Changed all single quotes to double quotes
142
	<arg choice="plain"><option>--help</option></arg>
143
	<arg choice="plain"><option>-?</option></arg>
121 by Teddy Hogeborn
* plugin-runner.xml (NAME): Improved wording.
144
      </group>
145
    </cmdsynopsis>
146
    <cmdsynopsis>
147
      <command>&COMMANDNAME;</command>
129 by Teddy Hogeborn
* mandos-clients.conf.xml: Changed all single quotes to double quotes
148
      <arg choice="plain"><option>--usage</option></arg>
121 by Teddy Hogeborn
* plugin-runner.xml (NAME): Improved wording.
149
    </cmdsynopsis>
150
    <cmdsynopsis>
151
      <command>&COMMANDNAME;</command>
152
      <group choice="req">
129 by Teddy Hogeborn
* mandos-clients.conf.xml: Changed all single quotes to double quotes
153
	<arg choice="plain"><option>--version</option></arg>
154
	<arg choice="plain"><option>-V</option></arg>
121 by Teddy Hogeborn
* plugin-runner.xml (NAME): Improved wording.
155
      </group>
118 by Teddy Hogeborn
* mandos-keygen.xml (SYNOPSIS): Fixed tags. Unify short and long
156
    </cmdsynopsis>
24.1.23 by Björn Påhlsson
Added manual pages for:
157
  </refsynopsisdiv>
134 by Teddy Hogeborn
* mandos.xml: Enclose "RAM" with <acronym>.
158
  
24.1.23 by Björn Påhlsson
Added manual pages for:
159
  <refsect1 id="description">
160
    <title>DESCRIPTION</title>
161
    <para>
134 by Teddy Hogeborn
* mandos.xml: Enclose "RAM" with <acronym>.
162
      <command>&COMMANDNAME;</command> is a program which is meant to
155 by Teddy Hogeborn
* README: Improved wording.
163
      be specified as a <quote>keyscript</quote> for the root disk in
164
      <citerefentry><refentrytitle>crypttab</refentrytitle>
165
      <manvolnum>5</manvolnum></citerefentry>.  The aim of this
166
      program is therefore to output a password, which then
167
      <citerefentry><refentrytitle>cryptsetup</refentrytitle>
140 by Teddy Hogeborn
* plugin-runner.xml (PLUGINS/WRITING PLUGINS): New section.
168
      <manvolnum>8</manvolnum></citerefentry> will use to unlock the
169
      root disk.
134 by Teddy Hogeborn
* mandos.xml: Enclose "RAM" with <acronym>.
170
    </para>
171
    <para>
172
      This program is not meant to be invoked directly, but can be in
173
      order to test it.  Note that any password obtained will simply
174
      be output on standard output.
175
    </para>
176
  </refsect1>
177
  
178
  <refsect1 id="purpose">
179
    <title>PURPOSE</title>
180
    <para>
181
      The purpose of this is to enable <emphasis>remote and unattended
182
      rebooting</emphasis> of client host computer with an
183
      <emphasis>encrypted root file system</emphasis>.  See <xref
184
      linkend="overview"/> for details.
185
    </para>
186
  </refsect1>
187
  
24.1.38 by Björn Påhlsson
changed description to better fit role
188
  <refsect1>
189
    <title>OPTIONS</title>
24.1.23 by Björn Påhlsson
Added manual pages for:
190
    <variablelist>
191
      <varlistentry>
135 by Teddy Hogeborn
* plugin-runner.c (add_environment): Never insert existing environment
192
	<term><option>--global-env
187 by Teddy Hogeborn
* debian/mandos-client.README.Debian: Document "eth0" default and how
193
	<replaceable>ENV</replaceable><literal>=</literal><replaceable
135 by Teddy Hogeborn
* plugin-runner.c (add_environment): Never insert existing environment
194
	>value</replaceable></option></term>
140 by Teddy Hogeborn
* plugin-runner.xml (PLUGINS/WRITING PLUGINS): New section.
195
	<term><option>-G
187 by Teddy Hogeborn
* debian/mandos-client.README.Debian: Document "eth0" default and how
196
	<replaceable>ENV</replaceable><literal>=</literal><replaceable
135 by Teddy Hogeborn
* plugin-runner.c (add_environment): Never insert existing environment
197
	>value</replaceable></option></term>
198
	<listitem>
199
	  <para>
136 by Teddy Hogeborn
* plugin-runner.c (add_environment): Override existing environment
200
	    This option will add an environment variable setting to
201
	    all plugins.  This will override any inherited environment
202
	    variable.
135 by Teddy Hogeborn
* plugin-runner.c (add_environment): Never insert existing environment
203
	  </para>
204
	</listitem>
205
      </varlistentry>
206
      
207
      <varlistentry>
208
	<term><option>--env-for
209
	<replaceable>PLUGIN</replaceable><literal>:</literal
210
	><replaceable>ENV</replaceable><literal>=</literal
211
	><replaceable>value</replaceable></option></term>
140 by Teddy Hogeborn
* plugin-runner.xml (PLUGINS/WRITING PLUGINS): New section.
212
	<term><option>-E
135 by Teddy Hogeborn
* plugin-runner.c (add_environment): Never insert existing environment
213
	<replaceable>PLUGIN</replaceable><literal>:</literal
214
	><replaceable>ENV</replaceable><literal>=</literal
215
	><replaceable>value</replaceable></option></term>
216
	<listitem>
217
	  <para>
136 by Teddy Hogeborn
* plugin-runner.c (add_environment): Override existing environment
218
	    This option will add an environment variable setting to
219
	    the <replaceable>PLUGIN</replaceable> plugin.  This will
220
	    override any inherited environment variables or
221
	    environment variables specified using
222
	    <option>--global-env</option>.
135 by Teddy Hogeborn
* plugin-runner.c (add_environment): Never insert existing environment
223
	  </para>
224
	</listitem>
225
      </varlistentry>
226
      
227
      <varlistentry>
125 by Teddy Hogeborn
* plugin-runner.xml (OPTIONS): Use <option> tags instead of
228
	<term><option>--global-options
229
	<replaceable>OPTIONS</replaceable></option></term>
230
	<term><option>-g
231
	<replaceable>OPTIONS</replaceable></option></term>
24.1.23 by Björn Påhlsson
Added manual pages for:
232
	<listitem>
233
	  <para>
134 by Teddy Hogeborn
* mandos.xml: Enclose "RAM" with <acronym>.
234
	    Pass some options to <emphasis>all</emphasis> plugins.
235
	    <replaceable>OPTIONS</replaceable> is a comma separated
236
	    list of options.  This is not a very useful option, except
237
	    for specifying the <quote><option>--debug</option></quote>
140 by Teddy Hogeborn
* plugin-runner.xml (PLUGINS/WRITING PLUGINS): New section.
238
	    option to all plugins.
134 by Teddy Hogeborn
* mandos.xml: Enclose "RAM" with <acronym>.
239
	  </para>
24.1.23 by Björn Påhlsson
Added manual pages for:
240
	</listitem>
241
      </varlistentry>
134 by Teddy Hogeborn
* mandos.xml: Enclose "RAM" with <acronym>.
242
      
24.1.23 by Björn Påhlsson
Added manual pages for:
243
      <varlistentry>
125 by Teddy Hogeborn
* plugin-runner.xml (OPTIONS): Use <option> tags instead of
244
	<term><option>--options-for
245
	<replaceable>PLUGIN</replaceable><literal>:</literal
246
	><replaceable>OPTION</replaceable></option></term>
247
	<term><option>-o
248
	<replaceable>PLUGIN</replaceable><literal>:</literal
249
	><replaceable>OPTION</replaceable></option></term>
24.1.23 by Björn Påhlsson
Added manual pages for:
250
	<listitem>
251
	  <para>
134 by Teddy Hogeborn
* mandos.xml: Enclose "RAM" with <acronym>.
252
	    Pass some options to a specific plugin.  <replaceable
253
	    >PLUGIN</replaceable> is the name (file basename) of a
254
	    plugin, and <replaceable>OPTIONS</replaceable> is a comma
255
	    separated list of options.
256
	  </para>
257
	  <para>
258
	    Note that since options are not split on whitespace, the
259
	    way to pass, to the plugin
260
	    <quote><filename>foo</filename></quote>, the option
261
	    <option>--bar</option> with the option argument
262
	    <quote>baz</quote> is either
263
	    <userinput>--options-for=foo:--bar=baz</userinput> or
140 by Teddy Hogeborn
* plugin-runner.xml (PLUGINS/WRITING PLUGINS): New section.
264
	    <userinput>--options-for=foo:--bar,baz</userinput>.  Using
265
	    <userinput>--options-for="foo:--bar baz"</userinput>. will
266
	    <emphasis>not</emphasis> work.
134 by Teddy Hogeborn
* mandos.xml: Enclose "RAM" with <acronym>.
267
	  </para>
24.1.23 by Björn Påhlsson
Added manual pages for:
268
	</listitem>
118 by Teddy Hogeborn
* mandos-keygen.xml (SYNOPSIS): Fixed tags. Unify short and long
269
      </varlistentry>
182 by Teddy Hogeborn
* Makefile (install): Use "install-client-nokey".
270
      
24.1.23 by Björn Påhlsson
Added manual pages for:
271
      <varlistentry>
139 by Teddy Hogeborn
* plugin-runner.xml: Changed short option for "--global-env" to "-G",
272
	<term><option>--disable
125 by Teddy Hogeborn
* plugin-runner.xml (OPTIONS): Use <option> tags instead of
273
	<replaceable>PLUGIN</replaceable></option></term>
274
	<term><option>-d
275
	<replaceable>PLUGIN</replaceable></option></term>
24.1.23 by Björn Påhlsson
Added manual pages for:
276
	<listitem>
277
	  <para>
134 by Teddy Hogeborn
* mandos.xml: Enclose "RAM" with <acronym>.
278
	    Disable the plugin named
279
	    <replaceable>PLUGIN</replaceable>.  The plugin will not be
280
	    started.
237.11.4 by Teddy Hogeborn
Removed superflous white space.
281
	  </para>
24.1.23 by Björn Påhlsson
Added manual pages for:
282
	</listitem>
283
      </varlistentry>
182 by Teddy Hogeborn
* Makefile (install): Use "install-client-nokey".
284
      
24.1.23 by Björn Påhlsson
Added manual pages for:
285
      <varlistentry>
139 by Teddy Hogeborn
* plugin-runner.xml: Changed short option for "--global-env" to "-G",
286
	<term><option>--enable
287
	<replaceable>PLUGIN</replaceable></option></term>
288
	<term><option>-e
289
	<replaceable>PLUGIN</replaceable></option></term>
290
	<listitem>
291
	  <para>
292
	    Re-enable the plugin named
293
	    <replaceable>PLUGIN</replaceable>.  This is only useful to
294
	    undo a previous <option>--disable</option> option, maybe
156 by Teddy Hogeborn
* mandos-clients.conf.xml (OPTIONS): Improved spelling.
295
	    from the configuration file.
139 by Teddy Hogeborn
* plugin-runner.xml: Changed short option for "--global-env" to "-G",
296
	  </para>
297
	</listitem>
298
      </varlistentry>
182 by Teddy Hogeborn
* Makefile (install): Use "install-client-nokey".
299
      
139 by Teddy Hogeborn
* plugin-runner.xml: Changed short option for "--global-env" to "-G",
300
      <varlistentry>
125 by Teddy Hogeborn
* plugin-runner.xml (OPTIONS): Use <option> tags instead of
301
	<term><option>--groupid
302
	<replaceable>ID</replaceable></option></term>
24.1.23 by Björn Påhlsson
Added manual pages for:
303
	<listitem>
304
	  <para>
134 by Teddy Hogeborn
* mandos.xml: Enclose "RAM" with <acronym>.
305
	    Change to group ID <replaceable>ID</replaceable> on
306
	    startup.  The default is 65534.  All plugins will be
307
	    started using this group ID.  <emphasis>Note:</emphasis>
308
	    This must be a number, not a name.
24.1.23 by Björn Påhlsson
Added manual pages for:
309
	  </para>
310
	</listitem>
118 by Teddy Hogeborn
* mandos-keygen.xml (SYNOPSIS): Fixed tags. Unify short and long
311
      </varlistentry>
182 by Teddy Hogeborn
* Makefile (install): Use "install-client-nokey".
312
      
24.1.23 by Björn Påhlsson
Added manual pages for:
313
      <varlistentry>
125 by Teddy Hogeborn
* plugin-runner.xml (OPTIONS): Use <option> tags instead of
314
	<term><option>--userid
315
	<replaceable>ID</replaceable></option></term>
24.1.23 by Björn Påhlsson
Added manual pages for:
316
	<listitem>
317
	  <para>
134 by Teddy Hogeborn
* mandos.xml: Enclose "RAM" with <acronym>.
318
	    Change to user ID <replaceable>ID</replaceable> on
319
	    startup.  The default is 65534.  All plugins will be
320
	    started using this user ID.  <emphasis>Note:</emphasis>
321
	    This must be a number, not a name.
24.1.23 by Björn Påhlsson
Added manual pages for:
322
	  </para>
323
	</listitem>
118 by Teddy Hogeborn
* mandos-keygen.xml (SYNOPSIS): Fixed tags. Unify short and long
324
      </varlistentry>
182 by Teddy Hogeborn
* Makefile (install): Use "install-client-nokey".
325
      
24.1.23 by Björn Påhlsson
Added manual pages for:
326
      <varlistentry>
125 by Teddy Hogeborn
* plugin-runner.xml (OPTIONS): Use <option> tags instead of
327
	<term><option>--plugin-dir
328
	<replaceable>DIRECTORY</replaceable></option></term>
24.1.23 by Björn Påhlsson
Added manual pages for:
329
	<listitem>
330
	  <para>
134 by Teddy Hogeborn
* mandos.xml: Enclose "RAM" with <acronym>.
331
	    Specify a different plugin directory.  The default is
332
	    <filename>/lib/mandos/plugins.d</filename>, which will
333
	    exist in the initial <acronym>RAM</acronym> disk
334
	    environment.
24.1.23 by Björn Påhlsson
Added manual pages for:
335
	  </para>
336
	</listitem>
118 by Teddy Hogeborn
* mandos-keygen.xml (SYNOPSIS): Fixed tags. Unify short and long
337
      </varlistentry>
24.1.23 by Björn Påhlsson
Added manual pages for:
338
      
339
      <varlistentry>
237.25.1 by Teddy Hogeborn
Add a plugin helper directory, available to all plugins.
340
	<term><option>--plugin-helper-dir
341
	<replaceable>DIRECTORY</replaceable></option></term>
342
	<listitem>
343
	  <para>
344
	    Specify a different plugin helper directory.  The default
345
	    is <filename>/lib/mandos/plugin-helpers</filename>, which
346
	    will exist in the initial <acronym>RAM</acronym> disk
347
	    environment.  (This will simply be passed to all plugins
348
	    via the <envar>MANDOSPLUGINHELPERDIR</envar> environment
349
	    variable.  See <xref linkend="writing_plugins"/>)
350
	  </para>
351
	</listitem>
352
      </varlistentry>
353
      
354
      <varlistentry>
139 by Teddy Hogeborn
* plugin-runner.xml: Changed short option for "--global-env" to "-G",
355
	<term><option>--config-file
356
	<replaceable>FILE</replaceable></option></term>
357
	<listitem>
358
	  <para>
359
	    Specify a different file to read additional options from.
360
	    See <xref linkend="files"/>.  Other command line options
361
	    will override options specified in the file.
362
	  </para>
363
	</listitem>
364
      </varlistentry>
365
      
366
      <varlistentry>
125 by Teddy Hogeborn
* plugin-runner.xml (OPTIONS): Use <option> tags instead of
367
	<term><option>--debug</option></term>
24.1.23 by Björn Påhlsson
Added manual pages for:
368
	<listitem>
369
	  <para>
134 by Teddy Hogeborn
* mandos.xml: Enclose "RAM" with <acronym>.
370
	    Enable debug mode.  This will enable a lot of output to
371
	    standard error about what the program is doing.  The
372
	    program will still perform all other functions normally.
373
	    The default is to <emphasis>not</emphasis> run in debug
374
	    mode.
375
	  </para>
376
	  <para>
377
	    The plugins will <emphasis>not</emphasis> be affected by
378
	    this option.  Use
379
	    <userinput><option>--global-options=--debug</option></userinput>
380
	    if complete debugging eruption is desired.
24.1.23 by Björn Påhlsson
Added manual pages for:
381
	  </para>
382
	</listitem>
383
      </varlistentry>
384
      
385
      <varlistentry>
125 by Teddy Hogeborn
* plugin-runner.xml (OPTIONS): Use <option> tags instead of
386
	<term><option>--help</option></term>
387
	<term><option>-?</option></term>
24.1.23 by Björn Påhlsson
Added manual pages for:
388
	<listitem>
389
	  <para>
134 by Teddy Hogeborn
* mandos.xml: Enclose "RAM" with <acronym>.
390
	    Gives a help message about options and their meanings.
24.1.23 by Björn Påhlsson
Added manual pages for:
391
	  </para>
392
	</listitem>
393
      </varlistentry>
394
      
395
      <varlistentry>
125 by Teddy Hogeborn
* plugin-runner.xml (OPTIONS): Use <option> tags instead of
396
	<term><option>--usage</option></term>
24.1.23 by Björn Påhlsson
Added manual pages for:
397
	<listitem>
398
	  <para>
134 by Teddy Hogeborn
* mandos.xml: Enclose "RAM" with <acronym>.
399
	    Gives a short usage message.
24.1.23 by Björn Påhlsson
Added manual pages for:
400
	  </para>
401
	</listitem>
402
      </varlistentry>
182 by Teddy Hogeborn
* Makefile (install): Use "install-client-nokey".
403
      
24.1.23 by Björn Påhlsson
Added manual pages for:
404
      <varlistentry>
125 by Teddy Hogeborn
* plugin-runner.xml (OPTIONS): Use <option> tags instead of
405
	<term><option>--version</option></term>
406
	<term><option>-V</option></term>
24.1.23 by Björn Påhlsson
Added manual pages for:
407
	<listitem>
408
	  <para>
134 by Teddy Hogeborn
* mandos.xml: Enclose "RAM" with <acronym>.
409
	    Prints the program version.
24.1.23 by Björn Påhlsson
Added manual pages for:
410
	  </para>
411
	</listitem>
118 by Teddy Hogeborn
* mandos-keygen.xml (SYNOPSIS): Fixed tags. Unify short and long
412
      </varlistentry>
24.1.23 by Björn Påhlsson
Added manual pages for:
413
    </variablelist>
414
  </refsect1>
182 by Teddy Hogeborn
* Makefile (install): Use "install-client-nokey".
415
  
134 by Teddy Hogeborn
* mandos.xml: Enclose "RAM" with <acronym>.
416
  <refsect1 id="overview">
417
    <title>OVERVIEW</title>
418
    <xi:include href="overview.xml"/>
419
    <para>
420
      This program will run on the client side in the initial
421
      <acronym>RAM</acronym> disk environment, and is responsible for
422
      getting a password.  It does this by running plugins, one of
423
      which will normally be the actual client program communicating
424
      with the server.
425
    </para>
426
  </refsect1>
427
  <refsect1 id="plugins">
428
    <title>PLUGINS</title>
429
    <para>
430
      This program will get a password by running a number of
237.7.825 by Teddy Hogeborn
Improve documentation
431
      <firstterm>plugins</firstterm>, which are executable programs in
432
      a directory in the initial <acronym>RAM</acronym> disk
433
      environment.  The default directory is
134 by Teddy Hogeborn
* mandos.xml: Enclose "RAM" with <acronym>.
434
      <filename>/lib/mandos/plugins.d</filename>, but this can be
435
      changed with the <option>--plugin-dir</option> option.  The
436
      plugins are started in parallel, and the first plugin to output
135 by Teddy Hogeborn
* plugin-runner.c (add_environment): Never insert existing environment
437
      a password <emphasis>and</emphasis> exit with a successful exit
438
      code will make this plugin-runner output the password from that
439
      plugin, stop any other plugins, and exit.
134 by Teddy Hogeborn
* mandos.xml: Enclose "RAM" with <acronym>.
440
    </para>
182 by Teddy Hogeborn
* Makefile (install): Use "install-client-nokey".
441
    
140 by Teddy Hogeborn
* plugin-runner.xml (PLUGINS/WRITING PLUGINS): New section.
442
    <refsect2 id="writing_plugins">
443
      <title>WRITING PLUGINS</title>
444
      <para>
237.7.825 by Teddy Hogeborn
Improve documentation
445
	A plugin is an executable program which prints a password to
446
	its standard output and then exits with a successful (zero)
447
	exit status.  If the exit status is not zero, any output on
140 by Teddy Hogeborn
* plugin-runner.xml (PLUGINS/WRITING PLUGINS): New section.
448
	standard output will be ignored by the plugin runner.  Any
449
	output on its standard error channel will simply be passed to
450
	the standard error of the plugin runner, usually the system
451
	console.
452
      </para>
453
      <para>
168 by Teddy Hogeborn
* initramfs-tools-hook: Use long options where available. Use only
454
	If the password is a single-line, manually entered passprase,
455
	a final trailing newline character should
456
	<emphasis>not</emphasis> be printed.
457
      </para>
458
      <para>
140 by Teddy Hogeborn
* plugin-runner.xml (PLUGINS/WRITING PLUGINS): New section.
459
	The plugin will run in the initial RAM disk environment, so
460
	care must be taken not to depend on any files or running
237.25.1 by Teddy Hogeborn
Add a plugin helper directory, available to all plugins.
461
	services not available there.  Any helper executables required
462
	by the plugin (which are not in the <envar>PATH</envar>) can
463
	be placed in the plugin helper directory, the name of which
464
	will be made available to the plugin via the
465
	<envar>MANDOSPLUGINHELPERDIR</envar> environment variable.
140 by Teddy Hogeborn
* plugin-runner.xml (PLUGINS/WRITING PLUGINS): New section.
466
      </para>
467
      <para>
468
	The plugin must exit cleanly and free all allocated resources
469
	upon getting the TERM signal, since this is what the plugin
470
	runner uses to stop all other plugins when one plugin has
471
	output a password and exited cleanly.
472
      </para>
473
      <para>
474
	The plugin must not use resources, like for instance reading
155 by Teddy Hogeborn
* README: Improved wording.
475
	from the standard input, without knowing that no other plugin
476
	is also using it.
140 by Teddy Hogeborn
* plugin-runner.xml (PLUGINS/WRITING PLUGINS): New section.
477
      </para>
478
      <para>
479
	It is useful, but not required, for the plugin to take the
480
	<option>--debug</option> option.
481
      </para>
482
    </refsect2>
134 by Teddy Hogeborn
* mandos.xml: Enclose "RAM" with <acronym>.
483
  </refsect1>
484
  
135 by Teddy Hogeborn
* plugin-runner.c (add_environment): Never insert existing environment
485
  <refsect1 id="fallback">
134 by Teddy Hogeborn
* mandos.xml: Enclose "RAM" with <acronym>.
486
    <title>FALLBACK</title>
487
    <para>
135 by Teddy Hogeborn
* plugin-runner.c (add_environment): Never insert existing environment
488
      If no plugins succeed, this program will, as a fallback, ask for
489
      a password on the console using <citerefentry><refentrytitle
490
      >getpass</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
491
      and output it.  This is not meant to be the normal mode of
492
      operation, as there is a separate plugin for getting a password
493
      from the console.
134 by Teddy Hogeborn
* mandos.xml: Enclose "RAM" with <acronym>.
494
    </para>
495
  </refsect1>
135 by Teddy Hogeborn
* plugin-runner.c (add_environment): Never insert existing environment
496
  
24.1.39 by Björn Påhlsson
Added all sections needed for mandos-client manual page
497
  <refsect1 id="exit_status">
498
    <title>EXIT STATUS</title>
499
    <para>
135 by Teddy Hogeborn
* plugin-runner.c (add_environment): Never insert existing environment
500
      Exit status of this program is zero if no errors were
501
      encountered, and otherwise not.  The fallback (see <xref
502
      linkend="fallback"/>) may or may not have succeeded in either
503
      case.
504
    </para>
505
  </refsect1>
506
  
507
  <refsect1 id="environment">
508
    <title>ENVIRONMENT</title>
509
    <para>
139 by Teddy Hogeborn
* plugin-runner.xml: Changed short option for "--global-env" to "-G",
510
      This program does not use any environment variables itself, it
511
      only passes on its environment to all the plugins.  The
512
      environment passed to plugins can be modified using the
513
      <option>--global-env</option> and <option>--env-for</option>
237.25.1 by Teddy Hogeborn
Add a plugin helper directory, available to all plugins.
514
      options.  Also, the <option>--plugin-helper-dir</option> option
515
      will affect the environment variable
516
      <envar>MANDOSPLUGINHELPERDIR</envar> for the plugins.
135 by Teddy Hogeborn
* plugin-runner.c (add_environment): Never insert existing environment
517
    </para>
518
  </refsect1>
519
  
139 by Teddy Hogeborn
* plugin-runner.xml: Changed short option for "--global-env" to "-G",
520
  <refsect1 id="files">
24.1.39 by Björn Påhlsson
Added all sections needed for mandos-client manual page
521
    <title>FILES</title>
522
    <para>
135 by Teddy Hogeborn
* plugin-runner.c (add_environment): Never insert existing environment
523
      <variablelist>
524
	<varlistentry>
525
	  <term><filename
526
	  >/conf/conf.d/mandos/plugin-runner.conf</filename></term>
527
	  <listitem>
528
	    <para>
529
	      Since this program will be run as a keyscript, there is
530
	      little to no opportunity to pass command line arguments
531
	      to it.  Therefore, it will <emphasis>also</emphasis>
532
	      read this file and use its contents as
533
	      whitespace-separated command line options.  Also,
534
	      everything from a <quote>#</quote> character to the end
535
	      of a line is ignored.
536
	    </para>
136 by Teddy Hogeborn
* plugin-runner.c (add_environment): Override existing environment
537
	    <para>
139 by Teddy Hogeborn
* plugin-runner.xml: Changed short option for "--global-env" to "-G",
538
	      This program is meant to run in the initial RAM disk
539
	      environment, so that is where this file is assumed to
540
	      exist.  The file does not need to exist in the normal
541
	      file system.
542
	    </para>
543
	    <para>
136 by Teddy Hogeborn
* plugin-runner.c (add_environment): Override existing environment
544
	      This file will be processed <emphasis>before</emphasis>
545
	      the normal command line options, so the latter can
546
	      override the former, if need be.
547
	    </para>
139 by Teddy Hogeborn
* plugin-runner.xml: Changed short option for "--global-env" to "-G",
548
	    <para>
549
	      This file name is the default; the file to read for
550
	      arguments can be changed using the
551
	      <option>--config-file</option> option.
552
	    </para>
135 by Teddy Hogeborn
* plugin-runner.c (add_environment): Never insert existing environment
553
	  </listitem>
554
	</varlistentry>
237.7.383 by Teddy Hogeborn
Client: Document default directories more clearly
555
	<varlistentry>
556
	  <term><filename class="directory"
557
	  >/lib/mandos/plugins.d</filename></term>
558
	  <listitem>
559
	    <para>
560
	      The default plugin directory; can be changed by the
561
	      <option>--plugin-dir</option> option.
562
	    </para>
563
	  </listitem>
564
	</varlistentry>
565
	<varlistentry>
566
	  <term><filename class="directory"
567
	  >/lib/mandos/plugin-helpers</filename></term>
568
	  <listitem>
569
	    <para>
570
	      The default plugin helper directory; can be changed by
571
	      the <option>--plugin-helper-dir</option> option.
572
	    </para>
573
	  </listitem>
574
	</varlistentry>
135 by Teddy Hogeborn
* plugin-runner.c (add_environment): Never insert existing environment
575
      </variablelist>
24.1.55 by Björn Påhlsson
updated some partial manual pages
576
    </para>
24.1.39 by Björn Påhlsson
Added all sections needed for mandos-client manual page
577
  </refsect1>
578
  
157 by Teddy Hogeborn
* plugin-runner.xml (BUGS): Document the non-recursiveness of the
579
  <refsect1 id="bugs">
580
    <title>BUGS</title>
581
    <para>
582
      The <option>--config-file</option> option is ignored when
583
      specified from within a configuration file.
584
    </para>
237.7.369 by Teddy Hogeborn
Add bug reporting information to manual pages
585
    <xi:include href="bugs.xml"/>
157 by Teddy Hogeborn
* plugin-runner.xml (BUGS): Document the non-recursiveness of the
586
  </refsect1>
135 by Teddy Hogeborn
* plugin-runner.c (add_environment): Never insert existing environment
587
  
24.1.39 by Björn Påhlsson
Added all sections needed for mandos-client manual page
588
  <refsect1 id="examples">
113 by Teddy Hogeborn
* mandos-keygen.xml (EXAMPLE): Replaced all occurrences of command
589
    <title>EXAMPLE</title>
140 by Teddy Hogeborn
* plugin-runner.xml (PLUGINS/WRITING PLUGINS): New section.
590
    <informalexample>
591
      <para>
592
	Normal invocation needs no options:
593
      </para>
594
      <para>
595
	<userinput>&COMMANDNAME;</userinput>
596
      </para>
597
    </informalexample>
598
    <informalexample>
599
      <para>
600
	Run the program, but not the plugins, in debug mode:
601
      </para>
602
      <para>
603
	
604
	<!-- do not wrap this line -->
605
	<userinput>&COMMANDNAME; --debug</userinput>
606
	
607
      </para>
608
    </informalexample>
609
    <informalexample>
610
      <para>
611
	Run all plugins, but run the <quote>foo</quote> plugin in
612
	debug mode:
613
      </para>
614
      <para>
615
	
616
	<!-- do not wrap this line -->
617
	<userinput>&COMMANDNAME; --options-for=foo:--debug</userinput>
618
	
619
      </para>
620
    </informalexample>
621
    <informalexample>
622
      <para>
623
	Run all plugins, but not the program, in debug mode:
624
      </para>
625
      <para>
626
	
627
	<!-- do not wrap this line -->
628
	<userinput>&COMMANDNAME; --global-options=--debug</userinput>
629
	
630
      </para>
631
    </informalexample>
632
    <informalexample>
633
      <para>
237.7.306 by Teddy Hogeborn
plugin-runner.xml (EXAMPLE): Use the /usr/lib/<arch> directory.
634
	Read a different configuration file, run plugins from a
635
	different directory, specify an alternate plugin helper
237.7.672 by Teddy Hogeborn
Allow line breaks on long lines in plugin-runner manual
636
	directory and add four options to the
171 by Teddy Hogeborn
Renamed "password-request" to "mandos-client".
637
	<citerefentry><refentrytitle >mandos-client</refentrytitle>
140 by Teddy Hogeborn
* plugin-runner.xml (PLUGINS/WRITING PLUGINS): New section.
638
	<manvolnum>8mandos</manvolnum></citerefentry> plugin:
639
      </para>
640
      <para>
641
642
<!-- do not wrap this line -->
237.7.672 by Teddy Hogeborn
Allow line breaks on long lines in plugin-runner manual
643
<userinput>cd /etc/keys/mandos; &COMMANDNAME;  --config-file=/etc/mandos/plugin-runner.conf --plugin-dir /usr/lib/x86_64-linux-gnu/mandos/plugins.d --plugin-helper-dir /usr/lib/x86_64-linux-gnu/mandos/plugin-helpers --options-for=mandos-client:--pubkey=pubkey.txt,&#x200b;--seckey=seckey.txt,&#x200b;--tls-pubkey=tls-pubkey.pem,&#x200b;--tls-privkey=tls-privkey.pem</userinput>
140 by Teddy Hogeborn
* plugin-runner.xml (PLUGINS/WRITING PLUGINS): New section.
644
645
      </para>
646
    </informalexample>
24.1.39 by Björn Påhlsson
Added all sections needed for mandos-client manual page
647
  </refsect1>
648
  <refsect1 id="security">
649
    <title>SECURITY</title>
650
    <para>
140 by Teddy Hogeborn
* plugin-runner.xml (PLUGINS/WRITING PLUGINS): New section.
651
      This program will, when starting, try to switch to another user.
652
      If it is started as root, it will succeed, and will by default
653
      switch to user and group 65534, which are assumed to be
654
      non-privileged.  This user and group is then what all plugins
655
      will be started as.  Therefore, the only way to run a plugin as
656
      a privileged user is to have the set-user-ID or set-group-ID bit
164 by Teddy Hogeborn
* mandos: Open the PID file before daemonizing, but write to it
657
      set on the plugin executable file (see <citerefentry>
140 by Teddy Hogeborn
* plugin-runner.xml (PLUGINS/WRITING PLUGINS): New section.
658
      <refentrytitle>execve</refentrytitle><manvolnum>2</manvolnum>
659
      </citerefentry>).
660
    </para>
661
    <para>
662
      If this program is used as a keyscript in <citerefentry
663
      ><refentrytitle>crypttab</refentrytitle><manvolnum>5</manvolnum>
156 by Teddy Hogeborn
* mandos-clients.conf.xml (OPTIONS): Improved spelling.
664
      </citerefentry>, there is a slight risk that if this program
665
      fails to work, there might be no way to boot the system except
666
      for booting from another media and editing the initial RAM disk
140 by Teddy Hogeborn
* plugin-runner.xml (PLUGINS/WRITING PLUGINS): New section.
667
      image to not run this program.  This is, however, unlikely,
668
      since the <citerefentry><refentrytitle
669
      >password-prompt</refentrytitle><manvolnum>8mandos</manvolnum>
670
      </citerefentry> plugin will read a password from the console in
671
      case of failure of the other plugins, and this plugin runner
672
      will also, in case of catastrophic failure, itself fall back to
673
      asking and outputting a password on the console (see <xref
674
      linkend="fallback"/>).
24.1.55 by Björn Påhlsson
updated some partial manual pages
675
    </para>
24.1.39 by Björn Påhlsson
Added all sections needed for mandos-client manual page
676
  </refsect1>
135 by Teddy Hogeborn
* plugin-runner.c (add_environment): Never insert existing environment
677
  
24.1.39 by Björn Påhlsson
Added all sections needed for mandos-client manual page
678
  <refsect1 id="see_also">
679
    <title>SEE ALSO</title>
680
    <para>
237.7.41 by Teddy Hogeborn
* Makefile (DOCS): Added "intro.8mandos".
681
      <citerefentry><refentrytitle>intro</refentrytitle>
682
      <manvolnum>8mandos</manvolnum></citerefentry>,
114 by Teddy Hogeborn
* mandos-clients.conf.xml (SEE ALSO): Alphabetized, as per
683
      <citerefentry><refentrytitle>cryptsetup</refentrytitle>
684
      <manvolnum>8</manvolnum></citerefentry>,
140 by Teddy Hogeborn
* plugin-runner.xml (PLUGINS/WRITING PLUGINS): New section.
685
      <citerefentry><refentrytitle>crypttab</refentrytitle>
686
      <manvolnum>5</manvolnum></citerefentry>,
687
      <citerefentry><refentrytitle>execve</refentrytitle>
688
      <manvolnum>2</manvolnum></citerefentry>,
24.1.41 by Björn Påhlsson
updated mandos-client sections and added see also stuff
689
      <citerefentry><refentrytitle>mandos</refentrytitle>
114 by Teddy Hogeborn
* mandos-clients.conf.xml (SEE ALSO): Alphabetized, as per
690
      <manvolnum>8</manvolnum></citerefentry>,
691
      <citerefentry><refentrytitle>password-prompt</refentrytitle>
113 by Teddy Hogeborn
* mandos-keygen.xml (EXAMPLE): Replaced all occurrences of command
692
      <manvolnum>8mandos</manvolnum></citerefentry>,
171 by Teddy Hogeborn
Renamed "password-request" to "mandos-client".
693
      <citerefentry><refentrytitle>mandos-client</refentrytitle>
114 by Teddy Hogeborn
* mandos-clients.conf.xml (SEE ALSO): Alphabetized, as per
694
      <manvolnum>8mandos</manvolnum></citerefentry>
24.1.41 by Björn Påhlsson
updated mandos-client sections and added see also stuff
695
    </para>
24.1.39 by Björn Påhlsson
Added all sections needed for mandos-client manual page
696
  </refsect1>
135 by Teddy Hogeborn
* plugin-runner.c (add_environment): Never insert existing environment
697
  
24.1.23 by Björn Påhlsson
Added manual pages for:
698
</refentry>
111 by Teddy Hogeborn
* mandos-clients.conf.xml (ENTITY TIMESTAMP): New. Automatically
699
<!-- Local Variables: -->
700
<!-- time-stamp-start: "<!ENTITY TIMESTAMP [\"']" -->
701
<!-- time-stamp-end: "[\"']>" -->
702
<!-- time-stamp-format: "%:y-%02m-%02d" -->
703
<!-- End: -->