-
Notifications
You must be signed in to change notification settings - Fork 378
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
Add a refine-rule tailoring ability to autotailor #1877
Commits on Oct 2, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 93efdd6 - Browse repository at this point
Copy the full SHA 93efdd6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2aacfbd - Browse repository at this point
Copy the full SHA 2aacfbdView commit details -
Use a single constant definition
Instead of repeating the smae string all over the place, let's have a single constant defined and then used.
Configuration menu - View commit details
-
Copy full SHA for 0f4c498 - Browse repository at this point
Copy the full SHA 0f4c498View commit details -
Append '_customized' to the customized profile ID
If the `--new-profile-id` isn't provided by the user, we will create the ID of the customized profile ID by appending the `_customized` suffix to the base profile ID. This change makes the behavior according to the help text of the `--new-profile-id` option: > If left out, the new ID will be obtained by appending '_customized' > to the tailored profile ID.
Configuration menu - View commit details
-
Copy full SHA for 52b77ac - Browse repository at this point
Copy the full SHA 52b77acView commit details -
Configuration menu - View commit details
-
Copy full SHA for 48e4069 - Browse repository at this point
Copy the full SHA 48e4069View commit details -
Configuration menu - View commit details
-
Copy full SHA for c3e3210 - Browse repository at this point
Copy the full SHA c3e3210View commit details -
Configuration menu - View commit details
-
Copy full SHA for fbc49d3 - Browse repository at this point
Copy the full SHA fbc49d3View commit details -
Move the logic to inside the Tailoring class
We will move the condition that determines the ID of the customized profile into the `Tailoring` class. This move helps encapsulate code and also allows easier unit testing of this feature which we immediately use to write a unit test in this commit as well :)
Configuration menu - View commit details
-
Copy full SHA for b22b340 - Browse repository at this point
Copy the full SHA b22b340View commit details
Commits on Oct 3, 2023
-
This patch adds two new command line options `--rule-role` and `--rule-severity` that will allow users to refine rule role and rule seveirty in their customized profile. Using these options will generate `refine-rule` elements within the output tailoring file. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2058168
Configuration menu - View commit details
-
Copy full SHA for 4699f91 - Browse repository at this point
Copy the full SHA 4699f91View commit details -
Configuration menu - View commit details
-
Copy full SHA for 07b5ae7 - Browse repository at this point
Copy the full SHA 07b5ae7View commit details -
Configuration menu - View commit details
-
Copy full SHA for a8ce89a - Browse repository at this point
Copy the full SHA a8ce89aView commit details -
Move XCCDF Value assignment to Tailoring class
This patch moves the logic for assigning the XCCDF Values for outer space inside the Tailoring class by defining a method.
Configuration menu - View commit details
-
Copy full SHA for 4256956 - Browse repository at this point
Copy the full SHA 4256956View commit details -
Use a standard way of handling XML namespaces
Explicitly setting namespaces of elements is the recommended way of using namespaces. It helps prevent namespace errors. Also, it simplifies unit testing of code that works with XML elements.
Configuration menu - View commit details
-
Copy full SHA for a46b771 - Browse repository at this point
Copy the full SHA a46b771View commit details -
The new name of the variable better describes its actual contents.
Configuration menu - View commit details
-
Copy full SHA for ae3874e - Browse repository at this point
Copy the full SHA ae3874eView commit details -
Add an integration test for the autotailor tool
This commit adds an integration test for autotailor. The goal of the test is to verify if the tailoring produced by autotailor can be loaded and consumed by oscap and if the generated tailoring leads to the intended behavior of the profile evaluation.
Configuration menu - View commit details
-
Copy full SHA for ae87898 - Browse repository at this point
Copy the full SHA ae87898View commit details -
Add autotailor unit tests to CTest
The result will be that the autotailor unit tests will be executed during the CTest which is run in our CI.
Configuration menu - View commit details
-
Copy full SHA for 48c013b - Browse repository at this point
Copy the full SHA 48c013bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4afcbae - Browse repository at this point
Copy the full SHA 4afcbaeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9596edb - Browse repository at this point
Copy the full SHA 9596edbView commit details