/mandos/trunk

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/trunk

« back to all changes in this revision

Viewing changes to mandos.xml

  • Committer: Teddy Hogeborn
  • Date: 2008-08-31 20:01:03 UTC
  • Revision ID: teddy@fukt.bsnet.se-20080831200103-wvjp5oagtxj7s25g
* plugin-runner.c: Break a couple of long lines.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<?xml version="1.0" encoding="UTF-8"?>
2
2
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3
3
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
 
4
<!ENTITY VERSION "1.0">
4
5
<!ENTITY COMMANDNAME "mandos">
5
 
<!ENTITY TIMESTAMP "2011-10-03">
6
 
<!ENTITY % common SYSTEM "common.ent">
7
 
%common;
 
6
<!ENTITY TIMESTAMP "2008-08-31">
8
7
]>
9
8
 
10
9
<refentry xmlns:xi="http://www.w3.org/2001/XInclude">
11
 
   <refentryinfo>
 
10
  <refentryinfo>
12
11
    <title>Mandos Manual</title>
13
12
    <!-- NWalsh’s docbook scripts use this to generate the footer: -->
14
13
    <productname>Mandos</productname>
15
 
    <productnumber>&version;</productnumber>
 
14
    <productnumber>&VERSION;</productnumber>
16
15
    <date>&TIMESTAMP;</date>
17
16
    <authorgroup>
18
17
      <author>
19
18
        <firstname>Björn</firstname>
20
19
        <surname>Påhlsson</surname>
21
20
        <address>
22
 
          <email>belorn@recompile.se</email>
 
21
          <email>belorn@fukt.bsnet.se</email>
23
22
        </address>
24
23
      </author>
25
24
      <author>
26
25
        <firstname>Teddy</firstname>
27
26
        <surname>Hogeborn</surname>
28
27
        <address>
29
 
          <email>teddy@recompile.se</email>
 
28
          <email>teddy@fukt.bsnet.se</email>
30
29
        </address>
31
30
      </author>
32
31
    </authorgroup>
33
32
    <copyright>
34
33
      <year>2008</year>
35
 
      <year>2009</year>
36
 
      <year>2010</year>
37
 
      <year>2011</year>
38
34
      <holder>Teddy Hogeborn</holder>
39
35
      <holder>Björn Påhlsson</holder>
40
36
    </copyright>
41
37
    <xi:include href="legalnotice.xml"/>
42
38
  </refentryinfo>
43
 
  
 
39
 
44
40
  <refmeta>
45
41
    <refentrytitle>&COMMANDNAME;</refentrytitle>
46
42
    <manvolnum>8</manvolnum>
52
48
      Gives encrypted passwords to authenticated Mandos clients
53
49
    </refpurpose>
54
50
  </refnamediv>
55
 
  
 
51
 
56
52
  <refsynopsisdiv>
57
53
    <cmdsynopsis>
58
54
      <command>&COMMANDNAME;</command>
87
83
      <replaceable>DIRECTORY</replaceable></option></arg>
88
84
      <sbr/>
89
85
      <arg><option>--debug</option></arg>
90
 
      <sbr/>
91
 
      <arg><option>--debuglevel
92
 
      <replaceable>LEVEL</replaceable></option></arg>
93
 
      <sbr/>
94
 
      <arg><option>--no-dbus</option></arg>
95
 
      <sbr/>
96
 
      <arg><option>--no-ipv6</option></arg>
97
86
    </cmdsynopsis>
98
87
    <cmdsynopsis>
99
88
      <command>&COMMANDNAME;</command>
111
100
      <arg choice="plain"><option>--check</option></arg>
112
101
    </cmdsynopsis>
113
102
  </refsynopsisdiv>
114
 
  
 
103
 
115
104
  <refsect1 id="description">
116
105
    <title>DESCRIPTION</title>
117
106
    <para>
118
107
      <command>&COMMANDNAME;</command> is a server daemon which
