Merge ~bryce/ubuntu/+source/logwatch:logwatch-merge-v7.5.4-1-hirsute into ubuntu/+source/logwatch:debian/sid

Proposed by Bryce Harrington
Status: Merged
Approved by: Bryce Harrington
Approved revision: 81524f106bc51d386934b66fcbc0511ff624e877
Merge reported by: Bryce Harrington
Merged at revision: 81524f106bc51d386934b66fcbc0511ff624e877
Proposed branch: ~bryce/ubuntu/+source/logwatch:logwatch-merge-v7.5.4-1-hirsute
Merge into: ubuntu/+source/logwatch:debian/sid
Diff against target: 1086 lines (+868/-2)
13 files modified
debian/changelog (+371/-0)
debian/control (+4/-2)
debian/patches/0011-postfix-Ignore-Resolved-loghost-to-127.0.0.1.patch (+42/-0)
debian/patches/0012-postfix-Handle-backwards-compatible-mode.patch (+74/-0)
debian/patches/0013-secure-Ignore-warnings-about-gnome-keyring-daemon-it.patch (+32/-0)
debian/patches/0014-zz-sys-Suppress-warnings-if-Sys-CPU-or-Sys-MemInfo-a.patch (+52/-0)
debian/patches/0015-pam_unix-Ignore-issues-about-etc-securetty-being-mis.patch (+51/-0)
debian/patches/0017-audit-Apparmor-DENIED-entries-don-t-always-include-p.patch (+28/-0)
debian/patches/0018-audit-Treat-Denial-Errors-same-as-Denied.patch (+28/-0)
debian/patches/0019-exim-Handle-self-signed-certs-warnings.patch (+73/-0)
debian/patches/0020-dhcpd-Ignore-lease-age-under-threshold-messages.patch (+32/-0)
debian/patches/0021-audit-use-the-term-ALLOWED-instead-of-Grants.patch (+69/-0)
debian/patches/series (+12/-0)
Reviewer Review Type Date Requested Status
Bryce Harrington (community) Approve
Christian Ehrhardt  (community) Needs Fixing
Canonical Server Pending
Review via email: mp+393413@code.launchpad.net

Description of the change

Usual tags pushed.

Pretty straightforward merge from Debian. We had gone ahead of Debian, this just gets us back on top of their tree.

Since we did a lot of work on this package last cycle, the git ubuntu change history resulted in a messy changelog entry, so most of the work with this merge was just cleaning the git history.

Pretty much all the patches in our Ubuntu delta are already accepted upstream, but not yet available in a release - when 7.5.5 comes we should be able to drop almost all of it. There will still be a couple patches which weren't clear if they are upstreamable, however I think we can leave those to the next merge.

PPA is at:

    https://launchpad.net/~bryce/+archive/ubuntu/logwatch-merge-v7.5.4-1

To post a comment you must log in.
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

I was suspicious at all the linked bugs here on the MP, but the CL LGTM with non-active bug references. Otherwise we'd ping all those bugs again which we do not want.

Ok, things look good from far away - checking out git to read things in detail.

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

None of the Debian changes has influence on the Delta we had and as you pointed out we need 7.5.5 to be able to drop most of them.

Due to all the going ahead tags like bryce/logical/7.5.4-0ubuntu3 were not too helpful this time.
But I was able to break things apart and agree that all old delta was retained (which is what we wanted).

