Skip to content

Commit

Permalink
Add documentation for a new script capability
Browse files Browse the repository at this point in the history
  • Loading branch information
Honny1 committed Jan 11, 2024
1 parent c411eee commit a07c06e
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion docs/manual/developer/05_tools_and_utilities.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,23 @@ rules selected by another profile, run this command:

```bash
$ ./build-scripts/profile_tool.py sub --profile1 rhel7/profiles/ospp.profile --profile2 rhel7/profiles/pci-dss.profile
````
```

This will result in a new YAML profile containing exclusive rules to the
profile pointed by the `--profile1` option.

The tool can also generate a list of the most used rules contained in profiles from a given data stream or benchmark.

For example, to get a list of the most used rules in the benchmark for `rhel8`, run this command:

```bash
$ ./build-scripts/profile_tool.py most-used-rules --benchmarks build/ssg-rhel8-xccdf.xml
```

The result will be a list of rules with the number of uses in the profiles.
The list can be generated as plain text, JSON or CVS.
Via the `--format FORMAT` parameter.

## Generating Controls from DISA's XCCDF Files

If you want a control file for product from DISA's XCCDF files you can run the following command:
Expand Down

0 comments on commit a07c06e

Please sign in to comment.