/mandos/release

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

« back to all changes in this revision

Viewing changes to intro.xml

  • Committer: Teddy Hogeborn
  • Date: 2016-03-09 21:23:21 UTC
  • mto: (237.7.594 trunk)
  • mto: This revision was merged to the branch mainline in revision 339.
  • Revision ID: teddy@recompile.se-20160309212321-2qlkzj9tecepc8xq
Server: Add Python 3 compatibility

Add Python 3 compatibility by not using the python-avahi module.  Also
fix miscellaneous things which differs in Python 3.  Especially hard
to fix is loading and saving clients data between Python 3 and 2,
since pickle formats have problems with strings.

* INSTALL: Remove python-avahi (and change python-gobject to
  python-gi, which is preferred now).
* debian/control (Source: mandos/Build-Depends-Indep): Remove
  "python-avahi".
* mandos: Wrap future_builtins import in try-except clause.  Do not
  import avahi module.  Use codecs.decode(..., "base64) instead of
  .decode("base64).  Use .keys(), .values(), and .items() instead of
  .iterkeys(), .itervalues(), and .iteritems().
  (alternate_dbus_interfaces/wrapper): Python 3 still requires the
  "black magic", but luckily it still works.  The Python 3 type()
  constructor requires first argument to be a string, not a byte
  string.
  (copy_function): New.  Use throughout.
  (Avahi, avahi): New class and global variable.
  (GnuTLS._need_version): Changed to be a byte string.
  (main): Decode byte strings loaded from pickle file.
  (main/cleanup): Dump using pickle prototoc 2 which Python 2 can
  read.

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 "2019-02-10">
 
4
<!ENTITY TIMESTAMP "2016-03-05">
5
5
<!ENTITY % common SYSTEM "common.ent">
6
6
%common;
7
7
]>
36
36
      <year>2014</year>
37
37
      <year>2015</year>
38
38
      <year>2016</year>
39
 
      <year>2017</year>
40
 
      <year>2018</year>
41
 
      <year>2019</year>
42
39
      <holder>Teddy Hogeborn</holder>
43
40
      <holder>Björn Påhlsson</holder>
44
41
    </copyright>
68
65
      The computers run a small client program in the initial RAM disk
69
66
      environment which will communicate with a server over a network.
70
67
      All network communication is encrypted using TLS.  The clients
71
 
      are identified by the server using a TLS public key; each client
 
68
      are identified by the server using an OpenPGP key; each client
72
69
      has one unique to it.  The server sends the clients an encrypted
73
70
      password.  The encrypted password is decrypted by the clients
74
 
      using a separate OpenPGP key, and the password is then used to
 
71
      using the same OpenPGP key, and the password is then used to
75
72
      unlock the root file system, whereupon the computers can
76
73
      continue booting normally.
77
74
    </para>
80
77
  <refsect1 id="introduction">
81
78
    <title>INTRODUCTION</title>
82
79
    <para>
83
 
      <!-- This paragraph is a combination and paraphrase of two
84
 
           quotes from the 1995 movie “The Usual Suspects”. -->
85
80
      You know how it is.  You’ve heard of it happening.  The Man
86
81
      comes and takes away your servers, your friends’ servers, the
87
82
      servers of everybody in the same hosting facility. The servers
201
196
      <para>
202
197
        No.  The server only gives out the passwords to clients which
203
198
        have <emphasis>in the TLS handshake</emphasis> proven that
204
 
        they do indeed hold the private key corresponding to that
205
 
        client.
 
199
        they do indeed hold the OpenPGP private key corresponding to
 
200
        that client.
206
201
      </para>
207
202
    </refsect2>
208
203
    
422
417
    <variablelist>
423
418
      <varlistentry>
424
419
        <term>
425
 
          <ulink url="https://www.recompile.se/mandos">Mandos</ulink>
 
420
          <ulink url="http://www.recompile.se/mandos">Mandos</ulink>
426
421
        </term>
427
422
        <listitem>
428
423
          <para>