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

  • Committer: Teddy Hogeborn
  • Date: 2019-08-02 22:16:53 UTC
  • mto: This revision was merged to the branch mainline in revision 386.
  • Revision ID: teddy@recompile.se-20190802221653-ic1iko9hbefzwsk7
Fix bug in server Debian package: Fails to start on first install

There has been a very long-standing bug where installation of the
server (the "mandos" Debian package) would fail to start the server
properly right after installation.  It would work on manual (re)start
after installation, or after reboot, and even after package purge and
reinstall, it would then work the first time.  The problem, it turns
out, is when the new "_mandos" user (and corresponding group) is
created, the D-Bus server is not reloaded, and is therefore not aware
of that user, and does not recognize the user and group name in the
/etc/dbus-1/system.d/mandos.conf file.  The Mandos server, when it
tries to start and access the D-Bus, is then not permitted to connect
to its D-Bus bus name, and disables D-Bus use as a fallback measure;
i.e. the server works, but it is not controllable via D-Bus commands
(via mandos-ctl or mandos-monitor).  The next time the D-Bus daemon is
reloaded for any reason, the new user & group would become visible to
the D-Bus daemon and after that, any restart of the Mandos server
would succeed and it would bind to its D-Bus name properly, and
thereby be visible and controllable by mandos-ctl & mandos-monitor.
This was mostly invisible when using sysvinit, but systemd makes the
problem visible since the systemd service file for the Mandos server
is configured to not consider the Mandos server "started" until the
D-Bus name has been bound; this makes the starting of the service wait
for 90 seconds and then fail with a timeout error.

Fixing this should also make the Debian CI autopkgtest tests work.

* debian/mandos.postinst (configure): After creating (or renaming)
                                      user & group, reload D-Bus
                                      daemon (if present).

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.8.5 (2019-07-30)
 
5
* Client
 
6
** Support dracut(8) as well as initramfs-tools(7).
 
7
** Minor bug fix: Allow the mandos-keygen --passfile option to use
 
8
   passfiles with names starting with "-".
 
9
** Document known limitation of mandos-keygen --password; it strips
 
10
   white space from start and end of the password.
 
11
* Server
 
12
** Bug fix: The server used to fail to restart if the "port" setting
 
13
   was used.  This has been fixed.
 
14
** Minor bug fix: Reap zombies left over from checker runs.  (Debian
 
15
   bug #933387)
 
16
 
 
17
Version 1.8.4 (2019-04-09)
 
18
* Client
 
19
** Fix minor memory leak in plugin-runner.
 
20
* Server
 
21
** mandos-ctl now has a --debug option to show D-Bus calls.
 
22
 
 
23
Version 1.8.3 (2019-02-11)
 
24
* No user-visible changes.
 
25
 
 
26
Version 1.8.2 (2019-02-10)
 
27
* Client
 
28
** In mandos-keygen, ignore failures to remove files in some cases.
 
29
 
 
30
Version 1.8.1 (2019-02-10)
 
31
* Client
 
32
** Only generate TLS keys using GnuTLS' certtool, of sufficient
 
33
   version.  Key generation of TLS keys will not happen until a
 
34
   version of GnuTLS is installed with support for raw public keys.
 
35
** Remove any bad keys created by 1.8.0 and openssl.
 
36
* Server
 
37
** On installation, edit clients.conf and remove the same bad key ID
 
38
   which was erroneously reported by all 1.8.0 clients.  Also do not
 
39
   trust this key ID in the server.
 
40
 
 
41
Version 1.8.0 (2019-02-10)
 
42
* Client
 
43
** Use new TLS keys for server communication and identification.
 
44
   With GnuTLS 3.6 or later, OpenPGP keys are no longer supported.
 
45
   The client can now use the new "raw public keys" (RFC 7250) API
 
46
   instead, using GnuTLS 3.6.6.  Please note: This *requires* new key
 
47
   IDs to be added to server's client.conf file.
 
48
** New --tls-privkey and --tls-pubkey options to load TLS key files.
 
49
   If GnuTLS is too old, these options do nothing.
 
50
* Server
 
51
** Supports either old or new GnuTLS.
 
52
   The server now supports using GnuTLS 3.6.6 and clients connecting
 
53
   with "raw public keys" as identification.  The server will read
 
54
   both fingerprints and key IDs from clients.conf file, and will use
 
55
   either one or the other, depending on what is supported by GnuTLS
 
56
   on the system.  Please note: both are *not* supported at once; if
 
57
   one type is supported by GnuTLS, all values of the other type from
 
58
   clients.conf are ignored.
 
59
 
 
60
Version 1.7.20 (2018-08-19)
 
61
* Client
 
62
** Fix: Adapt to the Debian cryptsetup package 2.0.3 or later.
 
63
   Important: in that version or later, the plugins "askpass-fifo",
 
64
   "password-prompt", and "plymouth" will no longer be run, since they
 
65
   would conflict with what cryptsetup is doing.  Other plugins, such
 
66
   as mandos-client and any user-supplied plugins, will still run.
 
67
** Better error message if failing to decrypt secret data
 
68
** Check for (and report) any key import failure from GPGME
 
69
** Better error message if self-signature verification fails
 
70
** Set system clock if not set; required by GnuPG for key import
 
71
** When debugging plugin-runner, it will now show starting plugins
 
72
 
 
73
Version 1.7.19 (2018-02-22)
 
74
* Client
 
75
** Do not print "unlink(...): No such file or directory".
 
76
** Bug fixes: Fix file descriptor leaks.
 
77
** Bug fix: Don't use leak sanitizer with leaking libraries.
 
78
 
 
79
Version 1.7.18 (2018-02-12)
 
80
* Client
 
81
** Bug fix: Revert faulty fix for a nonexistent bug in the
 
82
   plugin-runner
 
83
 
 
84
Version 1.7.17 (2018-02-10)
 
85
* Client
 
86
** Bug fix: Fix a memory leak in the plugin-runner
 
87
** Bug fix: Fix memory leaks in the plymouth plugin
 
88
 
4
89
Version 1.7.16 (2017-08-20)
5
90
* Client
6
91
** Bug fix: ignore "resumedev" entries in initramfs' cryptroot file