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

Implement xccdf_session_result_reset function in XCCDF session API #2020

Merged
merged 1 commit into from
Sep 25, 2023

Conversation

0intro
Copy link
Contributor

@0intro 0intro commented Sep 4, 2023

This change adds a new public xccdf_session_result_reset function to the XCCDF session API.

This function resets XCCDF session results, so xccdf_session_evaluate could be called again from a clean state, without having to call xccdf_session_free, which would imply to parse the XCCDF file again.

This function resets XCCDF policies, session rules, skipped rules, OVAL system characteristics and OVAL results.

@evgenyz
Copy link
Contributor

evgenyz commented Sep 4, 2023

For reference: #1938

This change adds a new public xccdf_session_result_reset function
to the XCCDF session API.

This function resets XCCDF session results, so xccdf_session_evaluate
could be called again from a clean state, without having to call
xccdf_session_free, which would imply to parse the XCCDF file again.

This function resets XCCDF policies, session rules, skipped rules,
OVAL system characteristics and OVAL results.
@jan-cerny jan-cerny self-assigned this Sep 25, 2023
@jan-cerny jan-cerny modified the milestones: 1.2.18, 1.3.10 Sep 25, 2023
Copy link
Member

@jan-cerny jan-cerny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The CI fail is caused by incompatibility of the sysctl probe with the kernel in the workers and therefore isn't related to the contents of this PR.

@jan-cerny jan-cerny merged commit e0baa0e into OpenSCAP:maint-1.3 Sep 25, 2023
16 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants