Skip to content

Commit 15dbbd2

Browse files
committed
Enable >= comparison for audit_backlog_limit and add docs
- Add operation "greater than or equal" to the rule so the OVAL check accepts any value meeting the threshold, not just the exact default. - Document the operation parameter in template_reference.md.
1 parent 4167da0 commit 15dbbd2

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

docs/templates/template_reference.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,10 +462,18 @@ they must be of the same length.
462462
- **arg_name** - argument name, eg. `audit`
463463

464464
- **arg_value** - argument value, eg. `'1'`
465+
This parameter is mutually exclusive with **arg_variable**.
465466

466467
- **arg_variable** - the variable used as the value for the argument, eg. `'var_slub_debug_options'`
467468
This parameter is mutually exclusive with **arg_value**.
468469

470+
- **operation** - (optional) OVAL operation used to compare the
471+
collected argument value with the expected value. Default value:
472+
`pattern match`. When set to a numeric operation such as
473+
`greater than or equal`, the OVAL check captures only the
474+
numeric portion of the argument and compares it as an integer.
475+
Works with both **arg_variable** and **arg_value**.
476+
469477
- Languages: Ansible, Bash, OVAL, Blueprint, Kickstart
470478

471479
#### grub2_bootloader_argument_absent

linux_os/guide/auditing/grub2_audit_backlog_limit_argument/rule.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,4 @@ template:
5151
vars:
5252
arg_name: audit_backlog_limit
5353
arg_variable: var_audit_backlog_limit
54+
operation: greater than or equal

0 commit comments

Comments
 (0)