Bug 1994748

Summary: [RFE] Requesting a systemd timer unit for aide check configuration
Product: Red Hat Enterprise Linux 8 Reporter: Daniel Chong <dchong>
Component: aideAssignee: Radovan Sroka <rsroka>
Status: CLOSED MIGRATED QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: low Docs Contact:
Priority: unspecified    
Version: 8.4CC: dapospis, ravpatil
Target Milestone: betaKeywords: FutureFeature, MigratedToJIRA, Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-09-19 17:32:36 UTC Type: Story
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Daniel Chong 2021-08-17 20:16:42 UTC
Description of problem:

Is it possible to add a timer for aide configuration(aide --check) in RHEL8? 

Version-Release number of selected component (if applicable):


How reproducible:
N/A

Steps to Reproduce:
1. 
2.
3.

Actual results:


Expected results:

A customer wants to have a pre-configured timer for aide check configuration instead of configuring a job via cron. 

Additional info:

When aide --check runs on a command line, it always returns the exit code 5 even though it ran successfully. I created aide.service and aide.timer unit files. When timer triggers, it starts aide check, however, it returns exit code 5 so the status aide.service shows as failed on a successful attempt.

Comment 2 Radovan Sroka 2022-12-13 08:44:35 UTC
(In reply to Daniel Chong from comment #0)
> Description of problem:
> 
> Is it possible to add a timer for aide configuration(aide --check) in RHEL8? 
> 
> Version-Release number of selected component (if applicable):
> 
> 
> How reproducible:
> N/A
> 
> Steps to Reproduce:
> 1. 
> 2.
> 3.
> 
> Actual results:
> 
> 
> Expected results:
> 
> A customer wants to have a pre-configured timer for aide check configuration
> instead of configuring a job via cron. 
> 
> Additional info:
> 
> When aide --check runs on a command line, it always returns the exit code 5
> even though it ran successfully. I created aide.service and aide.timer unit
> files. When timer triggers, it starts aide check, however, it returns exit
> code 5 so the status aide.service shows as failed on a successful attempt.

I think that you can encapsulate aide with a bash script.

Comment 7 Radovan Sroka 2023-08-30 09:34:12 UTC
Since there is a workaround for aide to discard return value when running via crond. I would like to close the bugzilla. What do you think?

Comment 8 RHEL Program Management 2023-09-19 17:31:55 UTC
Issue migration from Bugzilla to Jira is in process at this time. This will be the last message in Jira copied from the Bugzilla bug.

Comment 9 RHEL Program Management 2023-09-19 17:32:36 UTC
This BZ has been automatically migrated to the issues.redhat.com Red Hat Issue Tracker. All future work related to this report will be managed there.

Due to differences in account names between systems, some fields were not replicated.  Be sure to add yourself to Jira issue's "Watchers" field to continue receiving updates and add others to the "Need Info From" field to continue requesting information.

To find the migrated issue, look in the "Links" section for a direct link to the new issue location. The issue key will have an icon of 2 footprints next to it, and begin with "RHEL-" followed by an integer.  You can also find this issue by visiting https://issues.redhat.com/issues/?jql= and searching the "Bugzilla Bug" field for this BZ's number, e.g. a search like:

"Bugzilla Bug" = 1234567

In the event you have trouble locating or viewing this issue, you can file an issue by sending mail to rh-issues. You can also visit https://access.redhat.com/articles/7032570 for general account information.

Comment 10 Red Hat Bugzilla 2024-01-22 04:25:08 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days