Red Hat Bugzilla – Bug 225089
aide Segmentation fault on initialization
Last modified: 2015-01-07 19:15:28 EST
Description of problem:
aide -i segmentation fault.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. aide -i
lgetfilecon_raw failed for /etc/ld.so.cache:No data available
*** Bug 225090 has been marked as a duplicate of this bug. ***
I assume you have SELinux disabled?
As a work around you can remove the selinux options from your /etc/aide.conf,
doing this automatically is probably the fix too.
== Info. mainly for QA ==
The way I reproduced this was to change:
if (lgetfilecon_raw(line->filename, &cntx) == -1)
if ((rand() & 1) || (lgetfilecon_raw(line->filename, &cntx) == -1))
...the other way is to disable selinux completely, and create a file without a
context. The fix is to not call strlen() when the pointer is NULL, on the line:
conf->db_out, i, 1, 1);
...I also premptivly fixed ACLs (I haven't tested them either way).
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.