This bug has been migrated to another issue tracking site. It has been closed here and may no longer be being monitored.

If you would like to get updates for this issue, or to participate in it, you may do so at Red Hat Issue Tracker .
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 2165013 - aide excludes everything under specified directory even when a pattern matches
Summary: aide excludes everything under specified directory even when a pattern matches
Keywords:
Status: CLOSED MIGRATED
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: aide
Version: 8.7
Hardware: All
OS: All
high
high
Target Milestone: rc
: ---
Assignee: Radovan Sroka
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-01-27 11:28 UTC by Renaud Métrich
Modified: 2023-08-16 15:18 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-08-16 15:18:46 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker   RHEL-1382 0 None None None 2023-08-16 15:18:45 UTC
Red Hat Issue Tracker RHELPLAN-146689 0 None None None 2023-01-27 11:29:39 UTC
Red Hat Issue Tracker SECENGSP-4996 0 None None None 2023-01-27 11:29:42 UTC

Description Renaud Métrich 2023-01-27 11:28:31 UTC
Description of problem:

A customer wants to exclude a directory in general but include some items under a subdirectory.

The aide.conf(5) manpage shows such example:
-------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------
          Add all but directory entries to the database:

             !/run d
             /run R
-------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------

Trying the example on my system (and removing everything else for clarity), as soon as "!/run d" is specified, nothing gets collected under "/run":
-------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------
# aide -i
[...]
Number of entries:	0
[...]
-------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------

If I remove "!/run d", then files are collected:
-------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------
# aide -i
[...]
Number of entries:	585
[...]
-------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------

It hence looks like exclusion gets precedence and there is no way to achieve what we want here.

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

aide-0.16-14.el8_5.1.x86_64

How reproducible:

Always

Steps to Reproduce:
1. Remove all rules starting from "# Next decide what directories/files you want in the database." comment
2. Add rules on /run

  !/run d
  /run R

3. Initialize the database

Actual results:

No file entry saved in database

Expected results:

A certain number of file entries saved in database

Comment 1 Radovan Sroka 2023-08-16 15:13:47 UTC
This bug is going to be migrated.

Contact point for migration questions or issues: rsroka
Guidance for Bugzilla users to test their Jira account or create one if needed:

https://redhat.service-now.com/help?id=kb_article_view&sysparm_article=KB0016394
https://redhat.service-now.com/help?id=kb_article_view&sysparm_article=KB0016694
https://redhat.service-now.com/help?id=kb_article_view&sysparm_article=KB0016774


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