119
108
      handles incoming request for passwords for a pre-defined list of
120
 
      client host computers. For an introduction, see
121
 
      <citerefentry><refentrytitle>intro</refentrytitle>
122
 
      <manvolnum>8mandos</manvolnum></citerefentry>. The Mandos server
123
 
      uses Zeroconf to announce itself on the local network, and uses
124
 
      TLS to communicate securely with and to authenticate the
125
 
      clients.  The Mandos server uses IPv6 to allow Mandos clients to
126
 
      use IPv6 link-local addresses, since the clients will probably
127
 
      not have any other addresses configured (see <xref
128
 
      linkend="overview"/>).  Any authenticated client is then given
129
 
      the stored pre-encrypted password for that specific client.
 
109
      client host computers.  The Mandos server uses Zeroconf to
 
110
      announce itself on the local network, and uses TLS to
 
111
      communicate securely with and to authenticate the clients.  The
 
112
      Mandos server uses IPv6 to allow Mandos clients to use IPv6
 
113
      link-local addresses, since the clients will probably not have
 
114
      any other addresses configured (see <xref linkend="overview"/>).
 
115
      Any authenticated client is then given the stored pre-encrypted
 
116
      password for that specific client.
130
117
    </para>
 
118
 
131
119
  </refsect1>
132
120
  
133
121
  <refsect1 id="purpose">
134
122
    <title>PURPOSE</title>
 
123
 
135
124
    <para>
136
125
      The purpose of this is to enable <emphasis>remote and unattended
137
126
      rebooting</emphasis> of client host computer with an
138
127
      <emphasis>encrypted root file system</emphasis>.  See <xref
139
128
      linkend="overview"/> for details.
140
129
    </para>
 
130
    
141
131
  </refsect1>
142
132
  
143
133
  <refsect1 id="options">
144
134
    <title>OPTIONS</title>
 
135
    
145
136
    <variablelist>
146
137
      <varlistentry>
147
138
        <term><option>--help</option></term>
199
190
          <xi:include href="mandos-options.xml" xpointer="debug"/>
200
191
        </listitem>
201
192
      </varlistentry>
202
 
      
203
 
      <varlistentry>
204
 
        <term><option>--debuglevel
205
 
        <replaceable>LEVEL</replaceable></option></term>
206
 
        <listitem>
207
 
          <para>
208
 
            Set the debugging log level.
209
 
            <replaceable>LEVEL</replaceable> is a string, one of
210
 
            <quote><literal>CRITICAL</literal></quote>,
211
 
            <quote><literal>ERROR</literal></quote>,
212
 
            <quote><literal>WARNING</literal></quote>,
213
 
            <quote><literal>INFO</literal></quote>, or
214
 
            <quote><literal>DEBUG</literal></quote>, in order of
215
 
            increasing verbosity.  The default level is
216
 
            <quote><literal>WARNING</literal></quote>.
217
 
          </para>
218
 
        </listitem>
219
 
      </varlistentry>
220
 
      
 
193
 
221
194
      <varlistentry>
222
195
        <term><option>--priority <replaceable>
223
196
        PRIORITY</replaceable></option></term>
225
198
          <xi:include href="mandos-options.xml" xpointer="priority"/>
226
199
        </listitem>
227
200
      </varlistentry>
228
 
      
 
201
 
229
202
      <varlistentry>
230
203
        <term><option>--servicename
231
204
        <replaceable>NAME</replaceable></option></term>
234
207
                      xpointer="servicename"/>
235
208
        </listitem>
236
209
      </varlistentry>
237
 
      
 
210
 
238
211
      <varlistentry>
239
212
        <term><option>--configdir
240
213
        <replaceable>DIRECTORY</replaceable></option></term>
249
222
          </para>
250
223
        </listitem>
251
224
      </varlistentry>
252
 
      
 
225
 
253
226
      <varlistentry>
254
227
        <term><option>--version</option></term>
