Skip to content

Commit

Permalink
Docs/developer: Mention that rules will inherit its group(s) platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
evgenyz committed Oct 21, 2022
1 parent a45b876 commit 4168ece
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docs/manual/developer/06_contributing_with_content.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,13 +172,15 @@ A rule itself contains these attributes:
under `shared/checks/oval/` and referenced in the dictionary file. It is
possible to specify multiple platforms in the list. In that case, they are
implicitly connected with "OR" operator.


Platforms from groups are inherited by rules for the whole group hierarchy. They are implicitly joined with rule's platforms using "AND" operator.

The `platform` can also be a [Boolean algebra expression](https://booleanpy.readthedocs.io/en/latest/concepts.html),
describing applicability of the rule as a combination of multiple platforms.

The build system recognizes `!` or `not` as "NOT" operator, `&` or `and` as "AND" operator, and `|` or `or` as "OR" operator.
And it also allows to group and alter operator precedence with brackets: `(` and `)`.

For example, the expression `grub2 & !(shadow-utils | ssh)` will denote that rule is applicable for systems with *GRUB2 bootloader*,
but only if there is no *shadow-utils* or *ssh* package installed.

Expand Down

0 comments on commit 4168ece

Please sign in to comment.