Repository navigation
Change profile title and description #2413
Replies: 1 comment
|
You can modify the existing struct oscap_text_iterator *it = xccdf_profile_get_title(profile);
while (oscap_text_iterator_has_more(it)) {
struct oscap_text *text = oscap_text_iterator_next(it);
oscap_text_set_text(text, "Updated profile title");
}
oscap_text_iterator_free(it);Use The example updates all existing titles. If your profile has different languages, select the appropriate text using The declarations are in xccdf_benchmark.h and oscap_text.h. Multiple title elements can represent language alternatives, so I would not rely on “last title wins.” |
Uh oh!
There was an error while loading. Please reload this page.
hello everyone,I have a question concerning the struct xccdf_profile,is it possible for me to load an already existing tailoring profile and change its title and description,in the API i found xccdf_profile_add_title adn xccdf_profile_add_description but is it possible to change them(either modifying the existing ones or completely removing them and adding new ones)?
I have thought of a solution of adding new ones to the profile in memory and extracting the tailoring file this way the same profile is going to have two <title> tags hoping that the last one "wins" but i don't know if that would work
All reactions