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

Proposed by Bryce Harrington
Status: Merged
Merge reported by: Bryce Harrington
Merged at revision: aafb324f59cf3c88b78702e3c6e54817e4002e8b
Proposed branch: ~bryce/ubuntu/+source/logwatch:merge-v7.5.6-1-jammy
Merge into: ubuntu/+source/logwatch:debian/sid
Diff against target: 1085 lines (+842/-2)
15 files modified
debian/changelog (+484/-0)
debian/control (+4/-2)
debian/patches/0010-zz-zfs-detect-zfs-location.patch (+42/-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 (+44/-0)
debian/patches/series (+5/-0)
debian/tests/apparmor-unmatched-entries (+41/-0)
debian/tests/basic-checks (+34/-0)
debian/tests/control (+15/-0)
debian/tests/data/su-l (+2/-0)
debian/tests/data/unmatched-entries-apparmor_kern.log (+14/-0)
debian/tests/detail (+16/-0)
debian/tests/packages-and-report (+36/-0)
debian/tests/su-l-check (+37/-0)
debian/tests/syntax-check (+16/-0)
Reviewer Review Type Date Requested Status
Sergio Durigan Junior (community) Approve
Canonical Server Pending
git-ubuntu import Pending
Review via email: mp+414077@code.launchpad.net

Description of the change

Merge with Debian's package.

Patch 0015 needed a bit of update to keep it applying properly, otherwise everything remains as is. The three patches are the remainder from a larger set we sent upstream, but these three weren't picked up since they deal with log chatter that's pretty specific to Ubuntu so stay in our delta, for now.

The autopkgtests were already forwarded to Debian (see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=996893). No response yet, so we will continue to carry them as-is.

PPA: https://launchpad.net/~bryce/+archive/ubuntu/logwatch-merge-v7.5.6-1-jammy/+packages

Bileto: https://autopkgtest.ubuntu.com/results/autopkgtest-jammy-bryce-logwatch-merge-v7.5.6-1-jammy/
  logwatch @ amd64:
    13.01.22 03:42:41 Log πŸ—’οΈ βœ… Triggers: ['logwatch/7.5.6-1ubuntu1']
  logwatch @ arm64:
    13.01.22 03:46:44 Log πŸ—’οΈ βœ… Triggers: ['logwatch/7.5.6-1ubuntu1']
  logwatch @ armhf:
    13.01.22 03:55:07 Log πŸ—’οΈ βœ… Triggers: ['logwatch/7.5.6-1ubuntu1']
  logwatch @ ppc64el:
    13.01.22 03:41:18 Log πŸ—’οΈ βœ… Triggers: ['logwatch/7.5.6-1ubuntu1']
  logwatch @ s390x:
    13.01.22 03:41:32 Log πŸ—’οΈ βœ… Triggers: ['logwatch/7.5.6-1ubuntu1']

Usual tags pushed for review:
  - tags/old/debian 73b16c8
  - tags/new/debian 90c98cf
  - tags/old/ubuntu ba860c7
  - tags/logical/7.5.5-1ubuntu3 dfd5381
  - tags/reconstruct/7.5.5-1ubuntu3 0c4148e
  - tags/split/7.5.5-1ubuntu3 2c7d7e7

To post a comment you must log in.
Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

I'm taking a look at this one.

Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

Thanks for the MP, Bryce.

The package builds fine locally. Also confirmed that autopkgtest passed when running locally, which is great.

I like that the dep8 tests have been submitted to Debian, but unfortunately there hasn't been any replies so far. If I may suggest something, it would be that you (or Miriam, who authored the tests) also create a Merge Request against the package on salsa.d.o; some maintainers prefer receiving patches via the BTS, others prefer salsa, so it's usually a good idea to cover both fronts.

I looked at the patches we're carrying, and I agree with the changes. I've been thinking whether it would be possible to write some of those patches in a "generic" way so that they could be upstreamed, but this is definitely not urgent.

LGTM, +1.

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

Thanks, I touched base with miriam about getting the tests upstream, and agree it'd be nice if Debian picked them up.

Regarding patch upstreaming, generally I agree although it strikes me that Logwatch is kind of a special case since it is essentially a filter on log files that should cover both general log chatter as well as distro-specific log entries (and ideally also distro-specific services). The latter likely aren't going to be relevant in debian and/or upstream. So in a sense this package is kind of an oddball in that a healthy amount of Ubuntu-specific delta would mean we're keeping it well-maintained. %-)

Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

On Thursday, January 13 2022, Bryce Harrington wrote:

> Regarding patch upstreaming, generally I agree although it strikes me
> that Logwatch is kind of a special case since it is essentially a
> filter on log files that should cover both general log chatter as well
> as distro-specific log entries (and ideally also distro-specific
> services). The latter likely aren't going to be relevant in debian
> and/or upstream. So in a sense this package is kind of an oddball in
> that a healthy amount of Ubuntu-specific delta would mean we're
> keeping it well-maintained. %-)

Thanks for the reply, Bryce. I defer to your knowledge of the package
(which is greater than mine), and so I'm fine and convinced that the
current situation is OK.

Cheers,