255
228
        <listitem>
258
231
          </para>
259
232
        </listitem>
260
233
      </varlistentry>
261
 
      
262
 
      <varlistentry>
263
 
        <term><option>--no-dbus</option></term>
264
 
        <listitem>
265
 
          <xi:include href="mandos-options.xml" xpointer="dbus"/>
266
 
          <para>
267
 
            See also <xref linkend="dbus_interface"/>.
268
 
          </para>
269
 
        </listitem>
270
 
      </varlistentry>
271
 
      
272
 
      <varlistentry>
273
 
        <term><option>--no-ipv6</option></term>
274
 
        <listitem>
275
 
          <xi:include href="mandos-options.xml" xpointer="ipv6"/>
276
 
        </listitem>
277
 
      </varlistentry>
278
234
    </variablelist>
279
235
  </refsect1>
280
 
  
 
236
 
281
237
  <refsect1 id="overview">
282
238
    <title>OVERVIEW</title>
283
239
    <xi:include href="overview.xml"/>
284
240
    <para>
285
241
      This program is the server part.  It is a normal server program
286
242
      and will run in a normal system environment, not in an initial
287
 
      <acronym>RAM</acronym> disk environment.
 
243
      RAM disk environment.
288
244
    </para>
289
245
  </refsect1>
290
 
  
 
246
 
291
247
  <refsect1 id="protocol">
292
248
    <title>NETWORK PROTOCOL</title>
293
249
    <para>
345
301
      </row>
346
302
    </tbody></tgroup></table>
347
303
  </refsect1>
348
 
  
 
304
 
349
305
  <refsect1 id="checking">
350
306
    <title>CHECKING</title>
351
307
    <para>
352
308
      The server will, by default, continually check that the clients
353
309
      are still up.  If a client has not been confirmed as being up
354
310
      for some time, the client is assumed to be compromised and is no
355
 
      longer eligible to receive the encrypted password.  (Manual
356
 
      intervention is required to re-enable a client.)  The timeout,
357
 
      extended timeout, checker program, and interval between checks
358
 
      can be configured both globally and per client; see
359
 
      <citerefentry><refentrytitle>mandos-clients.conf</refentrytitle>
360
 
      <manvolnum>5</manvolnum></citerefentry>.  A client successfully
361
 
      receiving its password will also be treated as a successful
362
 
      checker run.
363
 
    </para>
364
 
  </refsect1>
365
 
  
366
 
  <refsect1 id="approval">
367
 
    <title>APPROVAL</title>
368
 
    <para>
369
 
      The server can be configured to require manual approval for a
370
 
      client before it is sent its secret.  The delay to wait for such
371
 
      approval and the default action (approve or deny) can be
372
 
      configured both globally and per client; see <citerefentry>
 
311
      longer eligible to receive the encrypted password.  The timeout,
 
312
      checker program, and interval between checks can be configured
 
313
      both globally and per client; see <citerefentry>
373
314
      <refentrytitle>mandos-clients.conf</refentrytitle>
374
 
      <manvolnum>5</manvolnum></citerefentry>.  By default all clients
375
 
      will be approved immediately without delay.
376
 
    </para>
377
 
    <para>
378
 
      This can be used to deny a client its secret if not manually
379
 
      approved within a specified time.  It can also be used to make
380
 
      the server delay before giving a client its secret, allowing
381
 
      optional manual denying of this specific client.
382
 
    </para>
383
 
    
 
315
      <manvolnum>5</manvolnum></citerefentry>.
 
316
    </para>
384
317
  </refsect1>
385
 
  
 
318
 
386
319
  <refsect1 id="logging">
387
320
    <title>LOGGING</title>
388
321
    <para>
392
325
      and also show them on the console.
393
326
    </para>
394
327
  </refsect1>
395
 
  
396
 
  <refsect1 id="dbus_interface">
397
 
    <title>D-BUS INTERFACE</title>
