Skip to content

Commit

Permalink
Merge pull request #9977 from dodys/aide_cron
Browse files Browse the repository at this point in the history
aide_periodic_cron_checking: Improve ubuntu-specific OVAL and bash
  • Loading branch information
Mab879 authored Jan 5, 2023
2 parents 2d18df2 + e5a3440 commit c2f8bc0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

# AiDE usually adds its own cron jobs to /etc/cron.daily. If script is there, this rule is
# compliant. Otherwise, we copy the script to the /etc/cron.weekly
if ! egrep -q '^(/usr/bin/)?aide\.wrapper\s+' /etc/cron.*/*; then
if ! egrep -q '^(\/usr\/bin\/)?aide(\.wrapper)?\s+' /etc/cron.*/*; then
cp -f /usr/share/aide/config/cron.daily/aide /etc/cron.weekly/
fi
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,18 @@
</definition>
<ind:textfilecontent54_object id="obj_root_crontab_aide" version="1">
<ind:filepath datatype="string">/var/spool/cron/crontabs/root</ind:filepath>
<ind:pattern operation="pattern match" datatype="string">aide\.wrapper</ind:pattern>
<ind:pattern operation="pattern match" datatype="string">aide(\.wrapper)?</ind:pattern>
<ind:instance datatype="int">1</ind:instance>
</ind:textfilecontent54_object>
<ind:textfilecontent54_object id="obj_etc_cron_aide" version="1">
<ind:path operation="pattern match">/etc/cron\.(daily|hourly|weekly)</ind:path>
<ind:filename operation="pattern match">^.*$</ind:filename>
<ind:pattern operation="pattern match" datatype="string">^[^#]*(?:/usr/bin/)?aide\.wrapper</ind:pattern>
<ind:pattern operation="pattern match" datatype="string">^(?:\/usr\/bin\/)?aide(\.wrapper)?</ind:pattern>
<ind:instance datatype="int">1</ind:instance>
</ind:textfilecontent54_object>
<ind:textfilecontent54_object id="obj_etc_crontab_aide" version="1">
<ind:filepath datatype="string">/etc/crontab</ind:filepath>
<ind:pattern operation="pattern match" datatype="string">[^\s]+\s+[^\s]+\s+\*(?:\/[1-7])*\s+\*\s+[^\s]+\s+(?:/usr/bin/)?aide\.wrapper\s+[^\s]+\s+(?=-C|--check).*</ind:pattern>
<ind:pattern operation="pattern match" datatype="string">[^\s]+\s+[^\s]+\s+\*(?:\/[1-7])*\s+\*\s+[^\s]+\s+(?:\/usr\/bin\/)?aide(\.wrapper)?\s+[^\s]+\s+(?=-C|--check).*</ind:pattern>
<ind:instance datatype="int">1</ind:instance>
</ind:textfilecontent54_object>
<linux:systemdunitproperty_object id="obj_aidecheck-service_unitfilestate" version="1">
Expand Down

0 comments on commit c2f8bc0

Please sign in to comment.