--
Sergio
GPG key ID: E92F D0B3 6B14 F1F4 D8E0 EB2F 106D A1C8 C3CB BF14

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 05cd8c0..e0db786 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,37 @@
6+logwatch (7.5.6-1ubuntu1) jammy; urgency=medium
7+
8+ * Merge with Debian unstable (LP: #1946872).
9+ Remaining changes:
10+ - Drop libsys-cpu-perl and libsys-meminfo-perl from Recommends to
11+ Suggests as they are in universe.
12+ - d/p/0014-zz-sys-Suppress-warnings-if-Sys-CPU-or-Sys-MemInfo-a.patch:
13+ zz-sys: Suppress warnings if Sys::CPU or Sys::MemInfo are missing.
14+ These are not installed by default in Ubuntu's logwatch packaging.
15+ (LP #1890749)
16+ - d/p/0015-pam_unix-Ignore-issues-about-etc-securetty-being-mis.patch:
17+ pam_unix: Ignore issues about /etc/securetty being missing.
18+ (LP #1890751)
19+ - d/p/0010-zz-zfs-detect-zfs-location.patch: Use explicit paths for
20+ finding zfs and zpool executables.
21+ (LP #1880211)
22+ - d/tests: Add autopkgtest DEP8 tests (LP #1679329):
23+ + d/t/control: New file.
24+ + d/t/basic-checks: Test basic configuration and version.
25+ + d/t/syntax-check: Perl syntax checking for the logwatch's scripts.
26+ + d/t/detail: Check the amount of output when using low, med and
27+ high values with the detail flag.
28+ + d/t/su-l-check: Check if properly report when a user become root.
29+ + d/t/data/su-l: Log portion used in the above test.
30+ + d/t/apparmor-unmatched-entries,
31+ d/t/data/unmatched-entries-apparmor_kern.log: Test for not
32+ logging as unmatched some lines for apparmor audit in kern.log.
33+ (LP #1577948)
34+ + d/t/packages-and-report: Check if the corresponding section
35+ is present into logwatch report for a list of packages/services
36+ (now only for sshd).
37+
38+ -- Bryce Harrington <bryce@canonical.com> Thu, 13 Jan 2022 02:14:59 +0000
39+
40 logwatch (7.5.6-1) unstable; urgency=medium
41
42 * New upstream version 7.5.6
43@@ -5,12 +39,130 @@ logwatch (7.5.6-1) unstable; urgency=medium
44
45 -- Willi Mann <willi@debian.org> Fri, 05 Nov 2021 13:47:57 +0100
46
47+logwatch (7.5.5-1ubuntu3) impish; urgency=medium
48+
49+ * d/tests: Add autopkgtest DEP8 tests (LP: #1679329):
50+ - d/t/control: New file.
51+ - d/t/basic-checks: Test basic configuration and version.
52+ - d/t/syntax-check: Perl syntax checking for the logwatch's scripts.
53+ - d/t/detail: Check the amount of output when using low, med and
54+ high values with the detail flag.
55+ - d/t/su-l-check: Check if properly report when a user become root.
56+ + d/t/data/su-l: Log portion used in this test.
57+ - d/t/apparmor-unmatched-entries : Test for not logging as unmatched
58+ some lines for apparmor audit in kern.log.
59+ + d/t/data/unmatched-entries-apparmor_kern.log: Log portion
60+ used in the test (LP #1577948).
61+ - d/t/packages-and-report: Check if the corresponding section
62+ is present into logwatch report for a list of packages/services
63+ (now only for sshd).
64+
65+ -- Miriam EspaΓ±a Acebal <miriam.espana@canonical.com> Thu, 29 Jul 2021 16:53:01 +0200
66+
67+logwatch (7.5.5-1ubuntu2) hirsute; urgency=medium
68+
69+ * d/p/0010-zz-zfs-detect-zfs-location.patch: Use explicit paths for
70+ finding zfs and zpool executables.
71+ (LP: #1880211)
72+
73+ -- Bryce Harrington <bryce@canonical.com> Wed, 14 Apr 2021 20:11:05 +0000
74+
75+logwatch (7.5.5-1ubuntu1) hirsute; urgency=medium
76+
77+ * Merge with Debian unstable. Remaining changes:
78+ - Drop libsys-cpu-perl and libsys-meminfo-perl from Recommends to
79+ Suggests as they are in universe.
80+ - d/p/0014-zz-sys-Suppress-warnings-if-Sys-CPU-or-Sys-MemInfo-a.patch:
81+ zz-sys: Suppress warnings if Sys::CPU or Sys::MemInfo are missing.
82+ These are not installed by default in Ubuntu's logwatch packaging.
83+ (LP #1890749)
84+ - d/p/0015-pam_unix-Ignore-issues-about-etc-securetty-being-mis.patch:
85+ pam_unix: Ignore issues about /etc/securetty being missing.
86+ (LP #1890751)
87+ * Dropped:
88+ - d/p/0011-postfix-Ignore-Resolved-loghost-to-127.0.0.1.patch:
89+ postfix: Ignore Resolved loghost to 127.0.0.1.
90+ (LP: #1583705)
91+ [Taken upstream]
92+ - d/p/0012-postfix-Handle-backwards-compatible-mode.patch:
93+ postfix: Handle backwards-compatible mode.
94+ (LP #1583705)
95+ [Taken upstream]
96+ - d/p/0013-secure-Ignore-warnings-about-gnome-keyring-daemon-it.patch:
97+ secure: Ignore warnings about gnome-keyring-daemon items already
98+ registered.
99+ (LP #1890752)
100+ [Taken upstream]
101+ - d/p/0017-audit-Apparmor-DENIED-entries-don-t-always-include-p.patch
102+ audit: Don't handle "unconfined" profile changes distinct from ordinary loads
103+ [Taken upstream]
104+ - d/p/0018-audit-Handle-apparmor-errors-on-DENIED-messages.patch:
105+ audit: Treat Denial Errors same as Denied
106+ (LP #1577948)
107+ [Taken upstream]
108+ - d/p/0019-exim-Handle-self-signed-certs-warnings.patch:
109+ exim: Handle self-signed certs warnings.
110+ (LP #1892269)
111+ [Taken upstream]
112+ - d/p/0020-dhcpd-Ignore-lease-age-under-threshold-messages.patch:
113+ dhcpd: Ignore lease age under threshold messages
114+ (LP #1578001)
115+ [Taken upstream]
116+ - d/p/0021-audit-use-the-term-ALLOWED-instead-of-Grants.patch:
117+ audit: use the term ALLOWED instead of Grants
118+ (LP #1577948)
119+ [Taken upstream]
120+
121+ -- Bryce Harrington <bryce@canonical.com> Tue, 23 Feb 2021 18:54:42 +0000
122+
123 logwatch (7.5.5-1) unstable; urgency=medium
124
125 * New upstream version 7.5.5
126
127 -- Willi Mann <willi@debian.org> Sun, 31 Jan 2021 19:58:46 +0100
128
129+logwatch (7.5.4-1ubuntu1) hirsute; 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+ - d/p/0011-postfix-Ignore-Resolved-loghost-to-127.0.0.1.patch:
135+ postfix: Ignore Resolved loghost to 127.0.0.1.
136+ (LP #1583705)
137+ - d/p/0012-postfix-Handle-backwards-compatible-mode.patch:
138+ postfix: Handle backwards-compatible mode.
139+ (LP #1583705)
140+ - d/p/0013-secure-Ignore-warnings-about-gnome-keyring-daemon-it.patch:
141+ secure: Ignore warnings about gnome-keyring-daemon items already
142+ registered.
143+ (LP #1890752)
144+ - d/p/0014-zz-sys-Suppress-warnings-if-Sys-CPU-or-Sys-MemInfo-a.patch:
145+ zz-sys: Suppress warnings if Sys::CPU or Sys::MemInfo are missing.
146+ These are not installed by default in Ubuntu's logwatch packaging.
147+ (LP #1890749)
148+ - d/p/0015-pam_unix-Ignore-issues-about-etc-securetty-being-mis.patch:
149+ pam_unix: Ignore issues about /etc/securetty being missing.
150+ (LP #1890751)
151+ - d/p/0017-audit-Apparmor-DENIED-entries-don-t-always-include-p.patch
152+ audit: Don't handle "unconfined" profile changes distinct from ordinary loads
153+ - d/p/0018-audit-Handle-apparmor-errors-on-DENIED-messages.patch:
154+ audit: Treat Denial Errors same as Denied
155+ (LP #1577948)
156+ - d/p/0019-exim-Handle-self-signed-certs-warnings.patch:
157+ exim: Handle self-signed certs warnings.
158+ (LP #1892269)
159+ - d/p/0020-dhcpd-Ignore-lease-age-under-threshold-messages.patch:
160+ dhcpd: Ignore lease age under threshold messages
161+ (LP #1578001)
162+ - d/p/0021-audit-use-the-term-ALLOWED-instead-of-Grants.patch:
163+ audit: use the term ALLOWED instead of Grants
164+ (LP #1577948)
165+ * Dropped:
166+ - d/control: Update upstream's homepage
167+ [Taken in 7.5.4-1]
168+
169+ -- Bryce Harrington <bryce@canonical.com> Thu, 05 Nov 2020 04:28:07 +0000
170+
171 logwatch (7.5.4-1) unstable; urgency=medium
172
173 * New upstream version 7.5.4 (closes: #970684)
174@@ -20,6 +172,91 @@ logwatch (7.5.4-1) unstable; urgency=medium
175
176 -- Willi Mann <willi@debian.org> Sun, 04 Oct 2020 20:40:40 +0200
177
178+logwatch (7.5.4-0ubuntu3) groovy; urgency=medium
179+
180+ * d/p/0014-zz-sys-Suppress-warnings-if-Sys-CPU-or-Sys-MemInfo-a.patch:
181+ Update DEP3 to indicate this patch does not need forwarded upstream
182+ since it corrects a distro packaging issue.
183+ * d/p/0018-audit-Treat-Denial-Errors-same-as-Denied.patch:
184+ Update DEP3 to link to where this patch was forwarded upstream.
185+ * d/p/0021-audit-use-the-term-ALLOWED-instead-of-Grants.patch:
186+ Fix typo in variable '$allawed'; refresh patch.
187+
188+ -- Bryce Harrington <bryce@canonical.com> Fri, 04 Sep 2020 16:08:47 -0700
189+
190+logwatch (7.5.4-0ubuntu2) groovy; urgency=medium
191+
192+ [ Bryce Harrington ]
193+ * d/p/0020-dhcpd-Ignore-lease-age-under-threshold-messages.patch:
194+ dhcpd: Ignore lease age under threshold messages
195+ (LP: #1578001)
196+ * d/p/0019-exim-Handle-self-signed-certs-warnings.patch:
197+ exim: Handle self-signed certs warnings.
198+ (LP: #1892269)
199+ * d/p/0018-audit-Treat-Denial-Errors-same-as-Denied.patch:
200+ audit: Treat Denial-Errors same as Denied.
201+ (LP: #1577948)
202+ * d/p/0017-audit-Apparmor-DENIED-entries-don-t-always-include-p.patch:
203+ audit: Apparmor DENIED entries don't always include parent=N.
204+ (LP: #1577948)
205+ * d/p/0015-pam_unix-Ignore-issues-about-etc-securetty-being-mis.patch:
206+ pam_unix: Ignore issues about /etc/securetty being missing.
207+ (LP: #1890751)
208+ * d/p/0014-zz-sys-Suppress-warnings-if-Sys-CPU-or-Sys-MemInfo-a.patch:
209+ zz-sys: Suppress warnings if Sys::CPU or Sys::MemInfo are missing.
210+ These are not installed by default in Ubuntu's logwatch packaging.
211+ (LP: #1890749)
212+ * d/p/0013-secure-Ignore-warnings-about-gnome-keyring-daemon-it.patch:
213+ secure: Ignore warnings about gnome-keyring-daemon items already
214+ registered.
215+ (LP: #1890752)
216+ * d/p/0012-postfix-Handle-backwards-compatible-mode.patch:
217+ postfix: Handle backwards-compatible mode.
218+ (LP: #1583705)
219+ * d/p/0011-postfix-Ignore-Resolved-loghost-to-127.0.0.1.patch:
220+ postfix: Ignore Resolved loghost to 127.0.0.1.
221+ (LP: #1583705)
222+ * d/control: Update upstream's homepage
223+ (LP: #1891604)
224+
225+ [ Lucas Kanashiro ]
226+ * d/p/0021-audit-use-the-term-ALLOWED-instead-of-Grants.patch:
227+ audit: use the term ALLOWED instead of Grants.
228+
229+ -- Bryce Harrington <bryce@canonical.com> Fri, 21 Aug 2020 01:30:10 +0000
230+
231+logwatch (7.5.4-0ubuntu1) groovy; urgency=medium
232+
233+ * New upstream version 7.5.4. Remaining changes:
234+ - Drop libsys-cpu-perl and libsys-meminfo-perl from Recommends to
235+ Suggests as they are in universe.
236+ * Dropped:
237+ - Drop 0005-Match-connection-shutdown-by-couriertls.patch
238+ [Taken upstream in 7.5.4]
239+ - Drop 0006-imapd-Handle-SSL3-connection-errors.patch
240+ [Taken upstream in 7.5.4]
241+
242+ -- Bryce Harrington <bryce@canonical.com> Mon, 03 Aug 2020 18:27:31 -0700
243+
244+logwatch (7.5.2-1ubuntu2) groovy; urgency=medium
245+
246+ * 0006-imapd-Handle-SSL3-connection-errors.patch: Handle SSL3
247+ connection errors for couriertls in imapd.
248+ * 0005-Match-connection-shutdown-by-couriertls.patch: Match connection
249+ shutdown entries by couriertls. These are likely just client errors
250+ and do not represent real problems.
251+ (LP: #1578004)
252+
253+ -- Bryce Harrington <bryce@canonical.com> Fri, 05 Jun 2020 23:16:23 +0000
254+
255+logwatch (7.5.2-1ubuntu1) focal; urgency=medium
256+
257+ * Merge with Debian unstable. Remaining changes:
258+ - Drop libsys-cpu-perl and libsys-meminfo-perl from Recommends to
259+ Suggests as they are in universe.
260+
261+ -- Bryce Harrington <bryce@canonical.com> Thu, 23 Jan 2020 11:53:10 -0800
262+
263 logwatch (7.5.2-1) unstable; urgency=medium
264
265 * New upstream version 7.5.2
266@@ -28,12 +265,40 @@ logwatch (7.5.2-1) unstable; urgency=medium
267
268 -- Willi Mann <willi@debian.org> Sun, 12 Jan 2020 12:25:08 +0100
269
270+logwatch (7.5.0-2ubuntu1) eoan; urgency=medium
271+
272+ * Merge with Debian unstable. Remaining changes:
273+ - Drop libsys-cpu-perl and libsys-meminfo-perl from Recommends to
274+ Suggests as they are in universe.
275+ * Dropped:
276+ - debian/control: depend on postfix rather than exim4.
277+ [default-mta is provided by postfix as of precise at least]
278+ - debian/dist.conf/logfiles/maillog.conf: adjust for logrotation.
279+ [While the file is no longer present, it'll just be silently
280+ ignored if it's listed in the config file, so no need to maintain
281+ a delta against debian for this.]
282+
283+ -- Bryce Harrington <bryce@canonical.com> Thu, 23 May 2019 10:40:17 -0700
284+
285 logwatch (7.5.0-2) unstable; urgency=high
286
287 * s/s/kernel: fix typo. closes: 917836
288
289 -- Willi Mann <willi@debian.org> Sat, 09 Mar 2019 18:14:03 +0100
290
291+logwatch (7.5.0-1ubuntu1) disco; urgency=medium
292+
293+ * Merge with Debian unstable (LP: #1810928). Remaining changes:
294+ - debian/control: depend on postfix rather than exim4.
295+ - debian/dist.conf/logfiles/maillog.conf: adjust for logrotation
296+ - Drop libsys-cpu-perl and libsys-meminfo-perl from Recommends to
297+ Suggests as they are in universe.
298+ * Dropped Changes:
299+ - d/p/ssh-ignore-disconnected.patch: [sshd] ignore disconnected from user
300+ [upstream]
301+
302+ -- Karl Stenerud <kstenerud@gmail.com> Wed, 09 Jan 2019 10:55:11 +0100
303+
304 logwatch (7.5.0-1) unstable; urgency=medium
305
306 * New upstream version
307@@ -72,6 +337,23 @@ logwatch (7.4.3+git20180713-1) unstable; urgency=medium
308
309 -- Willi Mann <willi@debian.org> Tue, 02 Oct 2018 19:52:16 +0200
310
311+logwatch (7.4.3+git20161207-2ubuntu2) cosmic; urgency=medium
312+
313+ * d/p/ssh-ignore-disconnected.patch: [sshd] ignore disconnected from user
314+ USER (LP: 1644057)
315+
316+ -- Karl Stenerud <karl.stenerud@canonical.com> Fri, 31 Aug 2018 09:44:50 -0700
317+
318+logwatch (7.4.3+git20161207-2ubuntu1) zesty; urgency=medium
319+
320+ * Merge from Debian testing. Remaining changes:
321+ - debian/control: depend on postfix rather than exim4.
322+ - debian/dist.conf/logfiles/maillog.conf: adjust for logrotation
323+ - Drop libsys-cpu-perl and libsys-meminfo-perl from Recommends to
324+ Suggests as they are in universe.
325+
326+ -- Christian Ehrhardt <christian.ehrhardt@canonical.com> Thu, 16 Feb 2017 09:08:52 +0100
327+
328 logwatch (7.4.3+git20161207-2) unstable; urgency=medium
329
330 * Revert upstream's change of the declared mail charset.
331@@ -91,6 +373,16 @@ logwatch (7.4.3+git20161207-1) unstable; urgency=medium
332
333 -- Willi Mann <willi@debian.org> Fri, 16 Dec 2016 20:15:26 +0100
334
335+logwatch (7.4.3-2ubuntu1) zesty; urgency=medium
336+
337+ * Merge from Debian unstable. Remaining changes:
338+ - debian/control: depend on postfix rather than exim4.
339+ - debian/dist.conf/logfiles/maillog.conf: adjust for logrotation
340+ - Drop libsys-cpu-perl and libsys-meminfo-perl from Recommends to
341+ Suggests as they are in universe.
342+
343+ -- Christian Ehrhardt <christian.ehrhardt@canonical.com> Thu, 01 Dec 2016 16:46:22 +0100
344+
345 logwatch (7.4.3-2) unstable; urgency=medium
346
347 * s/s/amavis: Fix perl warning "redundant argument in sprintf".
348@@ -99,6 +391,16 @@ logwatch (7.4.3-2) unstable; urgency=medium
349
350 -- Willi Mann <willi@debian.org> Wed, 02 Nov 2016 19:32:35 +0100
351
352+logwatch (7.4.3-1ubuntu1) yakkety; urgency=medium
353+
354+ * Merge from Debian unstable. Remaining changes:
355+ - debian/control: depend on postfix rather than exim4.
356+ - debian/dist.conf/logfiles/maillog.conf: adjust for logrotation
357+ - Drop libsys-cpu-perl and libsys-meminfo-perl from Recommends to
358+ Suggests as they are in universe.
359+
360+ -- Christian Ehrhardt <christian.ehrhardt@canonical.com> Tue, 26 Jul 2016 12:56:34 +0200
361+
362 logwatch (7.4.3-1) unstable; urgency=medium
363
364 * Imported Upstream version 7.4.3
365@@ -106,6 +408,16 @@ logwatch (7.4.3-1) unstable; urgency=medium
366
367 -- Willi Mann <willi@debian.org> Sat, 30 Apr 2016 14:40:57 +0200
368
369+logwatch (7.4.2-1ubuntu1) xenial; urgency=medium
370+
371+ * Merge from Debian unstable (LP: #1552983). Remaining changes:
372+ - debian/control: depend on postfix rather than exim4.
373+ - debian/dist.conf/logfiles/maillog.conf: adjust for logrotation
374+ - Drop libsys-cpu-perl and libsys-meminfo-perl from Recommends to
375+ Suggests as they are in universe.
376+
377+ -- Nishanth Aravamudan <nish.aravamudan@canonical.com> Fri, 04 Mar 2016 11:42:51 -0800
378+
379 logwatch (7.4.2-1) unstable; urgency=medium
380
381 * Imported Upstream version 7.4.2
382@@ -121,6 +433,18 @@ logwatch (7.4.1+svn20160106rev308-1) unstable; urgency=medium
383
384 -- Willi Mann <willi@debian.org> Sun, 24 Jan 2016 19:17:34 +0100
385
386+logwatch (7.4.1+svn20151218rev302-1ubuntu1) xenial; urgency=medium
387+
388+ * Merge from Debian unstable (LP: #1531262). Remaining changes:
389+ - debian/control: depend on postfix rather than exim4.
390+ - debian/dist.conf/logfiles/maillog.conf: adjust for logrotation
391+ - Drop libsys-cpu-perl from Recommends to Suggests as it is in
392+ universe.
393+ * Drop libsys-meminfo-perl from Recommends to Suggests as it is in
394+ universe.
395+
396+ -- Nishanth Aravamudan <nish.aravamudan@canonical.com> Thu, 07 Jan 2016 20:53:20 -0800
397+
398 logwatch (7.4.1+svn20151218rev302-1) unstable; urgency=medium
399
400 * Imported Upstream version 7.4.1+svn20151218rev302
401@@ -148,6 +472,21 @@ logwatch (7.4.1+svn20150731rev294-1) unstable; urgency=medium
402
403 -- Willi Mann <willi@debian.org> Wed, 02 Sep 2015 18:50:14 +0200
404
405+logwatch (7.4.1-2ubuntu2) vivid; urgency=medium
406+
407+ * Drop libsys-cpu-perl from Recommends to Suggests as it is in
408+ universe.
409+
410+ -- Robie Basak <robie.basak@ubuntu.com> Fri, 06 Feb 2015 14:29:06 +0000
411+
412+logwatch (7.4.1-2ubuntu1) vivid; urgency=medium
413+
414+ * Merge from Debian unstable (LP: #1387817). Remaining changes:
415+ - debian/control: depend on postfix rather than exim4.
416+ - debian/dist.conf/logfiles/maillog.conf: adjust for logrotation
417+
418+ -- Robie Basak <robie.basak@ubuntu.com> Mon, 02 Feb 2015 04:03:21 +0000
419+
420 logwatch (7.4.1-2) unstable; urgency=medium
421
422 * Revert upstream change on fail2ban service config. This makes fail2ban
423@@ -208,6 +547,15 @@ logwatch (7.4.0+svn20131108rev175-1) unstable; urgency=low
424
425 -- Willi Mann <willi@debian.org> Thu, 28 Nov 2013 20:10:09 +0100
426
427+logwatch (7.4.0+svn20130529rev144-1ubuntu1) saucy; urgency=low
428+
429+ * Merge from Debian unstable. Remaining changes:
430+ + debian/control:
431+ - Depend on postfix rather than exim4.
432+ + debian/dist.conf/logfiles/maillog.conf: adjust for logrotation
433+
434+ -- Robie Basak <robie.basak@ubuntu.com> Tue, 09 Jul 2013 15:06:43 +0000
435+
436 logwatch (7.4.0+svn20130529rev144-1) unstable; urgency=low
437
438 * Imported Upstream version 7.4.0+svn20130529rev144
439@@ -220,6 +568,20 @@ logwatch (7.4.0+svn20130529rev144-1) unstable; urgency=low
440
441 -- Willi Mann <willi@debian.org> Sat, 01 Jun 2013 14:03:28 +0200
442
443+logwatch (7.4.0+svn20120502rev103-1ubuntu1) raring; urgency=low
444+
445+ * Merge from Debian testing (LP: #1102414). Remaining changes:
446+ + debian/control:
447+ - Depend on postfix rather than exim4.
448+ + debian/dist.conf/logfiles/maillog.conf: adjust for logrotation
449+
450+ * Dropped changes, merged in Debian:
451+ + debian/dist.conf/services/cron.conf: this change already disappeared
452+ previously, looks related to Debian bug 615006 which is already applied
453+ and thus presumed no longer needed.
454+
455+ -- Robie Basak <robie.basak@canonical.com> Mon, 21 Jan 2013 13:53:24 +0000
456+
457 logwatch (7.4.0+svn20120502rev103-1) unstable; urgency=low
458
459 * Set VDate in logwatch.pl to svn date for svn snapshots
460@@ -243,6 +605,17 @@ logwatch (7.4.0+svn20120227rev85-1) unstable; urgency=low
461
462 -- Willi Mann <willi@wm1.at> Fri, 06 Apr 2012 21:11:23 +0200
463
464+logwatch (7.4.0+svn20111221rev79-1ubuntu1) precise; urgency=low
465+
466+ [ Chuck Short ]
467+ * Merge from Debian testing. Remaining changes:
468+ + debian/conrol:
469+ - Depend on postfix rather than exim4.
470+ + debian/dist.conf/services_cron.conf,
471+ debian/dist.conf/logfiles_maillog.conf: Adjust for logrotation
472+
473+ -- Chuck Short <zulcss@ubuntu.com> Mon, 06 Feb 2012 08:59:12 -0500
474+
475 logwatch (7.4.0+svn20111221rev79-1) unstable; urgency=low
476
477 * Imported Upstream version 7.4.0+svn20111221rev79
478@@ -272,6 +645,19 @@ logwatch (7.4.0+svn20111018rev68-1) unstable; urgency=low
479
480 -- Willi Mann <willi@wm1.at> Sat, 05 Nov 2011 20:44:36 +0100
481
482+logwatch (7.4.0+svn20110808rev66-1ubuntu1) precise; urgency=low
483+
484+ * Merged from Debian testing, remaining changes are:
485+ + debian/conrol:
486+ - Depend on postfix rather than exim4.
487+ + debian/dist.conf/services_cron.conf, debian/dist.conf/logfiles_maillog.conf,
488+ debian/dist.conf/logfiles_messages.conf: Adjust for logrotation.
489+ + Dropped:
490+ - debian/patches/lp-809753-comify: No longer needed.
491+ - debian/rules: Dont use quilt anymore logwatch uses source 3.0
492+
493+ -- Chuck Short <zulcss@ubuntu.com> Mon, 14 Nov 2011 09:39:15 -0500
494+
495 logwatch (7.4.0+svn20110808rev66-1) unstable; urgency=low
496
497 * New Upstream snapshot 7.4.0+svn20110808rev66 (closes: #644053)
498@@ -301,6 +687,57 @@ logwatch (7.3.6.cvs20090906-2) unstable; urgency=high
499
500 -- Willi Mann <willi@wm1.at> Wed, 02 Mar 2011 08:57:07 +0100
501
502+logwatch (7.3.6.cvs20090906-1ubuntu5) oneiric; urgency=low
503+
504+ * debian/patches/lp-809753-commify:
505+ - return undef is not defined, instead of error (LP: #809753)
506+ * debian/control:
507+ - build depend on quilt
508+ * debian/rules:
509+ - add dh_quilt_patch and dh_quilt_unpatch
510+
511+ -- Ante Karamatic <ivoks@ubuntu.com> Wed, 17 Aug 2011 19:28:17 +0200
512+
513+logwatch (7.3.6.cvs20090906-1ubuntu4) natty; urgency=low
514+
515+ * SECURITY UPDATE: privileged code execution via badly named logfiles
516+ - scripts/logwatch.pl: encapsulate logfiles in 's and ensure logfile
517+ names don't contain '.
518+ - http://logwatch.svn.sourceforge.net/viewvc/logwatch?view=revision&revision=26
519+ - CVE-2011-1018
520+ * debian/dist.conf/services/cron.conf: adjust to capture cron entries,
521+ thanks to Oliver Brakmann (LP: #719898)
522+ * scripts/services/named: update to upstream version to correctly
523+ capture more information (LP: #584229)
524+ - http://logwatch.svn.sourceforge.net/viewvc/logwatch/scripts/services/named?revision=19
525+ * logwatch.8: replace examples containing obsolete --print argument
526+ with --output=stdout (LP: #564796)
527+
528+ -- Steve Beattie <sbeattie@ubuntu.com> Wed, 02 Mar 2011 13:44:53 +0100
529+
530+logwatch (7.3.6.cvs20090906-1ubuntu3) maverick; urgency=low
531+
532+ * conf/logfiles/*, debian/dist.conf/logfiles/*:
533+ Due to migration to rsyslog, the first rotation is now .1 and not .0
534+ (fixes LP: #606715)
535+
536+ -- Thierry Carrez (ttx) <thierry.carrez@ubuntu.com> Mon, 06 Sep 2010 14:57:14 +0200
537+
538+logwatch (7.3.6.cvs20090906-1ubuntu2) lucid; urgency=low
539+
540+ * conf/html/{footer.html,header.html} Re-add dropped from the
541+ previous version of logtwatch. (LP: #481327)
542+
543+ -- Chuck Short <zulcss@ubuntu.com> Tue, 17 Nov 2009 14:57:58 -0500
544+
545+logwatch (7.3.6.cvs20090906-1ubuntu1) karmic; urgency=low
546+
547+ * Merge from debian unstable (LP: #228917, #391077, #425206, #443252),
548+ remaining changes:
549+ - Use postfix rather than exim4.
550+
551+ -- Kees Cook <kees@ubuntu.com> Mon, 05 Oct 2009 09:20:31 -0700
552+
553 logwatch (7.3.6.cvs20090906-1) unstable; urgency=low
554
555 * New CVS snapshot + postfix-logwatch 1.38.01
556@@ -324,6 +761,16 @@ logwatch (7.3.6.cvs20090906-1) unstable; urgency=low
557
558 -- Willi Mann <willi@wm1.at> Mon, 07 Sep 2009 17:04:43 +0200
559
560+logwatch (7.3.6.cvs20080702-2ubuntu1) jaunty; urgency=low
561+
562+ [ Bhavani Shankar ]
563+ * Merge from debian unstable, remaining changes: LP: #314620
564+ - Use postfix rather than exim4.
565+ - Fix logwatch.pl for servers that have the same hostname as a config
566+ variable (ie: medium). Thanks for Nathan Crawford. (LP: #296349)
567+
568+ -- Mathias Gug <mathiaz@ubuntu.com> Wed, 07 Jan 2009 19:23:58 -0500
569+
570 logwatch (7.3.6.cvs20080702-2) unstable; urgency=low
571
572 * add Michael Tautschnig to changelog of former version, crediting
573@@ -339,6 +786,33 @@ logwatch (7.3.6.cvs20080702-2) unstable; urgency=low
574
575 -- Willi Mann <willi@wm1.at> Sun, 07 Dec 2008 08:20:06 +0100
576
577+logwatch (7.3.6.cvs20080702-1ubuntu4) jaunty; urgency=low
578+
579+ * Fix typo. (LP: #296349)
580+
581+ -- Chuck Short <zulcss@ubuntu.com> Wed, 03 Dec 2008 15:22:33 +0000
582+
583+logwatch (7.3.6.cvs20080702-1ubuntu3) jaunty; urgency=low
584+
585+ * Fix logwatch.pl for servers that have the same hostname as a config
586+ variable (ie: medium). Thanks for Nathan Crawford. (LP: #296349)
587+
588+ -- Chuck Short <zulcss@ubuntu.com> Mon, 10 Nov 2008 16:46:59 +0000
589+
590+logwatch (7.3.6.cvs20080702-1ubuntu2) intrepid; urgency=low
591+
592+ * Corrected FTBFS from the merge by correcting arch from any to all
593+
594+ -- Michael Casadevall <sonicmctails@gmail.com> Fri, 05 Sep 2008 19:20:30 -0400
595+
596+logwatch (7.3.6.cvs20080702-1ubuntu1) intrepid; urgency=low
597+
598+ * Merge from debian unstable, remaining changes:
599+ - Use postfix rather than exim4.
600+ - Update maintainers according to spec.
601+
602+ -- Chuck Short <zulcss@ubuntu.com> Sat, 05 Jul 2008 11:49:54 +0100
603+
604 logwatch (7.3.6.cvs20080702-1) unstable; urgency=medium
605
606 * New upstream CVS snapshot
607@@ -358,6 +832,15 @@ logwatch (7.3.6.cvs20080702-1) unstable; urgency=medium
608
609 -- Willi Mann <willi@wm1.at> Fri, 04 Jul 2008 16:51:36 +0200
610
611+logwatch (7.3.6-1ubuntu1) hardy; urgency=low
612+
613+ * Added patch from Paul Schulz to fix 'pam_unix unknown entries'
614+ for authlog. (LP: #181690)
615+ * Bumped starndards version to 3.7.3
616+ * Use postfix rather than exim4.
617+
618+ -- Chuck Short <zulcss@ubuntu.com> Thu, 21 Feb 2008 08:35:13 -0500
619+
620 logwatch (7.3.6-1) unstable; urgency=low
621
622 * New upstream version:
623@@ -783,3 +1266,4 @@ logwatch (5.0-1) unstable; urgency=low
624 to the logfile(s). That's most likely the problem.
625
626 -- Willi Mann <willi@wm1.at> Wed, 12 Nov 2003 20:14:15 +0100
627+
628diff --git a/debian/control b/debian/control
629index 764bd58..e39f936 100644
630--- a/debian/control
631+++ b/debian/control
632@@ -1,7 +1,8 @@
633 Source: logwatch
634 Section: admin
635 Priority: optional
636-Maintainer: Willi Mann <willi@debian.org>
637+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
638+XSBC-Original-Maintainer: Willi Mann <willi@debian.org>
639 Build-Depends: debhelper (>> 11.0.0~)
640 Standards-Version: 4.5.0
641 Homepage: https://sourceforge.net/projects/logwatch/
642@@ -11,7 +12,8 @@ Vcs-Git: https://salsa.debian.org/debian/logwatch.git
643 Package: logwatch
644 Architecture: all
645 Depends: ${perl:Depends}, ${misc:Depends}, default-mta | mail-transport-agent
646-Recommends: libdate-manip-perl, libsys-cpu-perl, libsys-meminfo-perl
647+Recommends: libdate-manip-perl
648+Suggests: libsys-cpu-perl, libsys-meminfo-perl
649 Description: log analyser with nice output written in Perl
650 Logwatch is a modular log analyser that runs every night
651 and mails you the results. It can also be run from command line.
652diff --git a/debian/patches/0010-zz-zfs-detect-zfs-location.patch b/debian/patches/0010-zz-zfs-detect-zfs-location.patch
653new file mode 100644
654index 0000000..9a74a36
655--- /dev/null
656+++ b/debian/patches/0010-zz-zfs-detect-zfs-location.patch
657@@ -0,0 +1,42 @@
658+From d9bc6c1b096be0c469bcc13dde3d083d52eb580a Mon Sep 17 00:00:00 2001
659+From: Bryce Harrington <bryce@canonical.com>
660+Date: Wed, 7 Apr 2021 13:55:38 -0700
661+Subject: [PATCH] zz-zfs Detect zfs location
662+
663+Some Linux distributions have installed zpool and zfs to /sbin, others
664+to /usr/sbin. Since the -x test does not take PATH into account, the
665+code needs to explicitly check both locations.
666+
667+---
668+ scripts/services/zz-zfs | 16 ++++++++++++----
669+ 1 file changed, 12 insertions(+), 4 deletions(-)
670+
671+Bug: https://sourceforge.net/p/logwatch/bugs/83
672+Ubuntu-Bug: https://bugs.launchpad.net/ubuntu/+source/logwatch/+bug/1880211
673+Last-Updated: 2021-04-07
674+
675+diff --git a/scripts/services/zz-zfs b/scripts/services/zz-zfs
676+index 3d6da9e..6461fd6 100644
677+--- a/scripts/services/zz-zfs
678++++ b/scripts/services/zz-zfs
679+@@ -55,9 +55,14 @@ my $pathto_zfs = $ENV{'pathto_zfs'} || '/usr/sbin/zfs';
680+ my $summary_only = $ENV{'summary_only'} || ($detail < 5);
681+ my $detail_only = $ENV{'detail_only'} || 0;
682+
683+-if (!-x $pathto_zpool) {
684+- # Doesn't support ZFS
685+- exit 0;
686++if (!-x $pathto_zpool || !-x $pathto_zfs) {
687++ if (-x '/sbin/zpool' && -x '/sbin/zfs') {
688++ $pathto_zpool = '/sbin/zpool';
689++ $pathto_zfs = '/sbin/zfs';
690++ } else {
691++ # Doesn't support ZFS
692++ exit 0;
693++ }
694+ }
695+
696+ if ( $debug >= 5 ) {
697+--
698+2.25.1
699+
700diff --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
701new file mode 100644
702index 0000000..9154652
703--- /dev/null
704+++ b/debian/patches/0014-zz-sys-Suppress-warnings-if-Sys-CPU-or-Sys-MemInfo-a.patch
705@@ -0,0 +1,52 @@
706+From 488a232634c1d383f4ec356d776b4ee292e48b0a Mon Sep 17 00:00:00 2001
707+From: Bryce Harrington <bryce@canonical.com>
708+Date: Wed, 19 Aug 2020 04:39:22 +0000
709+Subject: [PATCH 04/10] zz-sys: Suppress warnings if Sys::CPU or Sys::MemInfo
710+ are missing
711+
712+Neither of these perl modules are installed by default with a logwatch
713+installation, by intention, so the missing module warnings are
714+inappropriate. These modules only provide a minor amount of detail when
715+installed, and their information is volatile which can trigger false
716+test failures in some cases.
717+
718+Fixes: https://bugs.launchpad.net/ubuntu/+source/logwatch/+bug/1890749
719+Signed-off-by: Bryce Harrington <bryce@canonical.com>
720+---
721+ scripts/services/zz-sys | 8 ++++----
722+ 1 file changed, 4 insertions(+), 4 deletions(-)
723+
724+Origin: vendor
725+Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/logwatch/+bug/1890749
726+Forwarded: not-needed
727+Last-Updated: 2020-08-20
728+
729+diff --git a/scripts/services/zz-sys b/scripts/services/zz-sys
730+index 39f94ce..6bbf3fe 100644
731+--- a/scripts/services/zz-sys
732++++ b/scripts/services/zz-sys
733+@@ -35,8 +35,8 @@
734+
735+ eval "require Sys::CPU";
736+ if ($@) {
737+- print STDERR "No Sys::CPU module installed. To install, execute the command:\n";
738+- print STDERR " perl -MCPAN -e 'install Sys::CPU' \n\n";
739++ # Sys::CPU (and Sys::MemInfo) are intentionally not installed on Ubuntu.
740++ # Silently skip this if not present.
741+ } else {
742+ import Sys::CPU;
743+ print " CPU: " . Sys::CPU::cpu_count() . " " . Sys::CPU::cpu_type() . " at " . Sys::CPU::cpu_clock() . "MHz\n";
744+@@ -52,8 +52,8 @@ print " Release: $OStitle $release\n";
745+
746+ eval "require Sys::MemInfo";
747+ if ($@) {
748+- print STDERR "No Sys::MemInfo module installed. To install, execute the command:\n";
749+- print STDERR " perl -MCPAN -e 'install Sys::MemInfo' \n\n";
750++ # Sys::CPU (and Sys::MemInfo) are intentionally not installed on Ubuntu.
751++ # Silently skip this if not present.
752+ } else {
753+ import Sys::MemInfo qw(totalmem freemem totalswap freeswap);
754+ my $swapused = &totalswap - &freeswap;
755+--
756+2.27.0
757+
758diff --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
759new file mode 100644
760index 0000000..83abeb3
761--- /dev/null
762+++ b/debian/patches/0015-pam_unix-Ignore-issues-about-etc-securetty-being-mis.patch
763@@ -0,0 +1,44 @@
764+From 1b471a45e1a0bb55302d65e3cffb72fa0ea66391 Mon Sep 17 00:00:00 2001
765+From: Bryce Harrington <bryce@canonical.com>
766+Date: Wed, 19 Aug 2020 04:43:25 +0000
767+Subject: [PATCH 05/10] pam_unix: Ignore issues about /etc/securetty being
768+ missing
769+
770+Fixes: https://bugs.launchpad.net/ubuntu/focal/+source/logwatch/+bug/1890751
771+Signed-off-by: Bryce Harrington <bryce@canonical.com>
772+---
773+ scripts/services/pam_unix | 5 +++++
774+ scripts/services/sudo | 3 +++
775+ 2 files changed, 8 insertions(+)
776+
777+Origin: vendor
778+Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/focal/+source/logwatch/+bug/1890751
779+Forwarded: https://sourceforge.net/p/logwatch/git/merge-requests/46/
780+Last-Updated: 2020-08-20
781+
782+--- a/scripts/services/pam_unix
783++++ b/scripts/services/pam_unix
784+@@ -73,6 +73,11 @@
785+ } else {
786+ next;
787+ }
788++ # handle all missing /etc/securetty warnings
789++ if ($line =~ /Couldn.t open \/etc\/securetty/) {
790++ # Ignore - see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=674857#25
791++ next;
792++ }
793+ # handle password expiring globally
794+ if ($line =~ /^password for user (.+) will expire in (\d+) days/) {
795+ $data{"all"}{'Password Expiring'}{"$1 in $2 days"}++;
796+--- a/scripts/services/sudo
797++++ b/scripts/services/sudo
798+@@ -72,6 +72,9 @@
799+ or $ThisLine =~ /pam_systemd\(sudo:session\): Cannot create session: Already (running in|occupied by) a session/
800+ ) {
801+ # Ignore
802++ # handle all missing /etc/securetty warnings
803++ } elsif ($ThisLine =~ /pam_unix\(sudo:auth\): Couldn.t open \/etc\/securetty/) {
804++ # Ignore - see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=674857#25
805+ } elsif ($ThisLine =~ /(.+): conversation failed/) {
806+ $ConFailed{$1}++;
807+ } elsif ( ($user, $error, $tty, $dir, $euser, $egroup, $cmd, $args) = $ThisLine =~ m/^\s*(\S+) : ([^=]+; )?(?:TTY=(\S+) ; )?PWD=(.*?) ; USER=(\S+) ;(?: GROUP=(\S+) ;)? COMMAND=(\S+)( ?.*)/) {
808diff --git a/debian/patches/series b/debian/patches/series
809index bd7d188..f691691 100644
810--- a/debian/patches/series
811+++ b/debian/patches/series
812@@ -3,3 +3,8 @@
813 0003-Ignore-ecryptfs-automounting-messages-in-cron.patch
814 0004-scripts-mdadm-Fix-parsing-of-mdadm.conf-handle-ignor.patch
815 0005-clam-update-Fix-encoding.patch
816+
817+# Ubuntu patches
818+0010-zz-zfs-detect-zfs-location.patch
819+0014-zz-sys-Suppress-warnings-if-Sys-CPU-or-Sys-MemInfo-a.patch
820+0015-pam_unix-Ignore-issues-about-etc-securetty-being-mis.patch
821diff --git a/debian/tests/apparmor-unmatched-entries b/debian/tests/apparmor-unmatched-entries
822new file mode 100644
823index 0000000..4bfd784
824--- /dev/null
825+++ b/debian/tests/apparmor-unmatched-entries
826@@ -0,0 +1,41 @@
827+#!/bin/bash
828+
829+######################################################
830+### no apparmor STATUS entries marked as unmatched ###
831+######################################################
832+
833+set -eo pipefail
834+
835+LOGWATCH_CONF_FILE="/etc/logwatch/conf/logwatch.conf"
836+NEED_ERASING=1
837+
838+clear_logwatch_conf_file(){
839+ if [ "${NEED_ERASING}" -eq "0" ]; then
840+ if [ -e "${LOGWATCH_CONF_FILE}".test.bak ]; then
841+ cp "${LOGWATCH_CONF_FILE}".test.bak "${LOGWATCH_CONF_FILE}"
842+ rm "${LOGWATCH_CONF_FILE}".test.bak
843+ else
844+ rm "${LOGWATCH_CONF_FILE}"
845+ fi
846+ fi
847+}
848+
849+trap ' clear_logwatch_conf_file ' 0 INT QUIT ABRT PIPE TERM
850+
851+cp "$(dirname "${0}")"/data/unmatched-entries-apparmor_kern.log "${AUTOPKGTEST_TMP}"/kern.log
852+
853+if ! [ -f "${LOGWATCH_CONF_FILE}" ] ; then
854+ echo "AppendVarLogToLogDirs = 0" >> "${LOGWATCH_CONF_FILE}"
855+elif ! grep -q "^AppendVarLogToLogDirs" "${LOGWATCH_CONF_FILE}" ; then
856+ cp "${LOGWATCH_CONF_FILE}" "${LOGWATCH_CONF_FILE}".test.bak
857+ echo "AppendVarLogToLogDirs = 0" >> "${LOGWATCH_CONF_FILE}"
858+else
859+ sed -i.test.bak 's/^\(AppendVarLogToLogDirs = \).*/\10/' "${LOGWATCH_CONF_FILE}"
860+fi
861+NEED_ERASING=0
862+
863+if logwatch --detail High --range all --service kernel --logdir "${AUTOPKGTEST_TMP}" --output stdout | grep -qF "**Unmatched Entries**"; then
864+ exit 1
865+else
866+ exit 0
867+fi
868diff --git a/debian/tests/basic-checks b/debian/tests/basic-checks
869new file mode 100755
870index 0000000..dcec7b9
871--- /dev/null
872+++ b/debian/tests/basic-checks
873@@ -0,0 +1,34 @@
874+#!/bin/bash
875+
876+############################################
877+### Check main installation requirements ###
878+############################################
879+
880+set -e
881+
882+SHAREDIR="/usr/share/logwatch"
883+
884+# Config file
885+echo "Checking config file present"
886+test -e "${SHAREDIR}"/dist.conf/logwatch.conf
887+
888+# Services
889+echo "Checking service configs are installed"
890+test -d "${SHAREDIR}"/dist.conf/services
891+services_conf_files=("${SHAREDIR}"/dist.conf/services/*.conf)
892+num_scf=${#services_conf_files[@]}
893+echo "Service files are = ${num_scf}"
894+test "${num_scf}" -gt "0"
895+
896+# Logfiles
897+echo "Checking logs configs are installed"
898+test -d "$SHAREDIR/dist.conf/logfiles"
899+logfiles_conf_files=("${SHAREDIR}"/dist.conf/logfiles/*.conf)
900+num_lcf=${#logfiles_conf_files[@]}
901+echo "Logfiles are = ${num_lcf}"
902+test "${num_lcf}" -gt "0"
903+
904+# Script
905+echo "Checking binary is present and its usefulness"
906+test -e /usr/sbin/logwatch
907+logwatch --version
908diff --git a/debian/tests/control b/debian/tests/control
909new file mode 100644
910index 0000000..feefe91
911--- /dev/null
912+++ b/debian/tests/control
913@@ -0,0 +1,15 @@
914+Tests: basic-checks
915+Depends: @
916+Restrictions: superficial
917+
918+Tests: syntax-check
919+Depends: @, liburi-perl
920+Restrictions: allow-stderr
921+
922+Tests: detail su-l-check apparmor-unmatched-entries
923+Depends: @
924+Restrictions: needs-root
925+
926+Tests: packages-and-report
927+Depends: @
928+Restrictions:needs-root isolation-container
929diff --git a/debian/tests/data/su-l b/debian/tests/data/su-l
930new file mode 100644
931index 0000000..4687e20
932--- /dev/null
933+++ b/debian/tests/data/su-l
934@@ -0,0 +1,2 @@
935+Jul 27 15:29:50 test-logwatch su: pam_unix(su-l:session): session opened for user root by ubuntu(uid=0)
936+Jul 27 23:22:22 test-logwatch su: pam_unix(su-l:session): session closed for user root
937diff --git a/debian/tests/data/unmatched-entries-apparmor_kern.log b/debian/tests/data/unmatched-entries-apparmor_kern.log
938new file mode 100644
939index 0000000..57a535d
940--- /dev/null
941+++ b/debian/tests/data/unmatched-entries-apparmor_kern.log
942@@ -0,0 +1,14 @@
943+Aug 17 11:59:06 stirling kernel: [2731097.177750] audit: type=1400 audit(1462209116.753:18): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/sbin/named" pid=22094 comm="apparmor_parser"
944+Aug 17 11:59:06 stirling kernel: [2731097.177750] audit: type=1400 audit(1462209262.641:2): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/bin/freshclam" pid=1760 comm="apparmor_parser"
945+Aug 17 11:59:06 stirling kernel: [2731097.177750] audit: type=1400 audit(1462209262.657:3): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/sbin/dhclient" pid=1759 comm="apparmor_parser"
946+Aug 17 11:59:06 stirling kernel: [2731097.177750] audit: type=1400 audit(1462209262.657:4): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/NetworkManager/nm-dhcp-client.action" pid=1759 comm="apparmor_parser"
947+Aug 17 11:59:06 stirling kernel: [2731097.177750] audit: type=1400 audit(1462209262.657:5): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/NetworkManager/nm-dhcp-helper" pid=1759 comm="apparmor_parser"
948+Aug 17 11:59:06 stirling kernel: [2731097.177750] audit: type=1400 audit(1462209262.657:6): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/connman/scripts/dhclient-script" pid=1759 comm="apparmor_parser"
949+Aug 17 11:59:06 stirling kernel: [2731097.177750] audit: type=1400 audit(1462209262.657:7): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/sbin/clamd" pid=1765 comm="apparmor_parser"
950+Aug 17 11:59:06 stirling kernel: [2731097.177750] audit: type=1400 audit(1462209262.673:8): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/sbin/cups-browsed" pid=1767 comm="apparmor_parser"
951+Aug 17 11:59:06 stirling kernel: [2731097.177750] audit: type=1400 audit(1462209262.677:9): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/cups/backend/cups-pdf" pid=1768 comm="apparmor_parser"
952+Aug 17 11:59:06 stirling kernel: [2731097.177750] audit: type=1400 audit(1462209262.677:10): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/sbin/cupsd" pid=1768 comm="apparmor_parser"
953+Aug 17 11:59:06 stirling kernel: [2731097.177750] audit: type=1400 audit(1462209262.677:11): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/sbin/cupsd//third_party" pid=1768 comm="apparmor_parser"
954+Aug 17 11:59:06 stirling kernel: [2731097.177750] audit: type=1400 audit(1597690746.037:8074): apparmor="STATUS" operation="profile_remove" profile="unconfined" name="lxd-open-iscsi-review-mp389234-groovy_</var/snap/lxd/common/lxd>" pid=1695060 comm="apparmor_parser"
955+Aug 17 15:23:04 stirling kernel: [2743335.144325] audit: type=1400 audit(1597702984.306:8075): apparmor="STATUS" operation="profile_load" profile="snap.multipass.multipassd" name="multipass.qemu-img" pid=1712259 comm="apparmor_parser"
956+Aug 17 15:23:04 stirling kernel: [2743335.189665] audit: type=1400 audit(1597702984.350:8076): apparmor="STATUS" operation="profile_remove" profile="snap.multipass.multipassd" name="multipass.qemu-img" pid=1712263 comm="apparmor_parser"
957diff --git a/debian/tests/detail b/debian/tests/detail
958new file mode 100644
959index 0000000..c690f4a
960--- /dev/null
961+++ b/debian/tests/detail
962@@ -0,0 +1,16 @@
963+#!/bin/bash
964+
965+##################################
966+### Check detail option output ###
967+##################################
968+
969+set -eo pipefail
970+
971+low="$(logwatch --detail Low --range all --service all --output stdout | wc -l)"
972+high="$(logwatch --detail High --range all --service all --output stdout | wc -l)"
973+med="$(logwatch --detail Med --range all --service all --output stdout | wc -l)"
974+
975+echo "Checking that Low detail is less than Med detail"
976+test "${low}" -lt "${med}"
977+echo "Checking that Med detail is less High detail"
978+test "${med}" -lt "${high}"
979diff --git a/debian/tests/packages-and-report b/debian/tests/packages-and-report
980new file mode 100644
981index 0000000..f367e68
982--- /dev/null
983+++ b/debian/tests/packages-and-report
984@@ -0,0 +1,36 @@
985+#!/bin/bash
986+
987+#############################
988+### Check services output ###
989+#############################
990+
991+set -eo pipefail
992+
993+check_package_report_present(){
994+
995+ local package="${1}"
996+ local key="${2}"
997+ local service="${3}"
998+
999+ if ! dpkg-query -s "${package}" >/dev/null 2>&1; then
1000+ apt install -y "${package}" >/dev/null 2>&1
1001+ fi
1002+
1003+ PATTERN="- ${key}"
1004+ section_exists="$(logwatch --detail High --range all --service "${service}" --output stdout | awk -v var="${PATTERN}" '$0 ~ var && position{print NR-position-1} $0 ~ var {position=NR}')"
1005+
1006+ echo "Number of lines for the report: ${section_exists}"
1007+ if [ -z "${section_exists}" ]; then
1008+ exit 1
1009+ fi
1010+
1011+}
1012+
1013+packages=("openssh-server")
1014+keys=("SSHD")
1015+service=("sshd")
1016+
1017+for((i=0;i<"${#packages[@]}";i++)); do
1018+ echo "Checking section ${keys[${i}]} exists in logwatch report for package ${packages[${i}]}"
1019+ check_package_report_present "${packages[${i}]}" "${keys[${i}]}" "${service[${i}]}"
1020+done
1021diff --git a/debian/tests/su-l-check b/debian/tests/su-l-check
1022new file mode 100755
1023index 0000000..f9cdc56
1024--- /dev/null
1025+++ b/debian/tests/su-l-check
1026@@ -0,0 +1,37 @@
1027+#!/bin/bash
1028+
1029+##################################
1030+### Check detection su -l ###
1031+##################################
1032+
1033+set -eo pipefail
1034+
1035+LOGWATCH_CONF_FILE="/etc/logwatch/conf/logwatch.conf"
1036+NEED_ERASING=1
1037+
1038+clear_logwatch_conf_file(){
1039+ if [ "${NEED_ERASING}" -eq "0" ]; then
1040+ if [ -e "${LOGWATCH_CONF_FILE}".test.bak ]; then
1041+ cp "${LOGWATCH_CONF_FILE}".test.bak "${LOGWATCH_CONF_FILE}"
1042+ rm "${LOGWATCH_CONF_FILE}".test.bak
1043+ else
1044+ rm "${LOGWATCH_CONF_FILE}"
1045+ fi
1046+ fi
1047+}
1048+
1049+trap 'clear_logwatch_conf_file' 0 INT QUIT ABRT PIPE TERM
1050+
1051+cp "$(dirname "${0}")"/data/su-l "${AUTOPKGTEST_TMP}"/auth.log
1052+
1053+if ! [ -e "${LOGWATCH_CONF_FILE}" ] ; then
1054+ echo "AppendVarLogToLogDirs = 0" >> "${LOGWATCH_CONF_FILE}"
1055+elif ! grep -q "^AppendVarLogToLogDirs" "${LOGWATCH_CONF_FILE}" ; then
1056+ cp "${LOGWATCH_CONF_FILE}" "${LOGWATCH_CONF_FILE}".test.bak
1057+ echo "AppendVarLogToLogDirs = 0" >> "${LOGWATCH_CONF_FILE}"
1058+else
1059+ sed -i.test.bak 's/^\(AppendVarLogToLogDirs = \).*/\10/' "${LOGWATCH_CONF_FILE}"
1060+fi
1061+NEED_ERASING=0
1062+
1063+logwatch --detail High --range all --service pam_unix --logdir "${AUTOPKGTEST_TMP}" --output stdout | grep -qF "ubuntu -> root"
1064diff --git a/debian/tests/syntax-check b/debian/tests/syntax-check
1065new file mode 100755
1066index 0000000..b90af37
1067--- /dev/null
1068+++ b/debian/tests/syntax-check
1069@@ -0,0 +1,16 @@
1070+#!/bin/bash
1071+
1072+################################
1073+### Check perl syntax status ###
1074+################################
1075+
1076+set -e
1077+
1078+SHAREDIR="/usr/share/logwatch"
1079+
1080+echo "Checking script's perl syntax"
1081+
1082+while IFS= read -r f
1083+do
1084+ PERL5LIB="${SHAREDIR}"/lib perl -c "${f}"
1085+done < <(grep -Erl "\#\!.*perl" "${SHAREDIR}"/scripts/)

Subscribers

People subscribed via source and target branches