-
Notifications
You must be signed in to change notification settings - Fork 0
/
ChangeLog
142 lines (95 loc) · 6.59 KB
/
ChangeLog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
2015-03-06 Pierre Schweitzer <pierre@reactos.org>
* configure.ac: Display files paths at the end of configure
2015-03-05 Pierre Schweitzer <pierre@reactos.org>
* configure.ac: Simplify file
* ForbidHosts.cpp: Make use of user provided paths for files
* configure.ac: Allow to define auth.log and hosts.deny path by env var
* configure.ac: Simplify file
* ForbidHosts.cpp: Move deny file path to a constant string
2015-03-04 Pierre Schweitzer <pierre@reactos.org>
* ForbidHosts.cpp: Use default assignement for FirstSeen
* ForbidHosts.cpp: Prevent race condition in the signal handler
* ForbidHosts.cpp: Also make constants static
* ForbidHosts.cpp: Remove unused constants
* ForbidHosts.cpp: Make const char pointers const
* ForbidHosts.cpp: Make constants notation consistent
2015-02-21 Pierre Schweitzer <pierre@reactos.org>
* ForbidHosts.cpp: Fix a cppcheck warning
2015-02-20 Pierre Schweitzer <pierre@reactos.org>
* ForbidHosts.cpp: C++ify code
* ForbidHosts.cpp: Already add a newly found host if its attempts beat max attempts
* ForbidHosts.cpp: Increase the penalty taking into account the number of attempts
* ForbidHosts.cpp: Take into account repeated lines that directly state the repeated message
2015-02-16 Pierre Schweitzer <pierre@reactos.org>
* configure.ac: Add a sum up of the build configuration at the end of configure script
2015-02-05 Pierre Schweitzer <pierre@reactos.org>
* ForbidHosts.cpp: On invalid line read, don't bail out, just read the next line if available.
* ForbidHosts.cpp: On repeated line without previous known address, don't bail out, just read the next line if available.
2015-01-17 Pierre Schweitzer <pierre@reactos.org>
* ForbidHosts.cpp: Add a wait loop when attempting to reopen auth.log after log rotation.
* ForbidHosts.cpp: Don't use deprecated function usleep().
2015-01-20 Pierre Schweitzer <pierre@reactos.org>
* ForbidHosts.cpp: Don't use LOG_ERR for syslog, it is set to be ignored
* ForbidHosts.cpp: We'd rather wait when we're not using inotify
2015-01-04 Pierre Schweitzer <pierre@reactos.org>
* ForbidHosts.cpp: Add version number in backtrace on exception
* ForbidHosts.cpp: Add an exception handler for the abnormal termination that could occur if anything goes wrong in the daemon.
It will attempt to mail if mailing is enabled.
If not possible, it will fallback to syslog
* configure.ac: Complete the configure.ac template
2014-12-10 Pierre Schweitzer <pierre@reactos.org>
* ForbidHosts.cpp: partly revert ccca64eee3c457ce91db2327df04d8e92a6824ee
* ForbidHosts.cpp: revert 45b834fbddcbf55e7e6bf874929e56ee36d6e122
* ForbidHosts.cpp: revert e4c6ec9de00c3fbf07ed3058410ed35b7f17b470
2014-12-05 Pierre Schweitzer <pierre@reactos.org>
* ForbidHosts.cpp: Always zero inotify_event len field to prevent attempts to read random len of data from inotify.
2014-12-03 Pierre Schweitzer <pierre@reactos.org>
* ForbidHosts.cpp: Fix the reinit of the inotify watch for the log file. We only watch modifications.
2014-11-30 Pierre Schweitzer <pierre@reactos.org>
* ForbidHosts.cpp: Rewrite handling of auth.log rotation. We'll now watch the parent directory and wait for the create event for auth.log.
* ForbidHosts.cpp: Properly quit in case we cannot watch again the auth.log
2014-11-24 Pierre Schweitzer <pierre@reactos.org>
* ForbidHosts.cpp: Addendum to 1289eab: also reset iNotify watch when auth.log is rotated. Otherwise we keep watching the wrong file (on a closed FD!).
* ForbidHosts.cpp: Properly delete iNotify watch on close.
2014-11-19 Pierre Schweitzer <pierre@reactos.org>
* ForbidHosts.cpp: Fix handling of IPv6 when adding to hosts.deny. This fixes incorrect syntax in the file.
* ForbidHosts.cpp: Handle name resolution failure: display unknown instead of empty/garbish string.
2014-10-07 Pierre Schweitzer <pierre@reactos.org>
* ForbidHosts.cpp: When using inotify, handle auth.log deletion/moving. This is to keep ForbidHosts functionnal even after a log rotate.
* ForbidHosts.cpp: Read complete inotify event when available
2014-09-30 Pierre Schweitzer <pierre@reactos.org>
* Makefile.am: Enable a few more warnings
* ForbidHosts.cpp: Fix the new warnings
* ForbidHosts.cpp: Simplify code for IP lookup
* ForbidHosts.cpp: Fix last cppcheck warnings
* Makefile.am: Build with debug symbols by default
2014-09-09 Pierre Schweitzer <pierre@reactos.org>
* ForbidHosts.cpp: Don't prune host entry while it is being written to hosts.deny. This fixes the bug when a host was added several times to the file.
Now hosts will be pruned later on, on their expiry time, which will be extended to prevent the host is prunned before it was properly and completely handled.
This allows changing the way hosts are handled when added to hosts.deny that will give a small boost in performances.
2014-09-05 Pierre Schweitzer <pierre@reactos.org>
* configure.ac: Complete the configure script
* ForbidHosts.cpp: Get the hostname of the machine to include it in mails header.
* ForbidHosts.cpp: Fix a bug with name resolutions for IPv4 where it was improperly handled.
2014-09-04 Pierre Schweitzer <pierre@reactos.org>
* Allow the daemon to be packaged for Ubuntu (precise, so far)
* Makefile.am: Make the daemon a sbin executable
2014-08-27 Pierre Schweitzer <pierre@reactos.org>
* Renamed project to ForbidHosts
2014-08-26 Pierre Schweitzer <pierre@reactos.org>
* ForbidHostsv6.cpp: Fix performance issue with HostIPv6 initialization
* ForbidHostsv6.cpp: Reduce a variable scope
* ForbidHostsv6.cpp: Add optional support for IPv4 adresses.
To enable it, use --enable-ipv4 during configure phase.
* ForbidHostsv6.cpp: Also implement support for zombies. This will prevent daemon from leaking child processes.
* ForbidHostsv6.cpp: Rewrite signals management to more up to date API.
* ForbidHostsv6.cpp: Add missing header
2012-05-13 Pierre Schweitzer <pierre@reactos.org>
* ForbidHostsv6.cpp: Fix a bug with syslog output
* ForbidHostsv6.cpp: Add new functions and associated macros to have asserts that write their result to syslog.
Those assert can be either soft or hard, if hard the deamon quits.
* ForbidHostsv6.cpp: Use them instead of ignoring the return of some functions.
* ForbidHostsv6.cpp: Fix a bug in connections attempts count
* ForbidHostsv6.cpp: Fix a bug in line parsing
* ForbidHostsv6.cpp: Add support for the line repetitions in auth log
* ForbidHostsv6.cpp: Add support for reading more than one line at a time