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

  • Committer: Teddy Hogeborn
  • Date: 2014-03-23 19:24:40 UTC
  • Revision ID: teddy@recompile.se-20140323192440-d71iiqxebsxf9u2v
Update GCC warning flags and function attributes to GCC 4.7.

* Makefile (WARN): Update to include almost all warning flags.
* plugin-runner.c (getplugin, add_to_char_array, add_argument,
                   add_environment, set_cloexec_flag,
                   print_out_password): Add attribute
                                        "warn_unused_result".
  (main/parse_opt): Bug fix: Add error checking to --global-env,
                    --env-for, --plugin-dir, and --config-file, and
                    make sure errno does not "leak" from unrelated
                    functions.
* plugins.d/mandos-client.c
  (fprintf_plus, debuggnutls, resolve_callback): Add "nonnull"
                                                 attribute.
  (incbuffer, add_server, init_gpgme): Add "nonnull" and
                                       "warn_unused_result"
                                       attributes.
  (pgp_packet_decrypt, init_gnutls_global): - '' -
  (init_gnutls_session start_mandos_communication, get_flags): - '' -
  (good_flags, good_interface, interface_is_up): - '' -
  (interface_is_running, runnable_hook): - '' -
  (avahi_loop_with_timeout, bring_up_interface): : - '' -
  (safer_gnutls_strerror): Add "warn_unused_result" attribute.
  (notdotentries): Set "nonnull", "pure", and "warn_unused_result"
                   attributes.
  (raise_privileges, raise_privileges_permanently, lower_privileges,
  lower_privileges_permanently): Set "warn_unused_result" attribute.
  (run_network_hooks): Exit child process if it fails to do anything
                       it needs to do.  Make explicit cast to double
                       when passing float value to asprintf().  Change
                       return type to void - all callers changed.
  (bring_up_interface): Move variables "sd", "ret_errno", and
                        "ret_setflags" to innermost scope.  Bug fix:
                        Fail if could not get interface flags also in
                        non-debug mode, and restore old errno
                        correctly.  Print message if could not raise
                        (or later lower) privileges.
  (take_down_interface): Bug fix: When failing because it could not
                         get interface flags, restore old errno
                         correctly.  Print message if it could not
                         raise (or later lower) privileges.
  (main): Complain if failed to raise or lower privileges.  Only run
          network hooks or lower privileges if raising privileges was
          successful.

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 TIMESTAMP "2016-11-27">
 
4
<!ENTITY TIMESTAMP "2012-01-01">
5
5
<!ENTITY % common SYSTEM "common.ent">
6
6
%common;
7
7
]>
32
32
    <copyright>
33
33
      <year>2011</year>
34
34
      <year>2012</year>
35
 
      <year>2013</year>
36
 
      <year>2014</year>
37
 
      <year>2015</year>
38
 
      <year>2016</year>
39
35
      <holder>Teddy Hogeborn</holder>
40
36
      <holder>Björn Påhlsson</holder>
41
37
    </copyright>
77
73
  <refsect1 id="introduction">
78
74
    <title>INTRODUCTION</title>
79
75
    <para>
80
 
      <!-- This paragraph is a combination and paraphrase of two
81
 
           quotes from the 1995 movie “The Usual Suspects”. -->
82
76
      You know how it is.  You’ve heard of it happening.  The Man
83
77
      comes and takes away your servers, your friends’ servers, the
84
78
      servers of everybody in the same hosting facility. The servers
203
197
      </para>
204
198
    </refsect2>
205
199
    
206
 
    <refsect2 id="sniff">
207
 
      <title>How about sniffing the network traffic and decrypting it
208
 
      later by physically grabbing the Mandos client and using its
209
 
      key?</title>
210
 
      <para>
211
 
        We only use <acronym>PFS</acronym> (Perfect Forward Security)
212
 
        key exchange algorithms in TLS, which protects against this.
213
 
      </para>
214
 
    </refsect2>
215
 
    
216
200
    <refsect2 id="physgrab">
217
201
      <title>Physically grabbing the Mandos server computer?</title>
218
202
      <para>
231
215
      </para>
232
216
    </refsect2>
233
217
    
234
 
    <refsect2 id="fakecheck">
235
 
      <title>Faking checker results?</title>
 
218
    <refsect2 id="fakeping">
 
219
      <title>Faking ping replies?</title>
236
220
      <para>
237
 
        If the Mandos client does not have an SSH server, the default
238
 
        is for the Mandos server to use
 
221
        The default for the server is to use
239
222
        <quote><literal>fping</literal></quote>, the replies to which
240
223
        could be faked to eliminate the timeout.  But this could
241
224
        easily be changed to any shell command, with any security
242
 
        measures you like.  If the Mandos client
243
 
        <emphasis>has</emphasis> an SSH server, the default
244
 
        configuration (as generated by
245
 
        <command>mandos-keygen</command> with the
246
 
        <option>--password</option> option) is for the Mandos server
247
 
        to use an <command>ssh-keyscan</command> command with strict
248
 
        keychecking, which can not be faked.  Alternatively, IPsec
249
 
        could be used for the ping packets, making them secure.
 
225
        measures you like.  It could, for instance, be changed to an
 
226
        SSH command with strict keychecking, which could not be faked.
 
227
        Or IPsec could be used for the ping packets, making them
 
228
        secure.
250
229
      </para>
251
230
    </refsect2>
252
231
  </refsect1>
381
360
    </para>
382
361
  </refsect1>
383
362
  
384
 
  <refsect1 id="bugs">
385
 
    <title>BUGS</title>
386
 
    <xi:include href="bugs.xml"/>
387
 
  </refsect1>
388
 
  
389
363
  <refsect1 id="see_also">
390
364
    <title>SEE ALSO</title>
391
365
    <para>
419
393
    <variablelist>
420
394
      <varlistentry>
421
395
        <term>
422
 
          <ulink url="https://www.recompile.se/mandos">Mandos</ulink>
 
396
          <ulink url="http://www.recompile.se/mandos">Mandos</ulink>
423
397
        </term>
424
398
        <listitem>
425
399
          <para>