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

Open
orontee opened this issue Apr 27, 2024 · 0 comments
Open

Assertion failure with Debian Bookworm #11909

orontee opened this issue Apr 27, 2024 · 0 comments
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
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

No branches or pull requests

2 participants