Public bug reported:

Package : aide-common
Version : 0.19.2-3
Script : /usr/share/aide/bin/dailyaidecheck

When I put FILTERUPDATES=yes in /etc/default/aide, changes detected by
AIDE are filtered, even if they don't concerne the packages update.

Reason : 
The current expression in /usr/share/aide/bin/dailyaidecheck is:
REGEX="^(changed|removed|added|[fdLDBFs?!][ :l<>=bpugamcinHAXSEC.+-]{17}): (.*)"

On AIDE 0.19.2, file and directory entries contain 18 attribute characters 
after the file type character.
For example:
f++++++++++++++++++: /var/www/example/file.php

Proposed fix : 
REGEX="^(changed|removed|added|[fdLDBFs?!][ :l<>=bpugamcinHAXSEC.+-]{18}): (.*)"

(replace {17} by {18})

Tested on AIDE 0.19.2.

With the original expression, the script recognizes none of the 378 file
and directory entries in my test report.

With the corrected expression:

    378 entries are recognized.
    74 entries belonging to the updated needrestart package are correctly 
filtered.
    304 unrelated entries remain visible.

** Affects: aide (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2174995

Title:
  Regex problem in dailyaidecheck

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/aide/+bug/2174995/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to