398
 
    <para>
399
 
      The server will by default provide a D-Bus system bus interface.
400
 
      This interface will only be accessible by the root user or a
401
 
      Mandos-specific user, if such a user exists.  For documentation
402
 
      of the D-Bus API, see the file <filename>DBUS-API</filename>.
403
 
    </para>
404
 
  </refsect1>
405
 
  
 
328
 
406
329
  <refsect1 id="exit_status">
407
330
    <title>EXIT STATUS</title>
408
331
    <para>
410
333
      critical error is encountered.
411
334
    </para>
412
335
  </refsect1>
413
 
  
 
336
 
414
337
  <refsect1 id="environment">
415
338
    <title>ENVIRONMENT</title>
416
339
    <variablelist>
430
353
      </varlistentry>
431
354
    </variablelist>
432
355
  </refsect1>
433
 
  
434
 
  <refsect1 id="files">
 
356
 
 
357
  <refsect1 id="file">
435
358
    <title>FILES</title>
436
359
    <para>
437
360
      Use the <option>--configdir</option> option to change where
460
383
        </listitem>
461
384
      </varlistentry>
462
385
      <varlistentry>
463
 
        <term><filename>/var/run/mandos.pid</filename></term>
 
386
        <term><filename>/var/run/mandos/mandos.pid</filename></term>
464
387
        <listitem>
465
388
          <para>
466
 
            The file containing the process id of the
467
 
            <command>&COMMANDNAME;</command> process started last.
 
389
            The file containing the process id of
 
390
            <command>&COMMANDNAME;</command>.
468
391
          </para>
469
392
        </listitem>
470
393
      </varlistentry>
498
421
      backtrace.  This could be considered a feature.
499
422
    </para>
500
423
    <para>
501
 
      Currently, if a client is disabled due to having timed out, the
502
 
      server does not record this fact onto permanent storage.  This
503
 
      has some security implications, see <xref linkend="clients"/>.
 
424
      Currently, if a client is declared <quote>invalid</quote> due to
 
425
      having timed out, the server does not record this fact onto
 
426
      permanent storage.  This has some security implications, see
 
427
      <xref linkend="CLIENTS"/>.
 
428
    </para>
 
429
    <para>
 
430
      There is currently no way of querying the server of the current
 
431
      status of clients, other than analyzing its <systemitem
 
432
      class="service">syslog</systemitem> output.
504
433
    </para>
505
434
    <para>
506
435
      There is no fine-grained control over logging and debug output.
509
438
      Debug mode is conflated with running in the foreground.
510
439
    </para>
511
440
    <para>
512
 
      The console log messages do not show a time stamp.
513
 
    </para>
514
 
    <para>
515
 
      This server does not check the expire time of clients’ OpenPGP
516
 
      keys.
 
441
      The console log messages does not show a timestamp.
517
442
    </para>
518
443
  </refsect1>
519
444
  
554
479
      </para>
555
480
    </informalexample>
556
481
  </refsect1>
557
 
  
 
482
 
558
483
  <refsect1 id="security">
559
484
    <title>SECURITY</title>
560
 
    <refsect2 id="server">
 
485
    <refsect2 id="SERVER">
561
486
      <title>SERVER</title>
562
487
      <para>
563
488
        Running this <command>&COMMANDNAME;</command> server program
564
489
        should not in itself present any security risk to the host
565
 
        computer running it.  The program switches to a non-root user
566
 
        soon after startup.
 
490
        computer running it.  The program does not need any special
 
491
        privileges to run, and is designed to run as a non-root user.
567
492
      </para>
568
493
    </refsect2>
569
 
    <refsect2 id="clients">
 
494
    <refsect2 id="CLIENTS">
570
495
      <title>CLIENTS</title>
571
496
      <para>
572
497
        The server only gives out its stored data to clients which
579
504
        <citerefentry><refentrytitle>mandos-clients.conf</refentrytitle>