The old Debian base was actually 7.5.0-1 which is quite a while back.
All Delta we ahve is mentioned ack) but we miss a drop IMHO
7.5.4-0ubuntu2 added:
   * d/control: Update upstream's homepage
     (LP: #1891604)
That was done in 7.5.4-1
   * d/control: Update Homepage field (closes: #956666)
So we would need to mention that we dropped that Delta right?

Otherwise things LGTM, once you fixed that feel free to upload no need to re-review for this little change to d/changelog

review: Needs Fixing
Revision history for this message
Bryce Harrington (bryce) wrote :

Thanks, I've made the change and will proceed with the upload.

Revision history for this message
Bryce Harrington (bryce) wrote :

Uploaded:

$ git ubuntu tag --upload
$ git push pkg upload/7.5.4-1ubuntu1
Enumerating objects: 86, done.
Counting objects: 100% (86/86), done.
Delta compression using up to 12 threads
Compressing objects: 100% (80/80), done.
Writing objects: 100% (80/80), 20.67 KiB | 5.17 MiB/s, done.
Total 80 (delta 52), reused 7 (delta 0), pack-reused 0
To ssh://git.launchpad.net/ubuntu/+source/logwatch
 * [new tag] upload/7.5.4-1ubuntu1 -> upload/7.5.4-1ubuntu1

$ dput ubuntu logwatch_7.5.4-1ubuntu1_source.changes
Checking signature on .changes
gpg: /home/bryce/pkg/Logwatch/merge-v7.5.4-1/logwatch_7.5.4-1ubuntu1_source.changes: Valid signature from E603B2578FB8F0FB
Checking signature on .dsc
gpg: /home/bryce/pkg/Logwatch/merge-v7.5.4-1/logwatch_7.5.4-1ubuntu1.dsc: Valid signature from E603B2578FB8F0FB
Uploading to ubuntu (via ftp to upload.ubuntu.com):
  Uploading logwatch_7.5.4-1ubuntu1.dsc: done.
  Uploading logwatch_7.5.4-1ubuntu1.debian.tar.xz: done.
  Uploading logwatch_7.5.4-1ubuntu1_source.buildinfo: done.
  Uploading logwatch_7.5.4-1ubuntu1_source.changes: done.
Successfully uploaded packages.

review: Approve
Revision history for this message
Bryce Harrington (bryce) wrote :

This is migrated

 logwatch | 7.5.4-1ubuntu1 | hirsute | source

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/changelog b/debian/changelog
2index a70c0f5..39b0fd9 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,42 @@
6+logwatch (7.5.4-1ubuntu1) hirsute; urgency=medium
7+
8+ * Merge with Debian unstable. Remaining changes:
9+ - Drop libsys-cpu-perl and libsys-meminfo-perl from Recommends to
10+ Suggests as they are in universe.
11+ - d/p/0011-postfix-Ignore-Resolved-loghost-to-127.0.0.1.patch:
12+ postfix: Ignore Resolved loghost to 127.0.0.1.
13+ (LP #1583705)
14+ - d/p/0012-postfix-Handle-backwards-compatible-mode.patch:
15+ postfix: Handle backwards-compatible mode.
16+ (LP #1583705)
17+ - d/p/0013-secure-Ignore-warnings-about-gnome-keyring-daemon-it.patch:
18+ secure: Ignore warnings about gnome-keyring-daemon items already
19+ registered.
20+ (LP #1890752)
21+ - d/p/0014-zz-sys-Suppress-warnings-if-Sys-CPU-or-Sys-MemInfo-a.patch:
22+ zz-sys: Suppress warnings if Sys::CPU or Sys::MemInfo are missing.
23+ These are not installed by default in Ubuntu's logwatch packaging.
24+ (LP #1890749)
25+ - d/p/0015-pam_unix-Ignore-issues-about-etc-securetty-being-mis.patch:
26+ pam_unix: Ignore issues about /etc/securetty being missing.
27+ (LP #1890751)
28+ - d/p/0017-audit-Apparmor-DENIED-entries-don-t-always-include-p.patch
29+ audit: Don't handle "unconfined" profile changes distinct from ordinary loads
30+ - d/p/0018-audit-Handle-apparmor-errors-on-DENIED-messages.patch:
31+ audit: Treat Denial Errors same as Denied
32+ (LP #1577948)
33+ - d/p/0019-exim-Handle-self-signed-certs-warnings.patch:
34+ exim: Handle self-signed certs warnings.
35+ (LP #1892269)
36+ - d/p/0020-dhcpd-Ignore-lease-age-under-threshold-messages.patch:
37+ dhcpd: Ignore lease age under threshold messages
38+ (LP #1578001)
39+ - d/p/0021-audit-use-the-term-ALLOWED-instead-of-Grants.patch:
40+ audit: use the term ALLOWED instead of Grants
41+ (LP #1577948)
42+
43+ -- Bryce Harrington <bryce@canonical.com> Thu, 05 Nov 2020 04:28:07 +0000
44+
45 logwatch (7.5.4-1) unstable; urgency=medium
46
47 * New upstream version 7.5.4 (closes: #970684)
48@@ -7,6 +46,91 @@ logwatch (7.5.4-1) unstable; urgency=medium
49
50 -- Willi Mann <willi@debian.org> Sun, 04 Oct 2020 20:40:40 +0200
51
52+logwatch (7.5.4-0ubuntu3) groovy; urgency=medium
53+
54+ * d/p/0014-zz-sys-Suppress-warnings-if-Sys-CPU-or-Sys-MemInfo-a.patch:
55+ Update DEP3 to indicate this patch does not need forwarded upstream
56+ since it corrects a distro packaging issue.
57+ * d/p/0018-audit-Treat-Denial-Errors-same-as-Denied.patch:
58+ Update DEP3 to link to where this patch was forwarded upstream.
59+ * d/p/0021-audit-use-the-term-ALLOWED-instead-of-Grants.patch:
60+ Fix typo in variable '$allawed'; refresh patch.
61+
62+ -- Bryce Harrington <bryce@canonical.com> Fri, 04 Sep 2020 16:08:47 -0700
63+
64+logwatch (7.5.4-0ubuntu2) groovy; urgency=medium
65+
66+ [ Bryce Harrington ]
67+ * d/p/0020-dhcpd-Ignore-lease-age-under-threshold-messages.patch:
68+ dhcpd: Ignore lease age under threshold messages
69+ (LP: #1578001)
70+ * d/p/0019-exim-Handle-self-signed-certs-warnings.patch:
71+ exim: Handle self-signed certs warnings.
72+ (LP: #1892269)
73+ * d/p/0018-audit-Treat-Denial-Errors-same-as-Denied.patch:
74+ audit: Treat Denial-Errors same as Denied.
75+ (LP: #1577948)
76+ * d/p/0017-audit-Apparmor-DENIED-entries-don-t-always-include-p.patch:
77+ audit: Apparmor DENIED entries don't always include parent=N.
78+ (LP: #1577948)
79+ * d/p/0015-pam_unix-Ignore-issues-about-etc-securetty-being-mis.patch:
80+ pam_unix: Ignore issues about /etc/securetty being missing.
81+ (LP: #1890751)
82+ * d/p/0014-zz-sys-Suppress-warnings-if-Sys-CPU-or-Sys-MemInfo-a.patch:
83+ zz-sys: Suppress warnings if Sys::CPU or Sys::MemInfo are missing.
84+ These are not installed by default in Ubuntu's logwatch packaging.
85+ (LP: #1890749)
86+ * d/p/0013-secure-Ignore-warnings-about-gnome-keyring-daemon-it.patch:
87+ secure: Ignore warnings about gnome-keyring-daemon items already
88+ registered.
89+ (LP: #1890752)
90+ * d/p/0012-postfix-Handle-backwards-compatible-mode.patch:
91+ postfix: Handle backwards-compatible mode.
92+ (LP: #1583705)
93+ * d/p/0011-postfix-Ignore-Resolved-loghost-to-127.0.0.1.patch:
94+ postfix: Ignore Resolved loghost to 127.0.0.1.
95+ (LP: #1583705)
96+ * d/control: Update upstream's homepage
97+ (LP: #1891604)
98+
99+ [ Lucas Kanashiro ]
100+ * d/p/0021-audit-use-the-term-ALLOWED-instead-of-Grants.patch:
101+ audit: use the term ALLOWED instead of Grants.
102+
103+ -- Bryce Harrington <bryce@canonical.com> Fri, 21 Aug 2020 01:30:10 +0000
104+
105+logwatch (7.5.4-0ubuntu1) groovy; urgency=medium
106+
107+ * New upstream version 7.5.4. Remaining changes:
108+ - Drop libsys-cpu-perl and libsys-meminfo-perl from Recommends to
109+ Suggests as they are in universe.
110+ * Dropped:
111+ - Drop 0005-Match-connection-shutdown-by-couriertls.patch
112+ [Taken upstream in 7.5.4]
113+ - Drop 0006-imapd-Handle-SSL3-connection-errors.patch
114+ [Taken upstream in 7.5.4]
115+
116+ -- Bryce Harrington <bryce@canonical.com> Mon, 03 Aug 2020 18:27:31 -0700
117+
118+logwatch (7.5.2-1ubuntu2) groovy; urgency=medium
119+
120+ * 0006-imapd-Handle-SSL3-connection-errors.patch: Handle SSL3
121+ connection errors for couriertls in imapd.
122+ * 0005-Match-connection-shutdown-by-couriertls.patch: Match connection
123+ shutdown entries by couriertls. These are likely just client errors
124+ and do not represent real problems.
125+ (LP: #1578004)
126+
127+ -- Bryce Harrington <bryce@canonical.com> Fri, 05 Jun 2020 23:16:23 +0000
128+
129+logwatch (7.5.2-1ubuntu1) focal; urgency=medium
130+
131+ * Merge with Debian unstable. Remaining changes:
132+ - Drop libsys-cpu-perl and libsys-meminfo-perl from Recommends to
133+ Suggests as they are in universe.
134+
135+ -- Bryce Harrington <bryce@canonical.com> Thu, 23 Jan 2020 11:53:10 -0800
136+
137 logwatch (7.5.2-1) unstable; urgency=medium
138
139 * New upstream version 7.5.2
140@@ -15,12 +139,40 @@ logwatch (7.5.2-1) unstable; urgency=medium
141
142 -- Willi Mann <willi@debian.org> Sun, 12 Jan 2020 12:25:08 +0100
143
144+logwatch (7.5.0-2ubuntu1) eoan; urgency=medium
145+
146+ * Merge with Debian unstable. Remaining changes:
147+ - Drop libsys-cpu-perl and libsys-meminfo-perl from Recommends to
148+ Suggests as they are in universe.
149+ * Dropped:
150+ - debian/control: depend on postfix rather than exim4.
151+ [default-mta is provided by postfix as of precise at least]
152+ - debian/dist.conf/logfiles/maillog.conf: adjust for logrotation.
153+ [While the file is no longer present, it'll just be silently
154+ ignored if it's listed in the config file, so no need to maintain
155+ a delta against debian for this.]
156+
157+ -- Bryce Harrington <bryce@canonical.com> Thu, 23 May 2019 10:40:17 -0700
158+
159 logwatch (7.5.0-2) unstable; urgency=high
160
161 * s/s/kernel: fix typo. closes: 917836
162
163 -- Willi Mann <willi@debian.org> Sat, 09 Mar 2019 18:14:03 +0100
164
165+logwatch (7.5.0-1ubuntu1) disco; urgency=medium
166+
167+ * Merge with Debian unstable (LP: #1810928). Remaining changes:
168+ - debian/control: depend on postfix rather than exim4.
169+ - debian/dist.conf/logfiles/maillog.conf: adjust for logrotation
170+ - Drop libsys-cpu-perl and libsys-meminfo-perl from Recommends to
171+ Suggests as they are in universe.
172+ * Dropped Changes:
173+ - d/p/ssh-ignore-disconnected.patch: [sshd] ignore disconnected from user
174+ [upstream]
175+
176+ -- Karl Stenerud <kstenerud@gmail.com> Wed, 09 Jan 2019 10:55:11 +0100
177+
178 logwatch (7.5.0-1) unstable; urgency=medium
179
180 * New upstream version
181@@ -59,6 +211,23 @@ logwatch (7.4.3+git20180713-1) unstable; urgency=medium
182
183 -- Willi Mann <willi@debian.org> Tue, 02 Oct 2018 19:52:16 +0200
184
185+logwatch (7.4.3+git20161207-2ubuntu2) cosmic; urgency=medium
186+
187+ * d/p/ssh-ignore-disconnected.patch: [sshd] ignore disconnected from user
188+ USER (LP: 1644057)
189+
190+ -- Karl Stenerud <karl.stenerud@canonical.com> Fri, 31 Aug 2018 09:44:50 -0700
191+
192+logwatch (7.4.3+git20161207-2ubuntu1) zesty; urgency=medium
193+
194+ * Merge from Debian testing. Remaining changes:
195+ - debian/control: depend on postfix rather than exim4.
196+ - debian/dist.conf/logfiles/maillog.conf: adjust for logrotation
197+ - Drop libsys-cpu-perl and libsys-meminfo-perl from Recommends to
198+ Suggests as they are in universe.
199+
200+ -- Christian Ehrhardt <christian.ehrhardt@canonical.com> Thu, 16 Feb 2017 09:08:52 +0100
201+
202 logwatch (7.4.3+git20161207-2) unstable; urgency=medium
203
204 * Revert upstream's change of the declared mail charset.
205@@ -78,6 +247,16 @@ logwatch (7.4.3+git20161207-1) unstable; urgency=medium
206
207 -- Willi Mann <willi@debian.org> Fri, 16 Dec 2016 20:15:26 +0100
208
209+logwatch (7.4.3-2ubuntu1) zesty; urgency=medium
210+
211+ * Merge from Debian unstable. Remaining changes:
212+ - debian/control: depend on postfix rather than exim4.
213+ - debian/dist.conf/logfiles/maillog.conf: adjust for logrotation
214+ - Drop libsys-cpu-perl and libsys-meminfo-perl from Recommends to
215+ Suggests as they are in universe.
216+
217+ -- Christian Ehrhardt <christian.ehrhardt@canonical.com> Thu, 01 Dec 2016 16:46:22 +0100
218+
219 logwatch (7.4.3-2) unstable; urgency=medium
220
221 * s/s/amavis: Fix perl warning "redundant argument in sprintf".
222@@ -86,6 +265,16 @@ logwatch (7.4.3-2) unstable; urgency=medium
223
224 -- Willi Mann <willi@debian.org> Wed, 02 Nov 2016 19:32:35 +0100
225
226+logwatch (7.4.3-1ubuntu1) yakkety; urgency=medium
227+
228+ * Merge from Debian unstable. Remaining changes:
229+ - debian/control: depend on postfix rather than exim4.
230+ - debian/dist.conf/logfiles/maillog.conf: adjust for logrotation
231+ - Drop libsys-cpu-perl and libsys-meminfo-perl from Recommends to
232+ Suggests as they are in universe.
233+
234+ -- Christian Ehrhardt <christian.ehrhardt@canonical.com> Tue, 26 Jul 2016 12:56:34 +0200
235+
236 logwatch (7.4.3-1) unstable; urgency=medium
237
238 * Imported Upstream version 7.4.3
239@@ -93,6 +282,16 @@ logwatch (7.4.3-1) unstable; urgency=medium
240
241 -- Willi Mann <willi@debian.org> Sat, 30 Apr 2016 14:40:57 +0200
242
243+logwatch (7.4.2-1ubuntu1) xenial; urgency=medium
244+
245+ * Merge from Debian unstable (LP: #1552983). Remaining changes:
246+ - debian/control: depend on postfix rather than exim4.
247+ - debian/dist.conf/logfiles/maillog.conf: adjust for logrotation
248+ - Drop libsys-cpu-perl and libsys-meminfo-perl from Recommends to
249+ Suggests as they are in universe.
250+
251+ -- Nishanth Aravamudan <nish.aravamudan@canonical.com> Fri, 04 Mar 2016 11:42:51 -0800
252+
253 logwatch (7.4.2-1) unstable; urgency=medium
254
255 * Imported Upstream version 7.4.2
256@@ -108,6 +307,18 @@ logwatch (7.4.1+svn20160106rev308-1) unstable; urgency=medium
257
258 -- Willi Mann <willi@debian.org> Sun, 24 Jan 2016 19:17:34 +0100
259
260+logwatch (7.4.1+svn20151218rev302-1ubuntu1) xenial; urgency=medium
261+
262+ * Merge from Debian unstable (LP: #1531262). Remaining changes:
263+ - debian/control: depend on postfix rather than exim4.
264+ - debian/dist.conf/logfiles/maillog.conf: adjust for logrotation
265+ - Drop libsys-cpu-perl from Recommends to Suggests as it is in
266+ universe.
267+ * Drop libsys-meminfo-perl from Recommends to Suggests as it is in
268+ universe.
269+
270+ -- Nishanth Aravamudan <nish.aravamudan@canonical.com> Thu, 07 Jan 2016 20:53:20 -0800
271+
272 logwatch (7.4.1+svn20151218rev302-1) unstable; urgency=medium
273
274 * Imported Upstream version 7.4.1+svn20151218rev302
275@@ -135,6 +346,21 @@ logwatch (7.4.1+svn20150731rev294-1) unstable; urgency=medium
276
277 -- Willi Mann <willi@debian.org> Wed, 02 Sep 2015 18:50:14 +0200
278
279+logwatch (7.4.1-2ubuntu2) vivid; urgency=medium
280+
281+ * Drop libsys-cpu-perl from Recommends to Suggests as it is in
282+ universe.
283+
284+ -- Robie Basak <robie.basak@ubuntu.com> Fri, 06 Feb 2015 14:29:06 +0000
285+
286+logwatch (7.4.1-2ubuntu1) vivid; urgency=medium
287+
288+ * Merge from Debian unstable (LP: #1387817). Remaining changes:
289+ - debian/control: depend on postfix rather than exim4.
290+ - debian/dist.conf/logfiles/maillog.conf: adjust for logrotation
291+
292+ -- Robie Basak <robie.basak@ubuntu.com> Mon, 02 Feb 2015 04:03:21 +0000
293+
294 logwatch (7.4.1-2) unstable; urgency=medium
295
296 * Revert upstream change on fail2ban service config. This makes fail2ban
297@@ -195,6 +421,15 @@ logwatch (7.4.0+svn20131108rev175-1) unstable; urgency=low
298
299 -- Willi Mann <willi@debian.org> Thu, 28 Nov 2013 20:10:09 +0100
300
301+logwatch (7.4.0+svn20130529rev144-1ubuntu1) saucy; urgency=low
302+
303+ * Merge from Debian unstable. Remaining changes:
304+ + debian/control:
305+ - Depend on postfix rather than exim4.
306+ + debian/dist.conf/logfiles/maillog.conf: adjust for logrotation
307+
308+ -- Robie Basak <robie.basak@ubuntu.com> Tue, 09 Jul 2013 15:06:43 +0000
309+
310 logwatch (7.4.0+svn20130529rev144-1) unstable; urgency=low
311
312 * Imported Upstream version 7.4.0+svn20130529rev144
313@@ -207,6 +442,20 @@ logwatch (7.4.0+svn20130529rev144-1) unstable; urgency=low
314
315 -- Willi Mann <willi@debian.org> Sat, 01 Jun 2013 14:03:28 +0200
316
317+logwatch (7.4.0+svn20120502rev103-1ubuntu1) raring; urgency=low
318+
319+ * Merge from Debian testing (LP: #1102414). Remaining changes:
320+ + debian/control:
321+ - Depend on postfix rather than exim4.
322+ + debian/dist.conf/logfiles/maillog.conf: adjust for logrotation
323+
324+ * Dropped changes, merged in Debian:
325+ + debian/dist.conf/services/cron.conf: this change already disappeared
326+ previously, looks related to Debian bug 615006 which is already applied
327+ and thus presumed no longer needed.
328+
329+ -- Robie Basak <robie.basak@canonical.com> Mon, 21 Jan 2013 13:53:24 +0000
330+
331 logwatch (7.4.0+svn20120502rev103-1) unstable; urgency=low
332
333 * Set VDate in logwatch.pl to svn date for svn snapshots
334@@ -230,6 +479,17 @@ logwatch (7.4.0+svn20120227rev85-1) unstable; urgency=low
335
336 -- Willi Mann <willi@wm1.at> Fri, 06 Apr 2012 21:11:23 +0200
337
338+logwatch (7.4.0+svn20111221rev79-1ubuntu1) precise; urgency=low
339+
340+ [ Chuck Short ]
341+ * Merge from Debian testing. Remaining changes:
342+ + debian/conrol:
343+ - Depend on postfix rather than exim4.
344+ + debian/dist.conf/services_cron.conf,
345+ debian/dist.conf/logfiles_maillog.conf: Adjust for logrotation
346+
347+ -- Chuck Short <zulcss@ubuntu.com> Mon, 06 Feb 2012 08:59:12 -0500
348+
349 logwatch (7.4.0+svn20111221rev79-1) unstable; urgency=low
350
351 * Imported Upstream version 7.4.0+svn20111221rev79
352@@ -259,6 +519,19 @@ logwatch (7.4.0+svn20111018rev68-1) unstable; urgency=low
353
354 -- Willi Mann <willi@wm1.at> Sat, 05 Nov 2011 20:44:36 +0100
355
356+logwatch (7.4.0+svn20110808rev66-1ubuntu1) precise; urgency=low
357+
358+ * Merged from Debian testing, remaining changes are:
359+ + debian/conrol:
360+ - Depend on postfix rather than exim4.
361+ + debian/dist.conf/services_cron.conf, debian/dist.conf/logfiles_maillog.conf,
362+ debian/dist.conf/logfiles_messages.conf: Adjust for logrotation.
363+ + Dropped:
364+ - debian/patches/lp-809753-comify: No longer needed.
365+ - debian/rules: Dont use quilt anymore logwatch uses source 3.0
366+
367+ -- Chuck Short <zulcss@ubuntu.com> Mon, 14 Nov 2011 09:39:15 -0500
368+
369 logwatch (7.4.0+svn20110808rev66-1) unstable; urgency=low
370
371 * New Upstream snapshot 7.4.0+svn20110808rev66 (closes: #644053)
372@@ -288,6 +561,57 @@ logwatch (7.3.6.cvs20090906-2) unstable; urgency=high
373
374 -- Willi Mann <willi@wm1.at> Wed, 02 Mar 2011 08:57:07 +0100
375
376+logwatch (7.3.6.cvs20090906-1ubuntu5) oneiric; urgency=low
377+
378+ * debian/patches/lp-809753-commify:
379+ - return undef is not defined, instead of error (LP: #809753)
380+ * debian/control:
381+ - build depend on quilt
382+ * debian/rules:
383+ - add dh_quilt_patch and dh_quilt_unpatch
384+
385+ -- Ante Karamatic <ivoks@ubuntu.com> Wed, 17 Aug 2011 19:28:17 +0200
386+
387+logwatch (7.3.6.cvs20090906-1ubuntu4) natty; urgency=low
388+
389+ * SECURITY UPDATE: privileged code execution via badly named logfiles
390+ - scripts/logwatch.pl: encapsulate logfiles in 's and ensure logfile
391+ names don't contain '.
392+ - http://logwatch.svn.sourceforge.net/viewvc/logwatch?view=revision&revision=26
393+ - CVE-2011-1018
394+ * debian/dist.conf/services/cron.conf: adjust to capture cron entries,
395+ thanks to Oliver Brakmann (LP: #719898)
396+ * scripts/services/named: update to upstream version to correctly
397+ capture more information (LP: #584229)
398+ - http://logwatch.svn.sourceforge.net/viewvc/logwatch/scripts/services/named?revision=19
399+ * logwatch.8: replace examples containing obsolete --print argument
400+ with --output=stdout (LP: #564796)
401+
402+ -- Steve Beattie <sbeattie@ubuntu.com> Wed, 02 Mar 2011 13:44:53 +0100
403+
404+logwatch (7.3.6.cvs20090906-1ubuntu3) maverick; urgency=low
405+
406+ * conf/logfiles/*, debian/dist.conf/logfiles/*:
407+ Due to migration to rsyslog, the first rotation is now .1 and not .0
408+ (fixes LP: #606715)
409+
410+ -- Thierry Carrez (ttx) <thierry.carrez@ubuntu.com> Mon, 06 Sep 2010 14:57:14 +0200
411+
412+logwatch (7.3.6.cvs20090906-1ubuntu2) lucid; urgency=low
413+
414+ * conf/html/{footer.html,header.html} Re-add dropped from the
415+ previous version of logtwatch. (LP: #481327)
416+
417+ -- Chuck Short <zulcss@ubuntu.com> Tue, 17 Nov 2009 14:57:58 -0500
418+
419+logwatch (7.3.6.cvs20090906-1ubuntu1) karmic; urgency=low
420+
421+ * Merge from debian unstable (LP: #228917, #391077, #425206, #443252),
422+ remaining changes:
423+ - Use postfix rather than exim4.
424+
425+ -- Kees Cook <kees@ubuntu.com> Mon, 05 Oct 2009 09:20:31 -0700
426+
427 logwatch (7.3.6.cvs20090906-1) unstable; urgency=low
428
429 * New CVS snapshot + postfix-logwatch 1.38.01
430@@ -311,6 +635,16 @@ logwatch (7.3.6.cvs20090906-1) unstable; urgency=low
431
432 -- Willi Mann <willi@wm1.at> Mon, 07 Sep 2009 17:04:43 +0200
433
434+logwatch (7.3.6.cvs20080702-2ubuntu1) jaunty; urgency=low
435+
436+ [ Bhavani Shankar ]
437+ * Merge from debian unstable, remaining changes: LP: #314620
438+ - Use postfix rather than exim4.
439+ - Fix logwatch.pl for servers that have the same hostname as a config
440+ variable (ie: medium). Thanks for Nathan Crawford. (LP: #296349)
441+
442+ -- Mathias Gug <mathiaz@ubuntu.com> Wed, 07 Jan 2009 19:23:58 -0500
443+
444 logwatch (7.3.6.cvs20080702-2) unstable; urgency=low
445
446 * add Michael Tautschnig to changelog of former version, crediting
447@@ -326,6 +660,33 @@ logwatch (7.3.6.cvs20080702-2) unstable; urgency=low
448
449 -- Willi Mann <willi@wm1.at> Sun, 07 Dec 2008 08:20:06 +0100
450
451+logwatch (7.3.6.cvs20080702-1ubuntu4) jaunty; urgency=low
452+
453+ * Fix typo. (LP: #296349)
454+
455+ -- Chuck Short <zulcss@ubuntu.com> Wed, 03 Dec 2008 15:22:33 +0000
456+
457+logwatch (7.3.6.cvs20080702-1ubuntu3) jaunty; urgency=low
458+
459+ * Fix logwatch.pl for servers that have the same hostname as a config
460+ variable (ie: medium). Thanks for Nathan Crawford. (LP: #296349)
461+
462+ -- Chuck Short <zulcss@ubuntu.com> Mon, 10 Nov 2008 16:46:59 +0000
463+
464+logwatch (7.3.6.cvs20080702-1ubuntu2) intrepid; urgency=low
465+
466+ * Corrected FTBFS from the merge by correcting arch from any to all
467+
468+ -- Michael Casadevall <sonicmctails@gmail.com> Fri, 05 Sep 2008 19:20:30 -0400
469+
470+logwatch (7.3.6.cvs20080702-1ubuntu1) intrepid; urgency=low
471+
472+ * Merge from debian unstable, remaining changes:
473+ - Use postfix rather than exim4.
474+ - Update maintainers according to spec.
475+
476+ -- Chuck Short <zulcss@ubuntu.com> Sat, 05 Jul 2008 11:49:54 +0100
477+
478 logwatch (7.3.6.cvs20080702-1) unstable; urgency=medium
479
480 * New upstream CVS snapshot
481@@ -345,6 +706,15 @@ logwatch (7.3.6.cvs20080702-1) unstable; urgency=medium
482
483 -- Willi Mann <willi@wm1.at> Fri, 04 Jul 2008 16:51:36 +0200
484
485+logwatch (7.3.6-1ubuntu1) hardy; urgency=low
486+
487+ * Added patch from Paul Schulz to fix 'pam_unix unknown entries'
488+ for authlog. (LP: #181690)
489+ * Bumped starndards version to 3.7.3
490+ * Use postfix rather than exim4.
491+
492+ -- Chuck Short <zulcss@ubuntu.com> Thu, 21 Feb 2008 08:35:13 -0500
493+
494 logwatch (7.3.6-1) unstable; urgency=low
495
496 * New upstream version:
497@@ -770,3 +1140,4 @@ logwatch (5.0-1) unstable; urgency=low
498 to the logfile(s). That's most likely the problem.
499
500 -- Willi Mann <willi@wm1.at> Wed, 12 Nov 2003 20:14:15 +0100
501+
502diff --git a/debian/control b/debian/control
503index 764bd58..e39f936 100644
504--- a/debian/control
505+++ b/debian/control
506@@ -1,7 +1,8 @@
507 Source: logwatch
508 Section: admin
509 Priority: optional
510-Maintainer: Willi Mann <willi@debian.org>
511+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
512+XSBC-Original-Maintainer: Willi Mann <willi@debian.org>
513 Build-Depends: debhelper (>> 11.0.0~)
514 Standards-Version: 4.5.0
515 Homepage: https://sourceforge.net/projects/logwatch/
516@@ -11,7 +12,8 @@ Vcs-Git: https://salsa.debian.org/debian/logwatch.git
517 Package: logwatch
518 Architecture: all
519 Depends: ${perl:Depends}, ${misc:Depends}, default-mta | mail-transport-agent
520-Recommends: libdate-manip-perl, libsys-cpu-perl, libsys-meminfo-perl
521+Recommends: libdate-manip-perl
522+Suggests: libsys-cpu-perl, libsys-meminfo-perl
523 Description: log analyser with nice output written in Perl
524 Logwatch is a modular log analyser that runs every night
525 and mails you the results. It can also be run from command line.
526diff --git a/debian/patches/0011-postfix-Ignore-Resolved-loghost-to-127.0.0.1.patch b/debian/patches/0011-postfix-Ignore-Resolved-loghost-to-127.0.0.1.patch
527new file mode 100644
528index 0000000..3060a0b
529--- /dev/null
530+++ b/debian/patches/0011-postfix-Ignore-Resolved-loghost-to-127.0.0.1.patch
531@@ -0,0 +1,42 @@
532+From 6373191438fb8f4699aaeb8c53aaf7abcd4d8999 Mon Sep 17 00:00:00 2001
533+From: Bryce Harrington <bryce@canonical.com>
534+Date: Wed, 19 Aug 2020 03:29:42 +0000
535+Subject: [PATCH 01/10] postfix: Ignore Resolved loghost to 127.0.0.1
536+
537+Ref: https://bugs.launchpad.net/ubuntu/+source/logwatch/+bug/1583705
538+Signed-off-by: Bryce Harrington <bryce@canonical.com>
539+---
540+ scripts/services/postfix | 5 +++--
541+ 1 file changed, 3 insertions(+), 2 deletions(-)
542+
543+Origin: vendor
544+Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/logwatch/+bug/1583705
545+Forwarded: https://sourceforge.net/p/logwatch/git/merge-requests/46/
546+Last-Updated: 2020-08-20
547+
548+diff --git a/scripts/services/postfix b/scripts/services/postfix
549+index b5cb2ec..6550e3d 100644
550+--- a/scripts/services/postfix
551++++ b/scripts/services/postfix
552+@@ -2286,7 +2286,7 @@ sub postfix_postgrey($) {
553+ #TDpg unrecognized request type: ''
554+ #TDpg rm /var/spool/postfix/postgrey/log.0000000002
555+ #TDpg 2007/01/25-14:48:00 Pid_file already exists for running process (4775)... aborting at line 232 in file /usr/lib/perl5/vendor_perl/5.8.7/Net/Server.pm
556+-
557++ #TDpg Resolved [localhost]:10023 to [127.0.0.1]:10023, IPv4
558+
559+ $line =~ /^cleaning / or
560+ $line =~ /^delayed / or
561+@@ -2301,7 +2301,8 @@ sub postfix_postgrey($) {
562+ # unanchored last
563+ $line =~ /Pid_file already exists/ or
564+ $line =~ /postgrey .* starting!/ or
565+- $line =~ /Server closing!/
566++ $line =~ /Server closing!/ or
567++ $line =~ /Resolved .*localhost.*IPv4/
568+ );
569+
570+ my ($action,$reason,$delay,$host,$ip,$sender,$recip);
571+--
572+2.27.0
573+
574diff --git a/debian/patches/0012-postfix-Handle-backwards-compatible-mode.patch b/debian/patches/0012-postfix-Handle-backwards-compatible-mode.patch
575new file mode 100644
576index 0000000..f4261e3
577--- /dev/null
578+++ b/debian/patches/0012-postfix-Handle-backwards-compatible-mode.patch
579@@ -0,0 +1,74 @@
580+From 44848e3237ddbdc593a938b543f897117049bb36 Mon Sep 17 00:00:00 2001
581+From: Bryce Harrington <bryce@canonical.com>
582+Date: Wed, 19 Aug 2020 04:01:24 +0000
583+Subject: [PATCH 02/10] postfix: Handle backwards-compatible mode
584+
585+Fixes: https://bugs.launchpad.net/ubuntu/+source/logwatch/+bug/1583705
586+Signed-off-by: Bryce Harrington <bryce@canonical.com>
587+---
588+ scripts/services/postfix | 23 +++++++++++++++++++++++
589+ 1 file changed, 23 insertions(+)
590+
591+Origin: vendor
592+Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/logwatch/+bug/1583705
593+Forwarded: https://sourceforge.net/p/logwatch/git/merge-requests/46/
594+Last-Updated: 2020-08-20
595+
596+diff --git a/scripts/services/postfix b/scripts/services/postfix
597+index 6550e3d..253401c 100644
598+--- a/scripts/services/postfix
599++++ b/scripts/services/postfix
600+@@ -2609,6 +2609,7 @@ sub postfix_fatal;
601+ sub postfix_error;
602+ sub postfix_warning;
603+ sub postfix_script;
604++sub backwards_compatible;
605+ sub postfix_postsuper;
606+ sub process_delivery_attempt;
607+ sub cleanhostreply;
608+@@ -2815,6 +2816,9 @@ sys 0m3.005s
609+ if ($p1 =~ /^panic: +(.*)$/) { postfix_panic($1); next; }
610+ if ($p1 =~ /^error: +(.*)$/) { postfix_error($1); next; }
611+
612++ # Backwards compatibility mode
613++ if ($p1 =~ /compati/i) { backwards_compatible($p1); next; } # backwards-compatible default settings
614++
615+ # output by all services that use table lookups - process before specific messages
616+ if ($p1 =~ /(?:lookup )?table (?:[^ ]+ )?has changed -- (?:restarting|exiting)$/) {
617+ #TD table hash:/var/mailman/data/virtual-mailman(0,lock|fold_fix) has changed -- restarting
618+@@ -4806,6 +4810,22 @@ sub postfix_script($) {
619+ }
620+ }
621+
622++# Handles postfix backwards compatibility mode lines
623++#
624++sub backwards_compatible($) {
625++ my $line = shift;
626++
627++ if ($line =~ /^Postfix is running with backwards-compatible default settings/o) {
628++ $Totals{'backwardscompatible'}++;
629++ }
630++ elsif ($line =~ /^See http.*COMPATIBILITY_README.html for details/o) {
631++ $Totals{'backwardscompatible'}++;
632++ }
633++ elsif ($line =~ /^To disable backwards compatibility use.*/o) {
634++ $Totals{'backwardscompatible'}++;
635++ }
636++}
637++
638+ # Clean up a server's reply, to give some uniformity to reports
639+ #
640+ sub cleanhostreply($ $ $ $) {
641+@@ -5213,6 +5233,9 @@ sub build_sect_table() {
642+ add_section ($S, 'postfixwaiting', 0, 'd', 'Postfix waiting to terminate');
643+ end_section_group ($S, 'postfixstate');
644+
645++ begin_section_group ($S, 'backwardscompatible', "\n");
646++ add_section ($S, 'backwardscompatible', 1, 'd', 'Running in backwards compatibile mode');
647++ end_section_group ($S, 'backwardscompatible');
648+
649+ if ($Opts{'debug'} & Logreporters::D_SECT) {
650+ print "\tSection table\n";
651+--
652+2.27.0
653+
654diff --git a/debian/patches/0013-secure-Ignore-warnings-about-gnome-keyring-daemon-it.patch b/debian/patches/0013-secure-Ignore-warnings-about-gnome-keyring-daemon-it.patch
655new file mode 100644
656index 0000000..49c5639
657--- /dev/null
658+++ b/debian/patches/0013-secure-Ignore-warnings-about-gnome-keyring-daemon-it.patch
659@@ -0,0 +1,32 @@
660+From f07ae467270712186b66ab7b670f0740c3b3bc0f Mon Sep 17 00:00:00 2001
661+From: Bryce Harrington <bryce@canonical.com>
662+Date: Wed, 19 Aug 2020 04:19:41 +0000
663+Subject: [PATCH 03/10] secure: Ignore warnings about gnome-keyring-daemon
664+ items already registered
665+
666+Fixes: https://bugs.launchpad.net/ubuntu/+source/logwatch/+bug/1890752
667+Signed-off-by: Bryce Harrington <bryce@canonical.com>
668+---
669+ scripts/services/secure | 1 +
670+ 1 file changed, 1 insertion(+)
671+
672+Origin: vendor
673+Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/logwatch/+bug/1890752
674+Forwarded: https://sourceforge.net/p/logwatch/git/merge-requests/46/
675+Last-Updated: 2020-08-20
676+
677+diff --git a/scripts/services/secure b/scripts/services/secure
678+index 769356a..25feace 100644
679+--- a/scripts/services/secure
680++++ b/scripts/services/secure
681+@@ -156,6 +156,7 @@ while (defined($ThisLine = <STDIN>)) {
682+ ( $ThisLine =~ /sshguard\[\d+\]: (?:message repeated \d+ times: \[ )?\S+: not blocking /) or
683+ ( $ThisLine =~ /sshguard\[\d+\]: Received EOF from stdin/) or
684+ ( $ThisLine =~ /sshguard\[\d+\]: .*has already been blocked/) or
685++ ( $ThisLine =~ /gnome-keyring-daemon\[\d+\]: asked to register item.*already registered/) or
686+ 0 # This line prevents blame shifting as lines are added above
687+ ) {
688+ # Ignore these entries
689+--
690+2.27.0
691+
692diff --git a/debian/patches/0014-zz-sys-Suppress-warnings-if-Sys-CPU-or-Sys-MemInfo-a.patch b/debian/patches/0014-zz-sys-Suppress-warnings-if-Sys-CPU-or-Sys-MemInfo-a.patch
693new file mode 100644
694index 0000000..9154652
695--- /dev/null
696+++ b/debian/patches/0014-zz-sys-Suppress-warnings-if-Sys-CPU-or-Sys-MemInfo-a.patch
697@@ -0,0 +1,52 @@
698+From 488a232634c1d383f4ec356d776b4ee292e48b0a Mon Sep 17 00:00:00 2001
699+From: Bryce Harrington <bryce@canonical.com>
700+Date: Wed, 19 Aug 2020 04:39:22 +0000
701+Subject: [PATCH 04/10] zz-sys: Suppress warnings if Sys::CPU or Sys::MemInfo
702+ are missing
703+
704+Neither of these perl modules are installed by default with a logwatch
705+installation, by intention, so the missing module warnings are
706+inappropriate. These modules only provide a minor amount of detail when
707+installed, and their information is volatile which can trigger false
708+test failures in some cases.
709+
710+Fixes: https://bugs.launchpad.net/ubuntu/+source/logwatch/+bug/1890749
711+Signed-off-by: Bryce Harrington <bryce@canonical.com>
712+---
713+ scripts/services/zz-sys | 8 ++++----
714+ 1 file changed, 4 insertions(+), 4 deletions(-)
715+
716+Origin: vendor
717+Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/logwatch/+bug/1890749
718+Forwarded: not-needed
719+Last-Updated: 2020-08-20
720+
721+diff --git a/scripts/services/zz-sys b/scripts/services/zz-sys
722+index 39f94ce..6bbf3fe 100644
723+--- a/scripts/services/zz-sys
724++++ b/scripts/services/zz-sys
725+@@ -35,8 +35,8 @@
726+
727+ eval "require Sys::CPU";
728+ if ($@) {
729+- print STDERR "No Sys::CPU module installed. To install, execute the command:\n";
730+- print STDERR " perl -MCPAN -e 'install Sys::CPU' \n\n";
731++ # Sys::CPU (and Sys::MemInfo) are intentionally not installed on Ubuntu.
732++ # Silently skip this if not present.
733+ } else {
734+ import Sys::CPU;
735+ print " CPU: " . Sys::CPU::cpu_count() . " " . Sys::CPU::cpu_type() . " at " . Sys::CPU::cpu_clock() . "MHz\n";
736+@@ -52,8 +52,8 @@ print " Release: $OStitle $release\n";
737+
738+ eval "require Sys::MemInfo";
739+ if ($@) {
740+- print STDERR "No Sys::MemInfo module installed. To install, execute the command:\n";
741+- print STDERR " perl -MCPAN -e 'install Sys::MemInfo' \n\n";
742++ # Sys::CPU (and Sys::MemInfo) are intentionally not installed on Ubuntu.
743++ # Silently skip this if not present.
744+ } else {
745+ import Sys::MemInfo qw(totalmem freemem totalswap freeswap);
746+ my $swapused = &totalswap - &freeswap;
747+--
748+2.27.0
749+
750diff --git a/debian/patches/0015-pam_unix-Ignore-issues-about-etc-securetty-being-mis.patch b/debian/patches/0015-pam_unix-Ignore-issues-about-etc-securetty-being-mis.patch
751new file mode 100644
752index 0000000..f112ec7
753--- /dev/null
754+++ b/debian/patches/0015-pam_unix-Ignore-issues-about-etc-securetty-being-mis.patch
755@@ -0,0 +1,51 @@
756+From 1b471a45e1a0bb55302d65e3cffb72fa0ea66391 Mon Sep 17 00:00:00 2001
757+From: Bryce Harrington <bryce@canonical.com>
758+Date: Wed, 19 Aug 2020 04:43:25 +0000
759+Subject: [PATCH 05/10] pam_unix: Ignore issues about /etc/securetty being
760+ missing
761+
762+Fixes: https://bugs.launchpad.net/ubuntu/focal/+source/logwatch/+bug/1890751
763+Signed-off-by: Bryce Harrington <bryce@canonical.com>
764+---
765+ scripts/services/pam_unix | 5 +++++
766+ scripts/services/sudo | 3 +++
767+ 2 files changed, 8 insertions(+)
768+
769+Origin: vendor
770+Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/focal/+source/logwatch/+bug/1890751
771+Forwarded: https://sourceforge.net/p/logwatch/git/merge-requests/46/
772+Last-Updated: 2020-08-20
773+
774+diff --git a/scripts/services/pam_unix b/scripts/services/pam_unix
775+index dea1d15..80f7b32 100644
776+--- a/scripts/services/pam_unix
777++++ b/scripts/services/pam_unix
778+@@ -74,6 +74,11 @@ while ($line = <STDIN>) {
779+ $data{"all"}{'Password Expiring'}{"$1 in $2 days"}++;
780+ next;
781+ }
782++ # handle all missing /etc/securetty warnings
783++ if ($line =~ /Couldn.t open \/etc\/securetty/) {
784++ # Ignore - see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=674857#25
785++ next;
786++ }
787+ #lowercase the service
788+ $service = lc($service);
789+ if ( grep $_ eq $service, qw/ssh sshd login ftp vsftpd proftpd rsh remote rlogin rexec systemd-user/) {
790+diff --git a/scripts/services/sudo b/scripts/services/sudo
791+index 6c0ff52..be3ffb2 100644
792+--- a/scripts/services/sudo
793++++ b/scripts/services/sudo
794+@@ -72,6 +72,9 @@ while (defined(my $ThisLine = <STDIN>)) {
795+ or $ThisLine =~ /pam_systemd\(sudo:session\): Cannot create session: Already (running in|occupied by) a session/
796+ ) {
797+ # Ignore
798++ # handle all missing /etc/securetty warnings
799++ } elsif ($ThisLine =~ /pam_unix\(sudo:auth\): Couldn.t open \/etc\/securetty/) {
800++ # Ignore - see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=674857#25
801+ } elsif ($ThisLine =~ /(.+): conversation failed/) {
802+ $ConFailed{$1}++;
803+ } elsif ( ($user, $error, $tty, $dir, $euser, $egroup, $cmd, $args) = $ThisLine =~ m/^\s*(\S+) : (.*; )?TTY=(\S+) ; PWD=(.*?) ; USER=(\S+) ;(?: GROUP=(\S+) ;)? COMMAND=(\S+)( ?.*)/) {
804+--
805+2.27.0
806+
807diff --git a/debian/patches/0017-audit-Apparmor-DENIED-entries-don-t-always-include-p.patch b/debian/patches/0017-audit-Apparmor-DENIED-entries-don-t-always-include-p.patch
808new file mode 100644
809index 0000000..cacf79e
810--- /dev/null
811+++ b/debian/patches/0017-audit-Apparmor-DENIED-entries-don-t-always-include-p.patch
812@@ -0,0 +1,28 @@
813+From: Bryce Harrington <bryce@canonical.com>
814+Date: Thu, 20 Aug 2020 04:56:08 +0000
815+Subject: [PATCH 07/10] audit: Apparmor DENIED entries don't always include
816+ parent=N
817+
818+Ref: https://bugs.launchpad.net/ubuntu/+source/logwatch/+bug/1577948
819+Signed-off-by: Bryce Harrington <bryce@canonical.com>
820+---
821+ scripts/services/audit | 1 +
822+ 1 file changed, 1 insertion(+)
823+
824+Origin: vendor
825+Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/logwatch/+bug/1577948
826+Forwarded: https://sourceforge.net/p/logwatch/git/merge-requests/46/
827+Last-Updated: 2020-08-20
828+
829+diff --git a/scripts/services/audit b/scripts/services/audit
830+index b12f710..46e300e 100644
831+--- a/scripts/services/audit
832++++ b/scripts/services/audit
833+@@ -134,6 +134,7 @@ while ($ThisLine = <STDIN>) {
834+ } elsif ( $ThisLine =~ /apparmor="DENIED" operation="([^"]+)" parent=\d+ profile="([^"]+)" name="([^"]+)" pid=\d+ comm="([^"]+)"/ ) {
835+ # type=1400 audit(1314853822.672:33649): apparmor="DENIED" operation="mknod" parent=27250 profile="/usr/lib/apache2/mpm-prefork/apache2//example.com" name="/usr/share/wordpress/1114140474e5f13bea68a4.tmp" pid=27289 comm="apache2" requested_mask="c" denied_mask="c" fsuid=33 ouid=33
836+ # type=1400 audit(1315353795.331:33657): apparmor="DENIED" operation="exec" parent=14952 profile="/usr/lib/apache2/mpm-prefork/apache2//example.com" name="/usr/lib/sm.bin/sendmail" pid=14953 comm="sh" requested_mask="x" denied_mask="x" fsuid=33 ouid=0
837++ # type=1400 audit(1597683992.796:8057): apparmor="DENIED" operation="exec" profile="/usr/bin/evince" name="/usr/lib/uim/uim-helper-server" pid=1687330 comm="evince" requested_mask="x" denied_mask="x" fsuid=1000 ouid=0: 1 Time(s)
838+ $denials{$1.' '.$3.' ('.$2.' via '.$4 . ')'}++;
839+ } elsif ( $ThisLine =~ /apparmor="ALLOWED" operation="([^"]+)" (info="([^"]+)" )?(error=[+-]?\d+ )?(parent=\d+ )?profile="([^"]+)" (name="([^"]+)" )?pid=\d+ comm="([^"]+)"/ ) {
840+ # type=1400 audit(1369519203.141:259049): apparmor="ALLOWED" operation="exec" parent=3733 profile="/usr/sbin/dovecot//null-1c//null-1d" name="/usr/lib/dovecot/pop3-login" pid=24634 comm="dovecot" requested_mask="x" denied_mask="x" fsuid=0 ouid=0 target="/usr/sbin/dovecot//null-1c//null-1d//null-d12"
841diff --git a/debian/patches/0018-audit-Treat-Denial-Errors-same-as-Denied.patch b/debian/patches/0018-audit-Treat-Denial-Errors-same-as-Denied.patch
842new file mode 100644
843index 0000000..1d322d2
844--- /dev/null
845+++ b/debian/patches/0018-audit-Treat-Denial-Errors-same-as-Denied.patch
846@@ -0,0 +1,28 @@
847+From: Bryce Harrington <bryce@bryceharrington.org>
848+Date: Tue, 25 Aug 2020 18:02:43 -0300
849+Subject: audit: Treat Denial Errors same as Denied
850+
851+Ubuntu Security says, "I think this would be more useful as DENIED, as
852+that's how we discuss these line events elsewhere."
853+---
854+ scripts/services/audit | 3 +++
855+ 1 file changed, 3 insertions(+)
856+
857+Origin: vendor, https://sourceforge.net/p/logwatch/git/ci/c827d09423489fcdd840c670528a05573bd90278/
858+Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/logwatch/+bug/1577948
859+Last-Updated: 2020-08-25
860+
861+diff --git a/scripts/services/audit b/scripts/services/audit
862+index 46e300e..a590c5e 100644
863+--- a/scripts/services/audit
864++++ b/scripts/services/audit
865+@@ -136,6 +136,9 @@ while ($ThisLine = <STDIN>) {
866+ # type=1400 audit(1315353795.331:33657): apparmor="DENIED" operation="exec" parent=14952 profile="/usr/lib/apache2/mpm-prefork/apache2//example.com" name="/usr/lib/sm.bin/sendmail" pid=14953 comm="sh" requested_mask="x" denied_mask="x" fsuid=33 ouid=0
867+ # type=1400 audit(1597683992.796:8057): apparmor="DENIED" operation="exec" profile="/usr/bin/evince" name="/usr/lib/uim/uim-helper-server" pid=1687330 comm="evince" requested_mask="x" denied_mask="x" fsuid=1000 ouid=0: 1 Time(s)
868+ $denials{$1.' '.$3.' ('.$2.' via '.$4 . ')'}++;
869++ } elsif ( $ThisLine =~ /apparmor="DENIED" operation="([^"]+)" info="([^"]+)" error=-*[0-9]+ profile="([^"]+)" name="([^"]+)" pid=\d+ comm="([^"]+)"/ ) {
870++ # type=1400 audit(1597690743.153:8073): apparmor="DENIED" operation="mount" info="failed flags match" error=-13 profile="lxd-open-iscsi-review-mp389234-groovy_</var/snap/lxd/common/lxd>" name="/run/" pid=1694826 comm="mount" flags="rw, nosuid, nodev, remount": 1 Time(s)
871++ $denials{$1.' '.$4.' ('.$3.' via '.$5 .': '.$2. ')'}++;
872+ } elsif ( $ThisLine =~ /apparmor="ALLOWED" operation="([^"]+)" (info="([^"]+)" )?(error=[+-]?\d+ )?(parent=\d+ )?profile="([^"]+)" (name="([^"]+)" )?pid=\d+ comm="([^"]+)"/ ) {
873+ # type=1400 audit(1369519203.141:259049): apparmor="ALLOWED" operation="exec" parent=3733 profile="/usr/sbin/dovecot//null-1c//null-1d" name="/usr/lib/dovecot/pop3-login" pid=24634 comm="dovecot" requested_mask="x" denied_mask="x" fsuid=0 ouid=0 target="/usr/sbin/dovecot//null-1c//null-1d//null-d12"
874+ # type=1400 audit(1369627891.522:447576): apparmor="ALLOWED" operation="capable" parent=1 profile="/usr/sbin/dovecot//null-1c//null-1d" pid=3733 comm="dovecot" capability=5 capname="kill"
875diff --git a/debian/patches/0019-exim-Handle-self-signed-certs-warnings.patch b/debian/patches/0019-exim-Handle-self-signed-certs-warnings.patch
876new file mode 100644
877index 0000000..35847c3
878--- /dev/null
879+++ b/debian/patches/0019-exim-Handle-self-signed-certs-warnings.patch
880@@ -0,0 +1,73 @@
881+From 684b9ad38e41aab5a44fc2b8c2585015cef01245 Mon Sep 17 00:00:00 2001
882+From: Bryce Harrington <bryce@canonical.com>
883+Date: Thu, 20 Aug 2020 22:34:43 +0000
884+Subject: [PATCH 09/10] exim: Handle self-signed certs warnings
885+
886+This generates a 2-line warning, so handle the second line as part of
887+the warning message, not as "BAD FORMAT".
888+
889+Fixes: https://bugs.launchpad.net/ubuntu/+source/logwatch/+bug/1892269
890+Signed-off-by: Bryce Harrington <bryce@canonical.com>
891+---
892+ scripts/services/exim | 19 +++++++++++++++++++
893+ 1 file changed, 19 insertions(+)
894+
895+Origin: vendor
896+Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/logwatch/+bug/1892269
897+Forwarded: https://sourceforge.net/p/logwatch/git/merge-requests/46/
898+Last-Updated: 2020-08-20
899+
900+diff --git a/scripts/services/exim b/scripts/services/exim
901+index d2068a4..af1556a 100644
902+--- a/scripts/services/exim
903++++ b/scripts/services/exim
904+@@ -93,6 +93,10 @@ while (defined($ThisLine = <STDIN>)) {
905+ $KeepEnv++ if $MatchedDate;
906+ next;
907+ }
908++ if ( $ThisLine =~ /^ Suggested action: either install a certificate or change tls_advertise_hosts option/ ) {
909++ push @SelfSignedH, $ThisLine;
910++ next;
911++ }
912+ $BadFormat{$ThisLine}++;
913+ next;
914+ } unless ($year1,$month1,$day1,$h1,$m1,$s1) = ($ThisLine =~ /^(\d+)\-(\d+)\-(\d+)\s(\d+):(\d+):(\d+)\s.+/);
915+@@ -266,6 +270,10 @@ while (defined($ThisLine = <STDIN>)) {
916+ $Lookup++;
917+ push @LookupH, $ThisLine;
918+ }
919++ elsif ( $ThisLine =~ /No server certificate defined; will use a selfsigned one/ ) {
920++ $SelfSigned++;
921++ push @SelfSignedH, $ThisLine;
922++ }
923+ elsif ( $ThisLine =~ /DKIM: .* \[verification succeeded\]/ ) {
924+ # Ignore successful DKIM verification reports
925+ # http://www.exim.org/exim-html-current/doc/html/spec_html/ch-support_for_dkim_domainkeys_identified_mail.html
926+@@ -321,6 +329,16 @@ if ($Detail >= $LvlRuns) {
927+ }
928+ }
929+
930++if (@SelfSignedH) {
931++ print "\n--- Self-Signed Certificate in use ($SelfSigned Time(s))\n";
932++
933++ if ($Detail >= $LvlMsgs) {
934++ foreach $ThisOne (@SelfSignedH) {
935++ print "$ThisOne\n";
936++ }
937++ }
938++}
939++
940+ if ($Detail >= $LvlVerify) {
941+ if ((@SendVerify) and (@RecipVerify)) {
942+ print "\n--- Address Verification ---\n";
943+@@ -749,6 +767,7 @@ if ($Detail >= $LvlProtocol) {
944+ }
945+ }
946+ }
947++
948+ }
949+ }
950+
951+--
952+2.27.0
953+
954diff --git a/debian/patches/0020-dhcpd-Ignore-lease-age-under-threshold-messages.patch b/debian/patches/0020-dhcpd-Ignore-lease-age-under-threshold-messages.patch
955new file mode 100644
956index 0000000..d73695a
957--- /dev/null
958+++ b/debian/patches/0020-dhcpd-Ignore-lease-age-under-threshold-messages.patch
959@@ -0,0 +1,32 @@
960+From b5ba9adac18b8b964f1bc8532ef6b9809656777c Mon Sep 17 00:00:00 2001
961+From: Bryce Harrington <bryce@canonical.com>
962+Date: Thu, 20 Aug 2020 22:53:30 +0000
963+Subject: [PATCH 10/10] dhcpd: Ignore lease age under threshold messages
964+
965+Fixes: https://bugs.launchpad.net/ubuntu/+source/logwatch/+bug/1578001
966+Signed-off-by: Bryce Harrington <bryce@canonical.com>
967+---
968+ scripts/services/dhcpd | 2 ++
969+ 1 file changed, 2 insertions(+)
970+
971+Origin: vendor
972+Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/logwatch/+bug/1578001
973+Forwarded: https://sourceforge.net/p/logwatch/git/merge-requests/46/
974+Last-Updated: 2020-08-20
975+
976+diff --git a/scripts/services/dhcpd b/scripts/services/dhcpd
977+index 98e7fa7..87312f7 100644
978+--- a/scripts/services/dhcpd
979++++ b/scripts/services/dhcpd
980+@@ -119,6 +119,8 @@ while (my $line = <STDIN>) {
981+ ($line =~ /^of the dhcpd.conf file\./)
982+ ) {
983+ # Do nothing
984++ } elsif ($line =~ /lease age \d+ \(secs\) under \d+% threshold, reply with unaltered, existing lease/) {
985++ # Do nothing
986+
987+ } elsif ($line =~ s/^exiting./DHCP server exiting./) {
988+ $data{'Generic error'}{$line}++;
989+--
990+2.27.0
991+
992diff --git a/debian/patches/0021-audit-use-the-term-ALLOWED-instead-of-Grants.patch b/debian/patches/0021-audit-use-the-term-ALLOWED-instead-of-Grants.patch
993new file mode 100644
994index 0000000..7a7f9c9
995--- /dev/null
996+++ b/debian/patches/0021-audit-use-the-term-ALLOWED-instead-of-Grants.patch
997@@ -0,0 +1,69 @@
998+From 0f725a6b489860edb9d92a2254eb994d8606ea47 Mon Sep 17 00:00:00 2001
999+From: Lucas Kanashiro <lucas.kanashiro@canonical.com>
1000+Date: Tue, 25 Aug 2020 17:48:56 -0300
1001+Subject: [PATCH] audit: use the term ALLOWED instead of Grants
1002+
1003+Grants as a term does not exist in the apparmor world, ALLOWED would be
1004+more meaningful in this case.
1005+---
1006+ scripts/services/audit | 16 ++++++++--------
1007+ 1 file changed, 8 insertions(+), 8 deletions(-)
1008+
1009+Origin: vendor
1010+Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/logwatch/+bug/1577948
1011+Forwarded: https://sourceforge.net/p/logwatch/git/merge-requests/48/
1012+Last-Updated: 2020-09-03
1013+
1014+--- a/scripts/services/audit
1015++++ b/scripts/services/audit
1016+@@ -36,7 +36,7 @@
1017+ use strict;
1018+ use Logwatch ':all';
1019+
1020+-my (%denials, %grants, %loads);
1021++my (%denials, %allowed, %loads);
1022+ my %OtherList;
1023+ my $othercount = 0;
1024+ my $Debug = ($ENV{'LOGWATCH_DEBUG'} || 0);
1025+@@ -153,7 +153,7 @@
1026+ if ( $ThisLine =~ /avc:\s*denied\s*{\s*([^}]+).*scontext=(\S+)\s*tcontext=(\S+)\s*tclass=(\S+)/ ) {
1027+ $denials{$2.' '.$3.' ('.$1.$4 . ')'}++;
1028+ } elsif ( $ThisLine =~ /avc:\s*granted\s*{\s*([^}]+).*scontext=(\S+)\s*tcontext=(\S+)\s*tclass=(\S+)/ ) {
1029+- $grants{$2.' '.$3.' ('.$1.$4 . ')'}++;
1030++ $allowed{$2.' '.$3.' ('.$1.$4 . ')'}++;
1031+ } elsif ($ThisLine =~ /security_compute_sid:\s*invalid context\s*(\S+)\s*for\s*scontext=(\S+)\s*tcontext=(\S+)\s*tclass=(\S+)/ ) {
1032+ $InvalidContext{$4." running as ".$2." acting on ".$3." \nshould transit to invalid ".$1}++;
1033+ } elsif ($ThisLine =~ /security_sid_mls_copy:\s*invalid context\s*(\S+)/) {
1034+@@ -166,7 +166,7 @@
1035+ if ( $ThisLine =~ /avc:\s*denied\s*{\s*[^}]+.*scontext=(\S+)\s*tcontext=(\S+)\s*tclass=(\S+)/ ) {
1036+ $denials{$1.' '.$2.' ('.$3 . ')'}++;
1037+ } elsif ( $ThisLine =~ /avc:\s*granted\s*{\s*[^}]+}.*scontext=(\S+)\s*tcontext=(\S+)\s*tclass=(\S+)/ ) {
1038+- $grants{$1.' '.$2.' ('.$3 . ')'}++;
1039++ $allowed{$1.' '.$2.' ('.$3 . ')'}++;
1040+ } elsif ($ThisLine =~ /security_compute_sid:\s*invalid context\s*(\S+)\s*for\s*scontext=(\S+)\s*tcontext=\S+\s*tclass=(\S+)/ ) {
1041+ $InvalidContext{$3." running as ".$2." should transit to invalid ".$1}++;
1042+ } elsif ($ThisLine =~ /security_sid_mls_copy:\s*invalid context\s*(\S+)/) {
1043+@@ -179,7 +179,7 @@
1044+ if ( $ThisLine =~ /avc:\s*denied\s*{\s*[^}]+.*scontext=([^:]+):[^:]+:\S+\s*tcontext=([^:]+):[^:]+:\S+\s*tclass=(\S+)/ ) {
1045+ $denials{$1.' '.$2.' ('.$3 . ')'}++;
1046+ } elsif ( $ThisLine =~ /avc:\s*granted\s*{\s*[^}]+.*scontext=([^:]+):[^:]+:\S+\s*tcontext=([^:]+):[^:]+:\S+\s*tclass=(\S+)/ ) {
1047+- $grants{$1.' '.$2.' ('.$3 . ')'}++;
1048++ $allowed{$1.' '.$2.' ('.$3 . ')'}++;
1049+ } elsif ($ThisLine =~ /security_compute_sid:\s*invalid context\s*(\S+)\s*for\s*scontext=(\S+)\s*tcontext=\S+\s*tclass=(\S+)/ ) {
1050+ $InvalidContext{$3." running as ".$2." should transit to invalid ".$1}++;
1051+ } elsif ($ThisLine =~ /security_sid_mls_copy:\s*invalid context\s*(\S+)/) {
1052+@@ -204,10 +204,10 @@
1053+ }
1054+ }
1055+
1056+-if ( keys %grants ) {
1057+- print "\n\n*** Grants ***\n";
1058+- foreach my $key (sort keys %grants) {
1059+- print " $key: ". $grants{$key} . " times\n";
1060++if ( keys %allowed ) {
1061++ print "\n\n*** Allowed ***\n";
1062++ foreach my $key (sort keys %allowed) {
1063++ print " $key: ". $allowed{$key} . " times\n";
1064+ }
1065+ }
1066+
1067diff --git a/debian/patches/series b/debian/patches/series
1068index 98946bb..1a90206 100644
1069--- a/debian/patches/series
1070+++ b/debian/patches/series
1071@@ -2,3 +2,15 @@
1072 0002-logfiles-vsftpd.conf-Use-custom-pattern-for-applystd.patch
1073 0003-Ignore-ecryptfs-automounting-messages-in-cron.patch
1074 0004-scripts-mdadm-Fix-parsing-of-mdadm.conf-handle-ignor.patch
1075+
1076+# Ubuntu patches
1077+0011-postfix-Ignore-Resolved-loghost-to-127.0.0.1.patch
1078+0012-postfix-Handle-backwards-compatible-mode.patch
1079+0013-secure-Ignore-warnings-about-gnome-keyring-daemon-it.patch
1080+0014-zz-sys-Suppress-warnings-if-Sys-CPU-or-Sys-MemInfo-a.patch
1081+0015-pam_unix-Ignore-issues-about-etc-securetty-being-mis.patch
1082+0017-audit-Apparmor-DENIED-entries-don-t-always-include-p.patch
1083+0018-audit-Treat-Denial-Errors-same-as-Denied.patch
1084+0019-exim-Handle-self-signed-certs-warnings.patch
1085+0020-dhcpd-Ignore-lease-age-under-threshold-messages.patch
1086+0021-audit-use-the-term-ALLOWED-instead-of-Grants.patch

Subscribers

People subscribed via source and target branches