RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1267143 - aide and prelink false alarms
Summary: aide and prelink false alarms
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: aide
Version: 7.1
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Daniel Kopeček
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-09-29 06:38 UTC by Karel Srot
Modified: 2016-05-03 11:42 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 751464
Environment:
Last Closed: 2016-05-03 11:42:43 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Karel Srot 2015-09-29 06:38:06 UTC
present also on RHEL-7

+++ This bug was initially created as a clone of Bug #751464 +++

Description of problem:

When aide calls "prelink --verify" on a binary, the parent directory's mtime is changed (because prelink --verify writes a temporary file into the parent directory, and then deletes it)

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

0.14-3  (note, I actually used the SRPM to back-port this version of aide to RHEL 5)

How reproducible:

Always

Steps to Reproduce:
1. build the aide database
2. run the prelinker
3. run an aide check -- you'll see various directories reported as changed
  
Actual results:

many directories containing binaries will be reported as changed

Expected results:

Nothing should be reported as changed

Additional info:

--- Additional comment from Jijesh Kalliyat on 2012-07-02 05:26:37 EDT ---

As per my understanding, the root cause of this issue is, When aide calls "prelink --verify" on a binary, the parent directory's mtime is changed because prelink --verify writes a temporary file into the parent directory, and then deletes it. Do you think the bug should be against prelink if prelink is creating tmp files outside of /tmp or /var/tmp ? 

--- Additional comment from Kevin Clevenger on 2012-08-23 16:36:27 EDT ---

After some experimentation it seems that even if the aide database is created after prelink is run aide --check will always be dirty.

/etc/sysconfig/prelink
  PRELINKING=no
prelink -ua
aide --init
cp /var/lib/aide/aide.db.new.gz /var/lib/aide/aide.db.gz
aide --check
* aide check is clean
-rwxr-xr-x. 1 root root 903240 Aug 23 09:40 /bin/bash

/etc/sysconfig/prelink
  PRELINKING=no
prelink -va
aide --init
cp /var/lib/aide/aide.db.new.gz /var/lib/aide/aide.db.gz
aide --check
* aide check is dirty
-rwxr-xr-x. 1 root root 938736 Aug 23 09:40 /bin/bash

...
Directory: /bin
  Mtime    : 2012-08-23 21:44:39              , 2012-08-23 21:45:40
  Ctime    : 2012-08-23 21:44:39              , 2012-08-23 21:45:40

Directory: /usr/lib64
  Mtime    : 2012-08-23 21:44:38              , 2012-08-23 21:45:19
  Ctime    : 2012-08-23 21:44:38              , 2012-08-23 21:45:19


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