580
505
        <manvolnum>5</manvolnum></citerefentry>)
581
506
        <emphasis>must</emphasis> be made non-readable by anyone
582
 
        except the user starting the server (usually root).
 
507
        except the user running the server.
583
508
      </para>
584
509
      <para>
585
510
        As detailed in <xref linkend="checking"/>, the status of all
588
513
      </para>
589
514
      <para>
590
515
        If a client is compromised, its downtime should be duly noted
591
 
        by the server which would therefore disable the client.  But
592
 
        if the server was ever restarted, it would re-read its client
593
 
        list from its configuration file and again regard all clients
594
 
        therein as enabled, and hence eligible to receive their
595
 
        passwords.  Therefore, be careful when restarting servers if
596
 
        it is suspected that a client has, in fact, been compromised
597
 
        by parties who may now be running a fake Mandos client with
598
 
        the keys from the non-encrypted initial <acronym>RAM</acronym>
599
 
        image of the client host.  What should be done in that case
600
 
        (if restarting the server program really is necessary) is to
601
 
        stop the server program, edit the configuration file to omit
602
 
        any suspect clients, and restart the server program.
 
516
        by the server which would therefore declare the client
 
517
        invalid.  But if the server was ever restarted, it would
 
518
        re-read its client list from its configuration file and again
 
519
        regard all clients therein as valid, and hence eligible to
 
520
        receive their passwords.  Therefore, be careful when
 
521
        restarting servers if it is suspected that a client has, in
 
522
        fact, been compromised by parties who may now be running a
 
523
        fake Mandos client with the keys from the non-encrypted
 
524
        initial RAM image of the client host.  What should be done in
 
525
        that case (if restarting the server program really is
 
526
        necessary) is to stop the server program, edit the
 
527
        configuration file to omit any suspect clients, and restart
 
528
        the server program.
603
529
      </para>
604
530
      <para>
605
531
        For more details on client-side security, see
606
 
        <citerefentry><refentrytitle>mandos-client</refentrytitle>
 
532
        <citerefentry><refentrytitle>password-request</refentrytitle>
607
533
        <manvolnum>8mandos</manvolnum></citerefentry>.
608
534
      </para>
609
535
    </refsect2>
610
536
  </refsect1>
611
 
  
 
537
 
612
538
  <refsect1 id="see_also">
613
539
    <title>SEE ALSO</title>
614
540
    <para>
615
 
      <citerefentry><refentrytitle>intro</refentrytitle>
616
 
      <manvolnum>8mandos</manvolnum></citerefentry>,
617
 
      <citerefentry><refentrytitle>mandos-clients.conf</refentrytitle>
618
 
      <manvolnum>5</manvolnum></citerefentry>,
619
 
      <citerefentry><refentrytitle>mandos.conf</refentrytitle>
620
 
      <manvolnum>5</manvolnum></citerefentry>,
621
 
      <citerefentry><refentrytitle>mandos-client</refentrytitle>
622
 
      <manvolnum>8mandos</manvolnum></citerefentry>,
623
 
      <citerefentry><refentrytitle>sh</refentrytitle>
624
 
      <manvolnum>1</manvolnum></citerefentry>
 
541
      <citerefentry>
 
542
        <refentrytitle>mandos-clients.conf</refentrytitle>
 
543
        <manvolnum>5</manvolnum></citerefentry>, <citerefentry>
 
544
        <refentrytitle>mandos.conf</refentrytitle>
 
545
        <manvolnum>5</manvolnum></citerefentry>, <citerefentry>
 
546
        <refentrytitle>password-request</refentrytitle>
 
547
        <manvolnum>8mandos</manvolnum></citerefentry>, <citerefentry>
 
548
        <refentrytitle>sh</refentrytitle><manvolnum>1</manvolnum>
 
549
      </citerefentry>
625
550
    </para>
626
551
    <variablelist>
627
552
      <varlistentry>