Skip to content

Commit

Permalink
Updated the guide with info about the oscap_wrapper helper script.
Browse files Browse the repository at this point in the history
  • Loading branch information
matejak committed Jun 14, 2019
1 parent e4f4599 commit 633dc5a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/developer/developer.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,12 @@ $ make install

== Running oscap
It is important to use your compiled `libopenscap.so` library with your `oscap` tool.
The easiest way how to achieve that without need to install `libopenscap.so` to the system path, is to use a shell script called *run* in the OpenSCAP build directory.
The easiest way how to achieve that without need to install `libopenscap.so` to the system path, is to use a shell script called *oscap_wrapper* or *run* in the OpenSCAP build directory.

-------------------------------------------------
$ cd build/
$ bash ./run utils/oscap xccdf eval ... whatever
$ ./oscap_wrapper xccdf eval ... whatever
$ ./run valgrind utils/oscap xccdf eval ... whatever
-------------------------------------------------

The *run* script is generated at configure time by CMake and it sets the following environment variables:
Expand All @@ -176,6 +177,9 @@ The *run* script is generated at configure time by CMake and it sets the followi
to generate html documents from xml)
* *OSCAP_CPE_PATH* - path to the OpenSCAP CPE dictionary.

The *oscap_wrapper* script is a convenience shortcut for `run utils/oscap` call.


== Debugging
Developers and users who intend to help find and fix possible bugs in OpenSCAP
or possible bugs in their security policies have these possibilities:
Expand Down

0 comments on commit 633dc5a

Please sign in to comment.