/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 at recompile
  • Date: 2020-04-05 21:30:59 UTC
  • Revision ID: teddy@recompile.se-20200405213059-fb2a61ckqynrmatk
Fix file descriptor leak in mandos-client

When the local network has Mandos servers announcing themselves using
real, globally reachable, IPv6 addresses (i.e. not link-local
addresses), but there is no router on the local network providing IPv6
RA (Router Advertisement) packets, the client cannot reach the server
by normal means, since the client only has a link-local IPv6 address,
and has no usable route to reach the server's global IPv6 address.
(This is not a common situation, and usually only happens when the
router itself reboots and runs a Mandos client, since it cannot then
give RA packets to itself.)  The client code has a solution for
this, which consists of adding a temporary local route to reach the
address of the server during communication, and removing this
temporary route afterwards.

This solution with a temporary route works, but has a file descriptor
leak; it leaks one file descriptor for each addition and for each
removal of a route.  If one server requiring an added route is present
on the network, but no servers gives a password, making the client
retry after the default ten seconds, and we furthermore assume a
default 1024 open files limit, the client runs out of file descriptors
after about 90 minutes, after which time the client process will be
useless and fail to retrieve any passwords, necessitating manual
password entry via the keyboard.

Fix this by eliminating the file descriptor leak in the client.

* plugins.d/mandos-client.c (add_delete_local_route): Do
  close(devnull) also in parent process, also if fork() fails, and on
  any failure in child process.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
mandos (1.8.16-1) unstable; urgency=medium
2
 
 
3
 
  * New upstream release.
4
 
  * debian/rules (override_dh_fixperms-arch): Make sure dh_fixperms also
5
 
    is applied to the directory
6
 
    /usr/share/doc/mandos-client/examples/network-hooks.d (but still not
7
 
    to the files therein).
8
 
  * debian/po/pt_BR.po: Add Brazilian Portuguese translation of the
9
 
    debconf template (Closes: #1026400).
10
 
  * debian/po/fr.po: Add missing whitespace to the id and translation
11
 
    for msgid " key_id = <HEXSTRING>".
12
 
  * debian/control (Standards-Version): Change to "4.6.2".
13
 
 
14
 
 -- Teddy Hogeborn <teddy@recompile.se>  Wed, 08 Feb 2023 00:58:24 +0100
15
 
 
16
 
mandos (1.8.15-1) unstable; urgency=medium
17
 
 
18
 
  * New upstream release.
19
 
  * debian/po/fr.po: Add missing whitespace to the id and translation
20
 
    for msgid " ${key_id}".
21
 
  * debian/mandos-client.lintian-overrides: Remove all empty commented
22
 
    lines.  Rename "setuid-binary" tag to "elevated-privileges".
23
 
  * debian/control (Standards-Version): Change to "4.6.0".
24
 
  * debian/copyright: Update copyright year to 2022.
25
 
  * debian/po/es.po: Add Spanish translation of the debconf template
26
 
    (Closes: #987595).
27
 
 
28
 
 -- Teddy Hogeborn <teddy@recompile.se>  Mon, 25 Apr 2022 20:43:27 +0200
29
 
 
30
 
mandos (1.8.14-1) unstable; urgency=medium
31
 
 
32
 
  * New upstream release.  Includes workaround for #981302
33
 
  * debian/po/fr.po: Fix msgid to match template.
34
 
 
35
 
 -- Teddy Hogeborn <teddy@recompile.se>  Wed, 03 Feb 2021 09:53:29 +0100
36
 
 
37
 
mandos (1.8.13-1) unstable; urgency=medium
38
 
 
39
 
  * New upstream release.
40
 
  * Fix "password-agent autopkgtest does not seem to be reliable"
41
 
    by making the test more reliable (Closes: #975457)
42
 
  * debian/mandos-client.templates: Rename "_description" header to
43
 
    "_Description".
44
 
  * debian/control (Standards-Version): Change to "4.5.1".
45
 
 
46
 
 -- Teddy Hogeborn <teddy@recompile.se>  Mon, 30 Nov 2020 19:15:43 +0100
47
 
 
48
 
mandos (1.8.12-1) unstable; urgency=medium
49
 
 
50
 
  * New upstream release.
51
 
  * Fix "FTBFS with glibc 2.31 (uses removed stime function)" by using
52
 
    clock_settime() instead. (Closes: #964226)
53
 
  * debian/copyright: Update copyright year to 2020.
54
 
 
55
 
 -- Teddy Hogeborn <teddy@recompile.se>  Sat, 04 Jul 2020 14:58:26 +0200
56
 
 
57
 
mandos (1.8.11-1) unstable; urgency=medium
58
 
 
59
 
  * New upstream release.
60
 
 
61
 
 -- Teddy Hogeborn <teddy@recompile.se>  Wed, 08 Apr 2020 20:37:32 +0200
62
 
 
63
1
mandos (1.8.10-1) unstable; urgency=medium
64
2
 
65
3
  * Fix "[INTL:pt] Updated Portuguese translation - debconf messages"