/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 debian/changelog

  • 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
 
mandos (1.7.6-1) unstable; urgency=medium
2
 
 
3
 
  * New upstream release.
4
 
  * debian/control (Source: mandos/Build-Depends-Indep): Remove
5
 
    "python-avahi".
6
 
    (Source: mandos/Build-Depends-Indep): Change "python-gi |
7
 
    python-gobject" to "python-gi"; i.e. remove "python-gobject".
8
 
 
9
 
 -- Teddy Hogeborn <teddy@recompile.se>  Sun, 13 Mar 2016 22:58:23 +0100
10
 
 
11
 
mandos (1.7.5-1) unstable; urgency=high
12
 
 
13
 
  * New upstream release.
14
 
  * debian/mandos.postinst (configure): If old version was 1.7.4-1 or
15
 
    1.7.4-1~bpo8+1, fix situation where clients.pickle file is owned by
16
 
    root.
17
 
 
18
 
 -- Teddy Hogeborn <teddy@recompile.se>  Tue, 08 Mar 2016 01:09:55 +0100
19
 
 
20
 
mandos (1.7.4-1) unstable; urgency=medium
21
 
 
22
 
  * New upstream release.
23
 
  * initramfs-tools-script: Fix "Call to configure_network in initramfs
24
 
    script broken due to set -e" by surrounding call by "set +x" and "set
25
 
    -e" (Closes: #816513)
26
 
  * debian/control: (Source: mandos/Build-Depends-Indep): Change
27
 
    "python-gobject | python-gi" to "python-gi | python-gobject"
28
 
    (Package: mandos/Depends): - '' -
29
 
 
30
 
 -- Teddy Hogeborn <teddy@recompile.se>  Sat, 05 Mar 2016 23:10:07 +0100
31
 
 
32
 
mandos (1.7.3-1) unstable; urgency=medium
33
 
 
34
 
  * New upstream release.
35
 
 
36
 
 -- Teddy Hogeborn <teddy@recompile.se>  Mon, 29 Feb 2016 22:26:38 +0100
37
 
 
38
 
mandos (1.7.2-1) unstable; urgency=medium
39
 
 
40
 
  * New upstream release.
41
 
  * Fix "Uses unneeded and obsolete version specific python packages"
42
 
    by removing version-specific dependencies (Closes: #811159)
43
 
  * debian/control (Source: mandos/Build-Depends): Add (>= 3.3.0) to
44
 
    "libgnutls28-dev" and "gnutls-dev".
45
 
    (Source: mandos/Build-Depends-Indep): Remove "python2.7-gnutls",
46
 
    "python2.7", "python2.7-dbus", "python2.7-avahi", and
47
 
    "python2.7-gobject"; replace with "python (>= 2.7), python (<< 3)",
48
 
    "python-dbus", "python-avahi", "python-gobject | python-gi".
49
 
    (Package: mandos/Depends): Remove "python-gnutls" and
50
 
    "python2.7-gnutls", add "libgnutls28-dev (>= 3.3.0) | libgnutls30 (>=
51
 
    3.3.0)".  Add "python (<< 3)".  Remove "python2.7-dbus",
52
 
    "python2.7-avahi", "python2.7-gobject", and "python2.7-urwid".
53
 
    Replace "python-gobject" with "python-gobject | python-gi" and "gnupg
54
 
    (<< 2)" with "gnupg".
55
 
    (Package: mandos-client/Depends): Replace
56
 
    "gnupg (<< 2)" with "gnupg".
57
 
    (Source: mandos/Standards-Version): Change to 3.9.7.
58
 
  * debian/copyright (Copyright): Update copyright year.
59
 
 
60
 
 -- Teddy Hogeborn <teddy@recompile.se>  Sun, 28 Feb 2016 16:09:01 +0100
61
 
 
62
 
mandos (1.7.1-2) unstable; urgency=medium
63
 
 
64
 
  * debian/control (Package: mandos/Depends): Fix "Please drop versioned
65
 
    dependency on initscripts package" by removing initscripts dependency
66
 
    (Closes: #804967)
67
 
  * debian/rules (override_dh_fixperms) Fix "FTBFS when built with
68
 
    dpkg-buildpackage -A (No such file or directory)" by splitting into
69
 
    "override_dh_fixperms-arch" and "override_dh_fixperms-indep".
70
 
    (Closes: #806073)
71
 
 
72
 
 -- Teddy Hogeborn <teddy@recompile.se>  Sat, 05 Dec 2015 02:27:40 +0100
73
 
 
74
 
mandos (1.7.1-1) unstable; urgency=medium
75
 
 
76
 
  * New upstream release.
77
 
 
78
 
 -- Teddy Hogeborn <teddy@recompile.se>  Sat, 24 Oct 2015 19:43:40 +0200
79
 
 
80
 
mandos (1.7.0-1) unstable; urgency=medium
81
 
 
82
 
  * New upstream release.
83
 
  * debian/control (Standards-Version): Updated to "3.9.6".
84
 
    (Build-Depends): Add "libnl-route-3-dev".
85
 
    (Package: mandos-client/Recommends): Added "gnutls-bin | openssl" for
86
 
    the generating of DH parameters.
87
 
  * debian/mandos-client.README.Debian: Update example command line to use
88
 
    new MANDOSPLUGINHELPERDIR environment variable.  Also document the new
89
 
    dhparams.pem file.
90
 
  * debian/mandos-client.postinst: Create DH parameters file.
91
 
  * debian/mandos.prerm: Don't run init script, use only invoke-rc.d.
92
 
  * debian/mandos-client.postinst: Don't use absolute paths to commands.
93
 
  * debian/mandos-client.postrm: Don't use absolute paths to commands.
94
 
    Also remove dhparams.pem file.
95
 
  * debian/copyright (Copyright): Update copyright year.
96
 
  * Upstream changed systemd service file to implicitly be of
97
 
    "Type=dbus". (Closes: #786845)
98
 
 
99
 
 -- Teddy Hogeborn <teddy@recompile.se>  Mon, 10 Aug 2015 22:00:29 +0200
100
 
 
101
1
mandos (1.6.9-1) unstable; urgency=medium
102
2
 
103
3
  * New upstream release.