/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-options.xml

  • Committer: Teddy Hogeborn
  • Date: 2009-10-24 19:17:52 UTC
  • Revision ID: teddy@fukt.bsnet.se-20091024191752-7g6xlf6wpp2pdexb
Convert some programs to use the exit codes from <sysexits.h>.  Change
all programs using the "argp" parsing functions to use them correctly;
checking return value, using argp_error() to report parse errors etc.

* plugin-runner.c: Use <sysexits.h> exit codes.  Always use fallback,
                   even on option errors, except for "--help", etc.
  (getplugin): Make sure "errno" is set correctly on return.
  (main): Declare our own "--help", "--usage", and "--version"
          options which do not cause the fallback to be invoked.
          In all other options, use fallback on any error.
  (parse_opt, parse_opt_config_file): Reset errno at start and return
                                      errno.  No need to check "arg"
                                      for NULL.  New "--help",
                                      "--usage", and "--version"
                                      options.
  (parse_opt): Accept empty string as global option.  Do not print
               errors which will be detected and reported later.  Do
               "argp_error()" on parse error or empty plugin names.
* plugins.d/mandos-client.c: Use <sysexits.h> exit codes.  Do not
                             return successful exit code on "--help",
                             etc. since this would give the wrong
                             message to "plugin-runner".
  (main): Declare our own "--help", "--usage", and "--version"
          options which do not return a successful exit code.
  (parse_opt): Reset errno at start and return errno.  Do
               "argp_error()" on parse errors.  New "--help",
               "--usage", and "--version" options.
* plugins.d/password-prompt.c: Use exit codes from <sysexits.h>.  Do
                               not return successful exit code on
                               "--help", etc. since this would give
                               the wrong message to "plugin-runner".
  (main): Declare our own "--help", "--usage", and "--version" options
          which do not return a successful exit code.  Do
          close(STDOUT_FILENO) after writing to check its return code.
  (parse_opt): Reset errno at start and return errno.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
    specified IPv6 address.  If a link-local address is specified, an
27
27
    interface should be set, since a link-local address is only valid
28
28
    on a single interface.  By default, the server will listen to all
29
 
    available addresses.  If set, this must be an IPv6 address; an
30
 
    IPv4 address can only be specified using IPv4-mapped IPv6 address
31
 
    syntax: <quote><systemitem class="ipaddress"
32
 
    >::FFFF:192.0.2.3</systemitem ></quote>.
 
29
    available addresses.  If set, this must normally be an IPv6
 
30
    address; an IPv4 address can only be specified using IPv4-mapped
 
31
    IPv6 address syntax: <quote><systemitem class="ipaddress"
 
32
    >::FFFF:192.0.2.3</systemitem ></quote>.  (Only if IPv6 usage is
 
33
    <emphasis>disabled</emphasis> (see below) must this be an IPv4
 
34
    address.)
33
35
  </para>
34
36
  
35
37
  <para id="port">
58
60
  <para id="servicename">
59
61
    Zeroconf service name.  The default is
60
62
    <quote><literal>Mandos</literal></quote>.  This only needs to be
61
 
    changed this if it, for some reason, is necessary to run more than
62
 
    one server on the same <emphasis>host</emphasis>, which would not
 
63
    changed if for some reason is would be necessary to run more than
 
64
    one server on the same <emphasis>host</emphasis>.  This would not
63
65
    normally be useful.  If there are name collisions on the same
64
66
    <emphasis>network</emphasis>, the newer server will automatically
65
67
    rename itself to <quote><literal>Mandos #2</literal></quote>, and
66
68
    so on; therefore, this option is not needed in that case.
67
69
  </para>
68
70
  
 
71
  <para id="dbus">
 
72
    This option controls whether the server will provide a D-Bus
 
73
    system bus interface.  The default is to provide such an
 
74
    interface.
 
75
  </para>
 
76
  
 
77
  <para id="ipv6">
 
78
    This option controls whether the server will use IPv6 sockets and
 
79
    addresses.  The default is to use IPv6.  This option should
 
80
    <emphasis>never</emphasis> normally be turned off, <emphasis>even in
 
81
    IPv4-only environments</emphasis>.  This is because <citerefentry>
 
82
    <refentrytitle>mandos-client</refentrytitle>
 
83
    <manvolnum>8mandos</manvolnum></citerefentry> will normally use
 
84
    IPv6 link-local addresses, and will not be able to find or connect
 
85
    to the server if this option is turned off.  <emphasis>Only
 
86
    advanced users should consider changing this option</emphasis>.
 
87
  </para>
 
88
  
69
89
</section>