Skip to content
Discussion options

You must be logged in to vote

Yes, the C API has the pieces for this. The workflow I would use is to persist a Tailoring document, not to write only a detached <Profile> fragment. That keeps the custom profile auditable while still referencing the original Benchmark/DataStream.

The relevant public API names are in src/XCCDF/public/xccdf_benchmark.h:

  • xccdf_profile_new() / xccdf_profile_set_id() to create the profile
  • xccdf_select_new() / xccdf_select_set_item() / xccdf_select_set_selected() to create each rule selection
  • xccdf_profile_add_select() to attach selections to the profile
  • xccdf_tailoring_new() / xccdf_tailoring_set_id() / xccdf_tailoring_set_benchmark_ref() / xccdf_tailoring_add_profile()
  • xccdf_tailoring_expo…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Yesser-Belhajali
Comment options

Answer selected by Yesser-Belhajali
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants