ComplianceAsCode / ComplianceAsCode/content

Build and test AIDE database - test existence of operational aide database file - fails when file is present

Open
#13,765 3 comments 0 reactions 0 assignees View on GitHub
triaged
Dominant language
Shell
Stars
2.8k
Forks
828
Avg merge
3d 8m
Merged PRs (30d)
80

Description

#### Description of problem:

Testing existence of operational aide database file oval:ssg-test_aide_operational_database_absolute_path:tst:1 false
No items have been found conforming to the following objects:
Object oval:ssg-object_aide_operational_database_absolute_path:obj:1 of type file_object
Filepath
Referenced variable has no values (oval:ssg-variable_aide_operational_database_absolute_path:var:1)

#### SCAP Security Guide Version:

0.1.77

#### Operating System Version:

AL2023

#### Steps to Reproduce:

1. git clone https://github.com/ansible-lockdown/AMAZON2023-CIS.git
2. sudo ansible-playbook AMAZON2023-CIS/site.yml
3. oscap xccdf eval \
--profile level1_profile \
--report ec2-${OS}_oscap-ssg-report_${DATE_TIME_STAMP}.html \
ssg-al2023-ds.xml

#### Actual Results:

FAILED

Testing existence of operational aide database file oval:ssg-test_aide_operational_database_absolute_path:tst:1 false
No items have been found conforming to the following objects:
Object oval:ssg-object_aide_operational_database_absolute_path:obj:1 of type file_object
Filepath
Referenced variable has no values (oval:ssg-variable_aide_operational_database_absolute_path:var:1)

#### Expected Results:

PASS

#### Additional Information/Debugging Steps:

The files are present:

[ec2-user@ip-10-44-210-57 ~]$ sudo ls -l /var/lib/aide/
total 0
-rw-r--r--. 1 root root 0 Aug 5 19:02 aide.db.gz
-rw-------. 1 root root 0 Aug 5 19:02 aide.db.new.gz

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.