From fd7a66f4530517e750d2ff5f4759141beca2651f Mon Sep 17 00:00:00 2001 From: Evgeny Kolesnikov Date: Thu, 1 Dec 2022 22:07:05 +0100 Subject: [PATCH] Update documentation for templated CPEs --- docs/manual/developer/06_contributing_with_content.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/manual/developer/06_contributing_with_content.md b/docs/manual/developer/06_contributing_with_content.md index edc1e06ae61..17e37535668 100644 --- a/docs/manual/developer/06_contributing_with_content.md +++ b/docs/manual/developer/06_contributing_with_content.md @@ -1179,7 +1179,11 @@ is used for rules not applicable to containers. A rule or profile with `platform: machine` will be evaluated only if the targeted scan environment is either bare-metal or virtual machine. -The second entry defines a CPE for NTP. +The second file defines a parametrized CPE. This allows us to define multiple +similar CPEs that differ in their argument. In our example, we define +the `package` CPE. Within the `args` key we configure a set of its possible +arguments and their values. In our example, there is a single possible value: `ntp`. + By setting the `platform` to `package[ntp]`, the rule will have its applicability restricted to only environments which have `ntp` package installed.