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

Assertion failure with Debian Bookworm #11909

Closed
orontee opened this issue Apr 27, 2024 · 5 comments · Fixed by #12318
Closed

Assertion failure with Debian Bookworm #11909

orontee opened this issue Apr 27, 2024 · 5 comments · Fixed by #12318
Assignees
Labels
Debian Debian product related.

Comments

@orontee
Copy link

orontee commented Apr 27, 2024

Description of problem:

For the context, I am new to OpenSCAP. I successfully ran on a Debian 12 (Bookworm) system an oscap oval eval using the definitions found at https://www.debian.org/security/oval/ and I am now trying to use the SCAP Security Guide.

Since there's no Debian 12 profiles in the ssg-debian package, I build and install from sources. But when I then try to run an oscap xccdf eval using the freshly installed definitions, it stops with the following error:

oscap: ./src/XCCDF_POLICY/xccdf_policy.c:627: xccdf_policy_is_item_selected: Assertion `false' failed.

SCAP Security Guide Version:

I am using the commit 59013f6 from master branch.

Operating System Version:

Debian 12 (Bookworm)

Steps to Reproduce:

  1. Build using a Python virtual environment
$ python -m venv env
$ source env/bin/activate
(env)$ python -m pip install -r requirements.txt
(env)$ cd build
(env)$ cmake ..
(env)$ make -j10
(env)$ sudo make install

No error, everything looks good.

  1. Run oscap xccdf eval using the freshly installed definitions and the virtual environment still active:
(env) $ oscap xccdf eval --profile xccdf_org.ssgproject.content_profile_standard --results-arf arf.xml --report report.html --oval-results /usr/local/share/xml/scap/ssg/content/ssg-debian12-xccdf.xml
...
Title   Enable the NTP Daemon
Rule    xccdf_org.ssgproject.content_rule_service_ntp_enabled
Result  notapplicable

Title   Set SSH Client Alive Count Max to zero
Rule    xccdf_org.ssgproject.content_rule_sshd_set_keepalive_0
Result  notapplicable

oscap: ./src/XCCDF_POLICY/xccdf_policy.c:627: xccdf_policy_is_item_selected: Assertion `false' failed.
Abandon

Actual Results:

oscap: ./src/XCCDF_POLICY/xccdf_policy.c:627: xccdf_policy_is_item_selected: Assertion `false' failed.

Expected Results:

An arf.xml file and a HTML report.

Additional Information/Debugging Steps:

@orontee orontee changed the title Assertion failure on after Bookworm install Assertion failure with Debian Bookworm install Apr 27, 2024
@orontee orontee changed the title Assertion failure with Debian Bookworm install Assertion failure with Debian Bookworm Apr 27, 2024
@marcusburghardt marcusburghardt added the Debian Debian product related. label Apr 30, 2024
@StanvanHoorn
Copy link

I am having the same issues, but without using a venv.
Running ssg-debian12-ds.xml from release 0.1.74.
Any updates?

@dodys
Copy link
Contributor

dodys commented Aug 20, 2024

@a-skr is it something you can help with?

@a-skr
Copy link
Contributor

a-skr commented Aug 20, 2024

I will look into it.

@a-skr
Copy link
Contributor

a-skr commented Aug 20, 2024

I can reproduce it from the master branch. The assertion is triggered from sshd_set_timeout rule. This rule depends on sshd_set_keepalive, which is missing from the standard profile (the profile uses the sshd_set_keepalive_0 rule, but that rule doesn't seem to satisfy sshd_set_timeout dependencies).

@orontee
Copy link
Author

orontee commented Aug 26, 2024

Thank you @a-skr, no more assertion failure here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Debian Debian product related.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants