Rule macros

Contains macros for rules that leverage multiple macros from other files

TEMPLATE ocil_fix_srg_privileged_command

Adds an OCIL, fixtex and SRG requirement to audit_privileged_command rules.

Parameters:
  • cmd (str) – The command to audit

  • path_prefix (str) – Prefix of the command to audit

  • key (str) – The key to use in the audit rule

ocil_fix_srg_privileged_command(cmd, path_prefix=”/usr/bin/”, key=””)