/mandos/trunk

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

  • Committer: Teddy Hogeborn
  • Date: 2019-08-02 22:16:53 UTC
  • 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).
Filename Latest Rev Last Changed Committer Comment Size
..
po 199 16 years ago Teddy Hogeborn * Makefile: Bug fix: fix syntax error. * debian/c Diff
source 452.1.1 14 years ago Teddy Hogeborn * debian/source/format: New; contains "3.0 (quilt) Diff
tests 1116 5 years ago Teddy Hogeborn Debian package change: Add autopkgtest support * Diff
upstream 678 10 years ago Teddy Hogeborn Fix location and format of signing key file. * de Diff
changelog 237.4.116 5 years ago Teddy Hogeborn * Makefile (version): Change to 1.8.5. * NEWS (Ver 33.2 KB Diff Download File
compat 921 6 years ago Teddy Hogeborn Update Debian Debhelper compatibility version. * 3 bytes Diff Download File
control 1133 5 years ago Teddy Hogeborn Update Debian package standard-version to "4.4.0" 3 KB Diff Download File
copyright 969 5 years ago Teddy Hogeborn Update copyright year to 2019 * DBUS-API: Update 1 KB Diff Download File
mandos-client.dirs 1099 5 years ago Teddy Hogeborn Installation: Fix UMASK even if set by some other 229 bytes Diff Download File
mandos-client.docs 594 12 years ago Teddy Hogeborn * debian/copyright (Copyright): Join the two lines 17 bytes Diff Download File
mandos-client.examples 594 12 years ago Teddy Hogeborn * debian/copyright (Copyright): Join the two lines 16 bytes Diff Download File
mandos-client.links 191 16 years ago Teddy Hogeborn * debian/mandos-client.docs: New. Add README and 93 bytes Diff Download File
mandos-client.lintian-overrides 1124 5 years ago Teddy Hogeborn Allow line breaks on long lines in plugin-runner m 2 KB Diff Download File
mandos-client.postinst 1127 5 years ago Teddy Hogeborn Add dracut(8) support Add support for the dracut( 5.9 KB Diff Download File
mandos-client.postrm 962 5 years ago Teddy Hogeborn Add support for using raw public keys in TLS (RFC 1.3 KB Diff Download File
mandos-client.README.Debian 1127 5 years ago Teddy Hogeborn Add dracut(8) support Add support for the dracut( 4.9 KB Diff Download File
mandos-client.templates 1128 5 years ago Teddy Hogeborn Add debconf translation support * debian/mandos-c 812 bytes Diff Download File
mandos.dirs 841 8 years ago Teddy Hogeborn Server: Debian package bug fix: Include /usr/lib/t 143 bytes Diff Download File
mandos.docs 423 14 years ago Teddy Hogeborn Documentation changes: * DBUS-API: New file docum 26 bytes Diff Download File
mandos.lintian-overrides 1126 5 years ago Teddy Hogeborn Remove unused lintian override for Debian package 507 bytes Diff Download File
mandos.postinst 1138 5 years ago Teddy Hogeborn Fix bug in server Debian package: Fails to start o 3.6 KB Diff Download File
mandos.prerm 770 9 years ago Teddy Hogeborn * debian/mandos.prerm: Don't run init script, use 759 bytes Diff Download File
mandos.README.Debian 505.1.2 13 years ago Teddy Hogeborn Change "fukt.bsnet.se" to "recompile.se" throughou 445 bytes Diff Download File
mandos.templates 1128 5 years ago Teddy Hogeborn Add debconf translation support * debian/mandos-c 1.2 KB Diff Download File
File rules 1101 5 years ago Teddy Hogeborn Debian package: Fix backports package dependency a 2.1 KB Diff Download File
watch 976 5 years ago Teddy Hogeborn Fix Debian watch file * debian/watch: Make the ". 112 bytes Diff Download File