How to Update Tailorings Based on Previous Benchmark Versions
You must be assigned the Compliance Assessor rights profile.
You can discover that you have an outdated tailoring after updating Oracle Solaris. This procedure shows how to update or delete the tailoring.
Example 1-4 Updating a Tailoring From an Export File
The administrator imports the outdated tailoring to verify that its output is accurate.
-
Using the
pfexec compliance tailor
command, the administrator opens the tailoring and exports it to a file.$ pfbash ; compliance tailor -t myTailoring *** compliance tailor: WARNING: version mismatch between tailoring 'myTailoring'(1.1234) and benchmark 'solaris'(1.2345), assessment test selections may not be as expected tailoring:myTailoring> export -o myTailoring1.txt tailoring:myTailoring> exit
-
The administrator edits the export file to rename the tailoring.
$ pfedit myTailoring1.txt set tailoring=myTailoring1
-
The administrator imports the modified exported rule set.
$ compliance tailor -f myTailoring1.txt tailoring:myTailoring1> commit tailoring:myTailoring1> exit
-
The administrator verifies that the new tailoring performs the same job as the original tailoring.
$ compliance assess -t myTailoring1 ...
-
The administrator deletes the outdated tailoring.
$ compliance tailor -t myTailoring tailoring:myTailoring> delete OK to delete tailoring 'myTailoring' (y/N)? y $
Troubleshooting
If you are denied permission to update or delete the tailoring, either assume the root
role, or if you have the Compliance Assessor rights profile, precede the compliance tailor
command with pfexec
.