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 1806323 - AIDE breaks when setting report_ignore_e2fsattrs
Summary: AIDE breaks when setting report_ignore_e2fsattrs
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: aide
Version: 8.0
Hardware: All
OS: Linux
high
high
Target Milestone: rc
: 8.0
Assignee: Attila Lakatos
QA Contact: Dalibor Pospíšil
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-02-23 19:50 UTC by Oliver Freyermuth
Modified: 2020-11-04 03:16 UTC (History)
6 users (show)

Fixed In Version: aide-0.16-12.el8
Doc Type: No Doc Update
Doc Text:
Clone Of:
: 1850276 (view as bug list)
Environment:
Last Closed: 2020-11-04 03:16:26 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github aide aide issues 65 0 None closed Setting report_ignore_e2fsattrs yields many warnings 2020-12-02 09:00:36 UTC
Red Hat Product Errata RHBA-2020:4718 0 None None None 2020-11-04 03:16:30 UTC

Description Oliver Freyermuth 2020-02-23 19:50:02 UTC
Description of problem:

Setting:
report_ignore_e2fsattrs=I
yields:
Ignore invalid ext2 file attribute: 'J'
Ignore invalid ext2 file attribute: 'K'
Ignore invalid ext2 file attribute: 'L'
Ignore invalid ext2 file attribute: 'M'
Ignore invalid ext2 file attribute: 'O'
Ignore invalid ext2 file attribute: 'P'
Ignore invalid ext2 file attribute: 'Q'
...
Ignore invalid ext2 file attribute: '�'
and disables any e2fsattrs with character codes larger than "I". 

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

How reproducible:
Always. 

Steps to Reproduce:
1. Add line to configuration. 
2. Run "aide --check". 

Actual results:
Warnings, wrong behaviour.

Expected results:
Setting to be honoured.

Additional info:
Upstream bug report:
https://github.com/aide/aide/issues/65

Comment 1 Oliver Freyermuth 2020-02-25 19:22:24 UTC
More information:
The issue is not reproducible with upstream AIDE 0.16. 

It is introduced by coverity.patch which performs the following change:

> @@ -984,7 +991,7 @@ void do_report_ignore_e2fsattrs(char* va
>                   break;
>              }
>          }
> -        *val++;
> +        (*val)++;
>      }
>  }
>  #endif

The "*" was actually _not_ wanted by upstream, and has now been dropped in:
https://github.com/aide/aide/commit/fcf0f3a26067509e5c6730a94ca13bbef7f594a8

While it was a "harmless" (but confusing) syntax before, coverity has made it harmful.

Comment 9 errata-xmlrpc 2020-11-04 03:16:26 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (aide bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:4718


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