Your message dated Mon, 19 Sep 2022 20:25:46 +0000
with message-id <[email protected]>
and subject line Bug#991142: fixed in syslog-ng 3.38.1-3
has caused the Debian Bug report #991142,
regarding f_debug side effects
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
991142: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=991142
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: syslog-ng-core
Version: 3.19.1-5

Hello,
the standard syslog-ng.conf contains (among others) these lines:

filter f_dbg { level(debug); };

filter f_debug { level(debug) and not facility(auth, authpriv, news, mail); };

filter f_auth { facility(auth, authpriv) and not filter(f_debug); };

filter f_mail { facility(mail) and not filter(f_debug); };
filter f_news { facility(news) and not filter(f_debug); };

log { source(s_src); filter(f_auth); destination(d_auth); };

log { source(s_src); filter(f_mail); destination(d_mail); };

log { source(s_src); filter(f_debug); destination(d_debug); };


...the f_debug includes debug level and excludes facilities auth,
authpriv, news and mail, which is good for d_debug destination, BUT,
because of excluding those facilities, the "not filter(f_debug)" does NOT 
exclude debug
priority for any of them:

mail.debug:
filter(f_debug) = false
not filter(f_debug) = true

Thus, debug priority is not excluded in d_auth and d_mail destinations,
while it was apparently intended to be filtered out.

we can test it by running:

# logger  -p mail.debug mail debug
# logger  -p auth.debug auth debug

# grep debug auth.log mail.log
auth.log:Jul 15 16:22:51 mail root[29022]: auth debug
mail.log:Jul 15 16:07:25 mail root[26770]: mail debug


I believe that it can be fixed by either:

a) removing "not filter(f_debug);" from f_auth, f_mail and f_news definitions

b) using "not filter(f_dbg)" instead of "not filter(f_debug)" in log
  definitions

c) moving "not facility(auth, authpriv, news, mail)" to definicion of f_dbg
 and using f_dbg for d_debug


with variant a) the functionality would stay the same but less misleading

I personally would prefer variant c) as I find it cleanest and easiest to
understand and debug.


--
Matus UHLAR - fantomas, [email protected] ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Linux is like a teepee: no Windows, no Gates and an apache inside...

--- End Message ---
--- Begin Message ---
Source: syslog-ng
Source-Version: 3.38.1-3
Done: SZALAY Attila <[email protected]>

We believe that the bug you reported is fixed in the latest version of
syslog-ng, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
SZALAY Attila <[email protected]> (supplier of updated syslog-ng package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Mon, 19 Sep 2022 16:54:27 +0100
Source: syslog-ng
Architecture: source
Version: 3.38.1-3
Distribution: unstable
Urgency: medium
Maintainer: syslog-ng maintainers 
<[email protected]>
Changed-By: SZALAY Attila <[email protected]>
Closes: 878974 991142 1018647
Changes:
 syslog-ng (3.38.1-3) unstable; urgency=medium
 .
   [ Attila Szalay ]
   * Fix process check in chroot when init script is used to control syslog-ng
     (Closes: #878974)
 .
   [ Debian Janitor ]
   * Remove constraints unnecessary since buster (oldstable)
 .
   [ Attila Szalay ]
   * Fix debug filter in default syslog config file (Closes: #991142)
   * Remove nose dependency (Closes: #1018647)
   * Remove syslog-ng-module-extra from module list
Checksums-Sha1:
 34c5a0638cd001a6b1c214e82ca1ff37dfb50787 4350 syslog-ng_3.38.1-3.dsc
 f2fd66325ac4619c6bef4fe64375ece02f73ab0b 41612 syslog-ng_3.38.1-3.debian.tar.xz
 2d3efa07a002fe5ccea7d8b5efa5f3fd17750b30 17843 
syslog-ng_3.38.1-3_amd64.buildinfo
Checksums-Sha256:
 8bbbc40490c2ee1905947253341a71fdc1d5e13f93aba425dfdd697c5a832a1c 4350 
syslog-ng_3.38.1-3.dsc
 114d6b5fb2d622496bde0135c3ee3e55cfeba168c2125183f4f55eef12147dfb 41612 
syslog-ng_3.38.1-3.debian.tar.xz
 00032753a465fd142fd4b3f3e564681de6db2d29dc5088d241dcf577f8e860e7 17843 
syslog-ng_3.38.1-3_amd64.buildinfo
Files:
 56a09c1bf2729ae8c59f4555d0ffe7cd 4350 admin optional syslog-ng_3.38.1-3.dsc
 8696debacf921e6e8c589d14f6dbcb03 41612 admin optional 
syslog-ng_3.38.1-3.debian.tar.xz
 f8f01847c322da2541fbd777daefec74 17843 admin optional 
syslog-ng_3.38.1-3_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJEBAEBCgAuFiEEDLxdlTMbVcF2xVjk+A0hGpn97vgFAmMokoQQHHNhc2FAZGVi
aWFuLm9yZwAKCRD4DSEamf3u+NGDD/4i+/Fc5zFf3MeEtWNFuzme7UwYUvd9mdRP
EqXLUncoQc5AEzdwSLSDPwdqlgbGpZ82yuG0oKttG2qgc50Ms8eqpEhkLMo1bCL7
I70jUQuqRQfLrOoYwBfvPfkVGU1RjoBEqk/zrbkMCmqShIX74F3uPm/yCOEBHDC7
ea8Dm3HENjslgpZLiPtm+wpwVidCNx1a3vjHWJMv3eKnLUC1szdZm8anRQdh3jxe
ZkwEJBtNJ7HbV1Xtyv84IweZGn1z1YP0LR0oSYEbF4K4eGXHXu9GHjYZR+4Uwkgo
9C+MSbRUhXL7phyA3XpVn23sa1Zyn31Cnrj5BGQthwHb8ViIcXr3SUw8fW9GPKTq
Y8im0aOs3SHk1IXq5CGZKt1QCIPiUhBxzomrhc/dCyZ9bO7tRjD8LNpJ5b8dlEl2
59OoK4f0C59hlGamjNW/qz4BK0+LRzSA6ywFDZv9hZ8GU+LkTTvetx3knMyTBHwR
4+gZYpjdOm+vpI8ZMu5h9kZZWIF+n6Eqn6moZCn8FoAGLDIoHltkpMM8YiLJ8MQF
lquINiAyPD3AE0A1WSAnMPjwyQs65GPUElmNyHWyBgDa8p9koSF7ldfCL8aYbVEK
Al4/EAV2c6jixNlfccHsg3teTdZak15s3uh262ou2Jahy/IbFl2T1iij8KxgbyCQ
q2ybX7pPRw==
=AVrB
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to