/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 NEWS

  • Committer: Teddy Hogeborn
  • Date: 2015-05-23 20:18:34 UTC
  • mto: This revision was merged to the branch mainline in revision 756.
  • Revision ID: teddy@recompile.se-20150523201834-e89ex4ito93yni8x
mandos: Use multiprocessing module to run checkers.

For a long time, the Mandos server has occasionally logged the message
"ERROR: Child process vanished".  This was never a fatal error, but it
has been annoying and slightly worrying, since a definite cause was
not found.  One potential cause could be the "multiprocessing" and
"subprocess" modules conflicting w.r.t. SIGCHLD.  To avoid this,
change the running of checkers from using subprocess.Popen
asynchronously to instead first create a multiprocessing.Process()
(which is asynchronous) calling a function, and have that function
then call subprocess.call() (which is synchronous).  In this way, the
only thing using any asynchronous subprocesses is the multiprocessing
module.

This makes it necessary to change one small thing in the D-Bus API,
since the subprocesses.call() function does not expose the raw wait(2)
status value.

DBUS-API (CheckerCompleted): Change the second value provided by this
                             D-Bus signal from the raw wait(2) status
                             to the actual terminating signal number.
mandos (subprocess_call_pipe): New function to be called by
                               multiprocessing.Process (starting a
                               separate process).
(Client.last_checker signal): New attribute for signal which
                              terminated last checker.  Like
                              last_checker_status, only not accessible
                              via D-Bus.
(Client.checker_callback): Take new "connection" argument and use it
                           to get returncode; set last_checker_signal.
                           Return False so gobject does not call this
                           callback again.
(Client.start_checker): Start checker using a multiprocessing.Process
                        instead of a subprocess.Popen.
(ClientDBus.checker_callback): Take new "connection" argument.        Call
                               Client.checker_callback early to have
                               it set last_checker_status and
                               last_checker_signal; use those.  Change
                               second value provided to D-Bus signal
                               CheckerCompleted to use
                               last_checker_signal if checker was
                               terminated by signal.
mandos-monitor: Update to reflect DBus API change.
(MandosClientWidget.checker_completed): Take "signal" instead of
                                        "condition" argument.  Use it
                                        accordingly.  Remove dead code
                                        (os.WCOREDUMP case).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
This NEWS file records noteworthy changes, very tersely.
2
2
See the manual for detailed information.
3
3
 
4
 
Version 1.7.5 (2016-03-08)
5
 
* Server
6
 
** Fix security restrictions in systemd service file.
7
 
** Work around bug where stopping server would time out
8
 
 
9
 
Version 1.7.4 (2016-03-05)
10
 
* Client
11
 
** Bug fix: Tolerate errors from configure_networking (Debian Bug
12
 
   #816513)
13
 
** Compilation: Only use sanitizing options which work with the
14
 
   compiler used when building.  This should fix compilation with GCC
15
 
   4.9 on mips, mipsel, and s390x.
16
 
* Server
17
 
** Add extra security restrictions in systemd service file.
18
 
 
19
 
Version 1.7.3 (2016-02-29)
20
 
* Client
21
 
** Bug fix: Remove new type of keyring directory user by GnuPG 2.1.
22
 
** Bug fix: Remove "nonnull" attribute from a function argument, which
23
 
   would otherwise generate a spurious runtime warning.
24
 
 
25
 
Version 1.7.2 (2016-02-28)
26
 
* Server
27
 
** Stop using python-gnutls library; it was not updated to GnuTLS 3.3.
28
 
** Bug fix: Only send D-Bus signal ClientRemoved if using D-Bus.
29
 
** Use GnuPG 2 if available.
30
 
* Client
31
 
** Compile with various sanitizing flags.
32
 
 
33
 
Version 1.7.1 (2015-10-24)
34
 
* Client
35
 
** Bug fix: Can now really find Mandos server even if the server has
36
 
   an IPv6 address on a network other than the one which the Mandos
37
 
   server is on.
38
 
 
39
 
Version 1.7.0 (2015-08-10)
40
 
* Server
41
 
** Bug fix: Handle local Zeroconf service name collisions better.
42
 
** Bug fix: Finally fix "ERROR: Child process vanished" bug.
43
 
** Bug fix: Fix systemd service file to start server correctly.
44
 
** Bug fix: Be compatible with old 2048-bit DSA keys.
45
 
** The D-Bus API now provides the standard D-Bus ObjectManager
46
 
   interface, and deprecates older functionality.  See the DBUS-API
47
 
   file for the currently recommended API.  Note: the original API
48
 
   still works, but is deprecated.
49
 
* Client
50
 
** Can now find Mandos server even if the server has an IPv6 address
51
 
   on a network without IPv6 Router Advertisment (like if the Mandos
52
 
   client itself is the router, or there is an IPv6 router advertising
53
 
   a network other than the one which the Mandos server is on.)
54
 
** Use a better value than 1024 for the default number of DH bits.
55
 
   This better value is either provided by a DH parameters file (see
56
 
   below) or an appropriate number of DH bits is determined based on
57
 
   the PGP key.
58
 
** Bug fix: mandos-keygen now generates correct output for the
59
 
   "Checker" variable even if the SSH server on the Mandos client has
60
 
   multiple SSH key types.
61
 
** Can now use pre-generated Diffie-Hellman parameters from a file.
62
 
 
63
4
Version 1.6.9 (2014-10-05)
64
5
* Server
65
6
** Changed to emit standard D-Bus signal when D-Bus properties change.