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

  • 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
1
This NEWS file records noteworthy changes, very tersely.
2
2
See the manual for detailed information.
3
3
 
 
4
Version 1.8.10 (2020-03-21)
 
5
* Server
 
6
** Fix bug when setting a client's D-Bus "Secret" property
 
7
** Start client checkers after a random delay
 
8
** When using systemd, allow easier modification of server options
 
9
** Better log messages in mandos-monitor
 
10
* Client
 
11
** When using dracut & systemd, allow easier modification of options
 
12
 
 
13
Version 1.8.9 (2019-09-03)
 
14
* No user-visible changes
 
15
 
 
16
Version 1.8.8 (2019-08-18)
 
17
* No user-visible changes
 
18
 
 
19
Version 1.8.7 (2019-08-05)
 
20
* Client:
 
21
** Always compile with LFS (Large File Support) enabled.
 
22
* Server
 
23
** Improve intro(8mandos) manual page to cover dracut(8) support.
 
24
 
 
25
Version 1.8.6 (2019-08-03)
 
26
* Client:
 
27
** dracut support: In password-agent, properly ignore deleted and
 
28
   renamed question files, and also fix memory alignment issue.
 
29
 
 
30
Version 1.8.5 (2019-07-30)
 
31
* Client
 
32
** Support dracut(8) as well as initramfs-tools(7).
 
33
** Minor bug fix: Allow the mandos-keygen --passfile option to use
 
34
   passfiles with names starting with "-".
 
35
** Document known limitation of mandos-keygen --password; it strips
 
36
   white space from start and end of the password.
 
37
* Server
 
38
** Bug fix: The server used to fail to restart if the "port" setting
 
39
   was used.  This has been fixed.
 
40
** Minor bug fix: Reap zombies left over from checker runs.  (Debian
 
41
   bug #933387)
 
42
 
 
43
Version 1.8.4 (2019-04-09)
 
44
* Client
 
45
** Fix minor memory leak in plugin-runner.
 
46
* Server
 
47
** mandos-ctl now has a --debug option to show D-Bus calls.
 
48
 
 
49
Version 1.8.3 (2019-02-11)
 
50
* No user-visible changes.
 
51
 
 
52
Version 1.8.2 (2019-02-10)
 
53
* Client
 
54
** In mandos-keygen, ignore failures to remove files in some cases.
 
55
 
 
56
Version 1.8.1 (2019-02-10)
 
57
* Client
 
58
** Only generate TLS keys using GnuTLS' certtool, of sufficient
 
59
   version.  Key generation of TLS keys will not happen until a
 
60
   version of GnuTLS is installed with support for raw public keys.
 
61
** Remove any bad keys created by 1.8.0 and openssl.
 
62
* Server
 
63
** On installation, edit clients.conf and remove the same bad key ID
 
64
   which was erroneously reported by all 1.8.0 clients.  Also do not
 
65
   trust this key ID in the server.
 
66
 
4
67
Version 1.8.0 (2019-02-10)
5
68
* Client
6
69
** Use new TLS keys for server communication and identification.