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 5, 2022
1 parent a45b876 commit e63f6f1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 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,16 @@ 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.


Group(s) platforms are inherited by rules.
That's it, platforms of the group hierarcy would be 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 e63f6f1

Please sign in to comment.