/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
..
.bzr-builddeb 185 15 years ago Teddy Hogeborn * .bzr-builddeb/default.conf: New. * Makefile (in Diff
debian 185 15 years ago Teddy Hogeborn * .bzr-builddeb/default.conf: New. * Makefile (in Diff
dracut-module 1127 4 years ago Teddy Hogeborn Add dracut(8) support Add support for the dracut( Diff
network-hooks.d 505.3.10 12 years ago Teddy Hogeborn * network-hooks.d: New directory. * network-hooks. Diff
plugin-helpers 738.1.1 8 years ago Teddy Hogeborn Add a plugin helper directory, available to all pl Diff
plugins.d 13 15 years ago Björn Påhlsson Added following support: Pluginbased client handle Diff
.bzrignore 1127 4 years ago Teddy Hogeborn Add dracut(8) support Add support for the dracut( 275 bytes Diff Download File
bugs.xml 821 8 years ago Teddy Hogeborn Add bug reporting information to manual pages * b 539 bytes Diff Download File
clients.conf 964 5 years ago Teddy Hogeborn Doc fix: Change some "/etc/mandos" to "/etc/keys/m 3.3 KB Diff Download File
common.ent 237.4.116 4 years ago Teddy Hogeborn * Makefile (version): Change to 1.8.5. * NEWS (Ver 93 bytes Diff Download File
COPYING 24.1.51 15 years ago Björn Påhlsson Added configuration files support for mandos-clien 34.2 KB Diff Download File
DBUS-API 969 5 years ago Teddy Hogeborn Update copyright year to 2019 * DBUS-API: Update 5.9 KB Diff Download File
dbus-mandos.conf 24.1.186 12 years ago Björn Påhlsson transitional stuff actually working documented cha 820 bytes Diff Download File
default-mandos 185 15 years ago Teddy Hogeborn * .bzr-builddeb/default.conf: New. * Makefile (in 174 bytes Diff Download File
init.d-mandos 927 6 years ago Teddy Hogeborn Remove unnecessary text left from old example init 4.2 KB Diff Download File
initramfs-tools-conf 954 5 years ago Teddy Hogeborn Move UMASK setting to more proper place * Makefil 695 bytes Diff Download File
initramfs-tools-conf-hook 1099 5 years ago Teddy Hogeborn Installation: Fix UMASK even if set by some other 647 bytes Diff Download File
File initramfs-tools-hook 954 5 years ago Teddy Hogeborn Move UMASK setting to more proper place * Makefil 7.6 KB Diff Download File
File initramfs-tools-script 953 5 years ago Teddy Hogeborn Adapt to changes in cryptsetup; use "cryptroot-unl 4.5 KB Diff Download File
File initramfs-tools-script-stop 956 5 years ago Teddy Hogeborn Set executable permissions on new files * initram 1.8 KB Diff Download File
File initramfs-unpack 1127 4 years ago Teddy Hogeborn Add dracut(8) support Add support for the dracut( 2.7 KB Diff Download File
INSTALL 1127 4 years ago Teddy Hogeborn Add dracut(8) support Add support for the dracut( 5.7 KB Diff Download File
intro.xml 1103 5 years ago Teddy Hogeborn Improve language in intro(8mandos) manual page * 16.4 KB Diff Download File
legalnotice.xml 907 6 years ago Teddy Hogeborn Alter copyright notices slightly. Actual license 1 KB Diff Download File
Makefile 1137 4 years ago Teddy Hogeborn Makefile: "pkg-config" is now overrideable by PKG_ 21.1 KB Diff Download File
File mandos 237.4.116 4 years ago Teddy Hogeborn * Makefile (version): Change to 1.8.5. * NEWS (Ver 142 KB Diff Download File
mandos-clients.conf.xml 969 5 years ago Teddy Hogeborn Update copyright year to 2019 * DBUS-API: Update 19.4 KB Diff Download File
File mandos-ctl 237.4.116 4 years ago Teddy Hogeborn * Makefile (version): Change to 1.8.5. * NEWS (Ver 95.9 KB Diff Download File
mandos-ctl.xml 1131 4 years ago Teddy Hogeborn Make tests and man page examples match Make the t 17.8 KB Diff Download File
File mandos-keygen 237.4.116 4 years ago Teddy Hogeborn * Makefile (version): Change to 1.8.5. * NEWS (Ver 12.6 KB Diff Download File
mandos-keygen.xml 1120 4 years ago Teddy Hogeborn Document bug in mandos-keygen which strips white s 16.8 KB Diff Download File
File mandos-monitor 237.4.116 4 years ago Teddy Hogeborn * Makefile (version): Change to 1.8.5. * NEWS (Ver 29.1 KB Diff Download File
mandos-monitor.xml 969 5 years ago Teddy Hogeborn Update copyright year to 2019 * DBUS-API: Update 6.3 KB Diff Download File
mandos-options.xml 1123 4 years ago Teddy Hogeborn Use hexadecimal unicode character references, not 5.1 KB Diff Download File
File mandos-to-cryptroot-unlock 1122 4 years ago Teddy Hogeborn Fix bashisms: Use "command -v" instead of "type" 2.5 KB Diff Download File
mandos.conf 777 8 years ago Teddy Hogeborn Bug fix for GnuTLS 3: be compatible with old 2048- 1.6 KB Diff Download File
mandos.conf.xml 1106 4 years ago Teddy Hogeborn Doc fix: Use new style interface names instead of 8.9 KB Diff Download File
mandos.lsm 237.4.116 4 years ago Teddy Hogeborn * Makefile (version): Change to 1.8.5. * NEWS (Ver 907 bytes Diff Download File
mandos.service 905 6 years ago Teddy Hogeborn Add some more restrictions to the systemd service 1.2 KB Diff Download File
mandos.xml 1121 4 years ago Teddy Hogeborn Change URL for Avahi to use HTTPS * INSTALL (Prer 24.1 KB Diff Download File
NEWS 237.4.116 4 years ago Teddy Hogeborn * Makefile (version): Change to 1.8.5. * NEWS (Ver 20.2 KB Diff Download File
overview.xml 962 5 years ago Teddy Hogeborn Add support for using raw public keys in TLS (RFC 923 bytes Diff Download File
plugin-runner.c 1109 4 years ago Teddy Hogeborn plugin-runner.c: Use a statement attribute only fo 34.9 KB Diff Download File
plugin-runner.conf 342 15 years ago Teddy Hogeborn * initramfs-tools-hook: Bug fix: Add "--userid" an 380 bytes Diff Download File
plugin-runner.xml 1124 4 years ago Teddy Hogeborn Allow line breaks on long lines in plugin-runner m 22.6 KB Diff Download File
README 844 8 years ago Teddy Hogeborn Use HTTPS in home page links Since we have a real 410 bytes Diff Download File
tmpfiles.d-mandos.conf 838 8 years ago Teddy Hogeborn Server: New tmpfiles.d file for persistent state d 38 bytes Diff Download File
TODO 237.4.113 5 years ago Teddy Hogeborn Merge from trunk 4.6 KB Diff Download File