1
<?xml version="1.0" encoding="UTF-8"?>
2
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4
<!ENTITY VERSION "1.0">
5
<!ENTITY COMMANDNAME "plugin-runner">
6
<!ENTITY TIMESTAMP "2008-08-31">
11
<title>Mandos Manual</title>
12
<!-- Nwalsh’s docbook scripts use this to generate the footer: -->
13
<productname>Mandos</productname>
14
<productnumber>&VERSION;</productnumber>
15
<date>&TIMESTAMP;</date>
18
<firstname>Björn</firstname>
19
<surname>Påhlsson</surname>
21
<email>belorn@fukt.bsnet.se</email>
25
<firstname>Teddy</firstname>
26
<surname>Hogeborn</surname>
28
<email>teddy@fukt.bsnet.se</email>
34
<holder>Teddy Hogeborn</holder>
35
<holder>Björn Påhlsson</holder>
39
This manual page is free software: you can redistribute it
40
and/or modify it under the terms of the GNU General Public
41
License as published by the Free Software Foundation,
42
either version 3 of the License, or (at your option) any
47
This manual page is distributed in the hope that it will
48
be useful, but WITHOUT ANY WARRANTY; without even the
49
implied warranty of MERCHANTABILITY or FITNESS FOR A
50
PARTICULAR PURPOSE. See the GNU General Public License
55
You should have received a copy of the GNU General Public
56
License along with this program; If not, see
57
<ulink url="http://www.gnu.org/licenses/"/>.
63
<refentrytitle>&COMMANDNAME;</refentrytitle>
64
<manvolnum>8mandos</manvolnum>
68
<refname><command>&COMMANDNAME;</command></refname>
70
Run Mandos plugins. Pass data from first succesful one.
76
<command>&COMMANDNAME;</command>
78
<arg choice="plain"><option>--global-envs=<replaceable
79
>VAR</replaceable><literal>=</literal><replaceable
80
>value</replaceable></option></arg>
81
<arg choice="plain"><option>-e
82
<replaceable>VAR</replaceable><literal>=</literal><replaceable
83
>value</replaceable> </option></arg>
87
<arg choice="plain"><option>--envs-for=<replaceable
88
>PLUGIN</replaceable><literal>:</literal><replaceable
89
>ENV</replaceable><literal>=</literal><replaceable
90
>value</replaceable></option></arg>
91
<arg choice="plain"><option>-f<replaceable>
92
PLUGIN</replaceable><literal>:</literal><replaceable
93
>ENV</replaceable><literal>=</literal><replaceable
94
>value</replaceable> </option></arg>
98
<arg choice="plain"><option>--global-options=<replaceable
99
>OPTIONS</replaceable></option></arg>
100
<arg choice="plain"><option>-g<replaceable>
101
OPTIONS</replaceable> </option></arg>
105
<arg choice="plain"><option>--options-for=<replaceable
106
>PLUGIN</replaceable><literal>:</literal><replaceable
107
>OPTIONS</replaceable></option></arg>
108
<arg choice="plain"><option>-f<replaceable>
109
PLUGIN</replaceable><literal>:</literal><replaceable
110
>OPTIONS</replaceable> </option></arg>
114
<arg choice="plain"><option>--disable=<replaceable
115
>PLUGIN</replaceable></option></arg>
116
<arg choice="plain"><option>-d
117
<replaceable>PLUGIN</replaceable> </option></arg>
120
<arg><option>--groupid=<replaceable
121
>ID</replaceable></option></arg>
123
<arg><option>--userid=<replaceable
124
>ID</replaceable></option></arg>
126
<arg><option>--plugin-dir=<replaceable
127
>DIRECTORY</replaceable></option></arg>
129
<arg><option>--debug</option></arg>
132
<command>&COMMANDNAME;</command>
134
<arg choice="plain"><option>--help</option></arg>
135
<arg choice="plain"><option>-?</option></arg>
139
<command>&COMMANDNAME;</command>
140
<arg choice="plain"><option>--usage</option></arg>
143
<command>&COMMANDNAME;</command>
145
<arg choice="plain"><option>--version</option></arg>
146
<arg choice="plain"><option>-V</option></arg>
151
<refsect1 id="description">
152
<title>DESCRIPTION</title>
154
<command>&COMMANDNAME;</command> is a plugin runner that waits
155
for any of its plugins to return sucessfull with a password, and
156
passes it to cryptsetup as stdout message. This command is not
157
meant to be invoked directly, but is instead meant to be run by
158
cryptsetup by being specified in /etc/crypttab as a keyscript
159
and subsequlently started in the initrd environment. See
160
<citerefentry><refentrytitle>crypttab</refentrytitle>
161
<manvolnum>5</manvolnum></citerefentry> for more information on
166
plugins is looked for in the plugins directory which by default will be
167
/conf/conf.d/mandos/plugins.d if not changed by option --plugin-dir.
171
<title>OPTIONS</title>
174
<term><option>--global-options
175
<replaceable>OPTIONS</replaceable></option></term>
177
<replaceable>OPTIONS</replaceable></option></term>
180
Global options given to all plugins as additional start
181
arguments. Options are specified with a -o flag followed
182
by a comma separated string of options.
188
<term><option>--options-for
189
<replaceable>PLUGIN</replaceable><literal>:</literal
190
><replaceable>OPTION</replaceable></option></term>
192
<replaceable>PLUGIN</replaceable><literal>:</literal
193
><replaceable>OPTION</replaceable></option></term>
196
Plugin specific options given to the plugin as additional
197
start arguments. Options are specified with a -o flag
198
followed by a comma separated string of options.
204
<term><option> --disable
205
<replaceable>PLUGIN</replaceable></option></term>
207
<replaceable>PLUGIN</replaceable></option></term>
210
Disable a specific plugin
216
<term><option>--groupid
217
<replaceable>ID</replaceable></option></term>
220
Group ID the plugins will run as
226
<term><option>--userid
227
<replaceable>ID</replaceable></option></term>
230
User ID the plugins will run as
236
<term><option>--plugin-dir
237
<replaceable>DIRECTORY</replaceable></option></term>
240
Specify a different plugin directory
246
<term><option>--debug</option></term>
255
<term><option>--help</option></term>
256
<term><option>-?</option></term>
265
<term><option>--usage</option></term>
268
Gives a short usage message
274
<term><option>--version</option></term>
275
<term><option>-V</option></term>
278
Prints the program version
285
<refsect1 id="exit_status">
286
<title>EXIT STATUS</title>
297
<refsect1 id="notes">
309
<refsect1 id="examples">
310
<title>EXAMPLE</title>
315
<refsect1 id="security">
316
<title>SECURITY</title>
321
<refsect1 id="see_also">
322
<title>SEE ALSO</title>
324
<citerefentry><refentrytitle>cryptsetup</refentrytitle>
325
<manvolnum>8</manvolnum></citerefentry>,
326
<citerefentry><refentrytitle>mandos</refentrytitle>
327
<manvolnum>8</manvolnum></citerefentry>,
328
<citerefentry><refentrytitle>password-prompt</refentrytitle>
329
<manvolnum>8mandos</manvolnum></citerefentry>,
330
<citerefentry><refentrytitle>password-request</refentrytitle>
331
<manvolnum>8mandos</manvolnum></citerefentry>
336
<!-- Local Variables: -->
337
<!-- time-stamp-start: "<!ENTITY TIMESTAMP [\"']" -->
338
<!-- time-stamp-end: "[\"']>" -->
339
<!-- time-stamp-format: "%:y-%02m-%02d" -->