Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test scenario for service_bluetooth_disabled is not causing expected fail #11949

Open
vojtapolasek opened this issue May 6, 2024 · 2 comments
Labels
productization-issue Issue found in upstream stabilization process.
Milestone

Comments

@vojtapolasek
Copy link
Collaborator

Description of problem:

There is a test scenario which should make the rule service_bluetooth_disabled fail. But the rule passes when it is executed.

  • service_enabled.fail.sh

SCAP Security Guide Version:

stabilization-v0.1.73, commit 0b096bc

Operating System Version:

RHEL 8.6

Steps to Reproduce:

  1. ./build_product rhel8
  2. cd tests/
  3. python automatus.py rule --libvirt qemu:///system <domain_name> --remediate-using oscap service_bluetooth_disabled

Actual Results:

The scan after applying test scenario should return "fail", but it returns "pass".

Expected Results:

The test scenario returns "fail" and the remediation is performed. The final result should be "pass".

Additional Information/Debugging Steps:

@vojtapolasek vojtapolasek added the productization-issue Issue found in upstream stabilization process. label May 6, 2024
@vojtapolasek vojtapolasek added this to the 0.1.73 milestone May 6, 2024
@Mab879
Copy link
Member

Mab879 commented May 6, 2024

Locally I cannot reproduce:

$ ./automatus.py rule --datastream ../build/ssg-rhel8-ds.xml --remediate-using oscap  --libvirt qemu:///system automatus_rhel_8_6 service_bluetooth_disabled
Setting console output to log level INFO
INFO - The base image option has not been specified, choosing libvirt-based test environment.
INFO - Logging into /home/mburket/Developer/ComplianceAsCode/content/tests/logs/rule-custom-2024-05-06-1614/test_suite.log
INFO - xccdf_org.ssgproject.content_rule_service_bluetooth_disabled
INFO - Script service_enabled.fail.sh using profile (all) OK
INFO - Script service_disabled.pass.sh using profile (all) OK

@Mab879
Copy link
Member

Mab879 commented May 7, 2024

Needs more investigation from the testing env.

@Mab879 Mab879 assigned Mab879 and unassigned Mab879 May 7, 2024
@Mab879 Mab879 modified the milestones: 0.1.73, 0.1.74 May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
productization-issue Issue found in upstream stabilization process.
Projects
None yet
Development

No branches or pull requests

2 participants