Bug 1657360 - missing dependencies on /bin/mail and /usr/bin/whois
Summary: missing dependencies on /bin/mail and /usr/bin/whois
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: psad
Version: 29
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Dominik 'Rathann' Mierzejewski
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-12-07 18:48 UTC by Dominik 'Rathann' Mierzejewski
Modified: 2019-02-25 12:52 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2019-02-25 12:52:48 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Dominik 'Rathann' Mierzejewski 2018-12-07 18:48:04 UTC
Description of problem:
psad is configured to use /usr/bin/mail but does not depend on it:
$ egrep '/bin/(mail|whois)' /etc/psad/psad.conf 
mailCmd          /bin/mail
whoisCmd         /usr/bin/whois;
$ rpm -qR psad | egrep 'mail|whois'
$

Version-Release number of selected component (if applicable):
psad-2.4.6-1.fc29.x86_64

How reproducible:
Always

Steps to Reproduce:
1. dnf install psad
2. dnf remove jwhois mailx
3. systemctl start psad
4. journalctl -u psad --no-hostname

Actual results:
Dec 07 19:29:40 systemd[1]: Starting The Port Scan Attack Detector (psad)...
Dec 07 19:29:41 psad[8647]: [*] Could not find mail, edit /etc/psad/psad.conf at /usr/sbin/psad line 11075.
Dec 07 19:29:41 systemd[1]: psad.service: Control process exited, code=exited status=2
Dec 07 19:29:41 systemd[1]: psad.service: Failed with result 'exit-code'.
Dec 07 19:29:41 systemd[1]: Failed to start The Port Scan Attack Detector (psad).

Dec 07 19:43:58 systemd[1]: Starting The Port Scan Attack Detector (psad)...
Dec 07 19:43:59 psad[8882]: [*] Could not find whois, edit /etc/psad/psad.conf at /usr/sbin/psad line 11075.
Dec 07 19:43:59 systemd[1]: psad.service: Control process exited, code=exited status=2
Dec 07 19:43:59 systemd[1]: psad.service: Failed with result 'exit-code'.
Dec 07 19:43:59 systemd[1]: Failed to start The Port Scan Attack Detector (psad).


Expected results:
Successful service launch.

Comment 1 Dominik 'Rathann' Mierzejewski 2019-02-25 12:52:48 UTC
Actually they are in Recommends: and I'd rather not make them hard deps.


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