Bug 33045 - Shorewall configs have wrong LOGFILE parameter: /var/log/messages does not exist
Summary: Shorewall configs have wrong LOGFILE parameter: /var/log/messages does not exist
Status: NEW
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 9
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: All Packagers
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-01 23:15 CEST by Jybz
Modified: 2024-04-02 21:29 CEST (History)
0 users

See Also:
Source RPM: shorewall-5.2.8-4.mga9.src.rpm
CVE:
Status comment:


Attachments

Description Jybz 2024-04-01 23:15:24 CEST
Hello,

shorewall configuration files /etc/shorewall/shorewall.conf and  /etc/shorewall6/shorewall6.conf has this line:
> LOGFILE=/var/log/messages

this file is not existing in Mageia anymore.

From the configuration https://shorewall.org/manpages/shorewall.conf.html, it should be:
> LOGFILE=systemd

(I wasn't able yet to log anything...)
Comment 1 Lewis Smith 2024-04-02 21:29:17 CEST
Thank you for the report. It is curious that this has not surfaced before.
My system certainly does not have /var/log/messages, but I do not have shorewall running.

LOGFILE=[pathname|systemd]
    This parameter tells the /sbin/shorewall program where to look for Shorewall messages when processing the dump, logwatch, show log, and hits commands.
*If not assigned or if assigned an empty value, /var/log/messages is assumed.*
For further information, see shorewall-logging(8). Beginning with Shorewall 5.0.10.1, you may specify systemd to use journelctl -r to read the log.

Note that you *may* specify systemd, it is not obligatory.
/var/log/messages is legitimate if it exists. Should shorewall installation create it if necessary?
Could shorewall itself use the equivalent of >> to append to that file, which I recall creates it if it does not exist?

/var/log/messages does not seem to exist for *any* of our current packages.
"this file is not existing in Mageia anymore" indeed.

BTAIM This looks like a packaging problem. Assigning this globally, needs some discussion about what to do.

Source RPM: shorewall => shorewall-5.2.8-4.mga9.src.rpm
Assignee: bugsquad => pkg-bugs
Summary: wrong logging mechanism => Shorewall configs have wrong LOGFILE parameter: /var/log/messages does not exist


Note You need to log in before you can comment on or make changes to this bug.