File: 20-rules.jinja

package info (click to toggle)
scap-security-guide 0.1.78-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 114,600 kB
  • sloc: xml: 245,305; sh: 84,381; python: 33,093; makefile: 27
file content (20 lines) | stat: -rw-r--r-- 615 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{{#

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

:param cmd: The command to audit
:type cmd: str
:param path_prefix: Prefix of the command to audit
:type path_prefix: str
:param key: The key to use in the audit rule
:type key: str

#}}
{{% macro ocil_fix_srg_privileged_command(cmd, path_prefix="/usr/bin/", key="") %}}
{{{ complete_ocil_entry_audit_privileged_commands(cmd, path_prefix, key) }}}

fixtext: |-
    {{{ fixtext_audit_rules_privileged_commands(cmd, path_prefix, key) | indent(4) }}}

srg_requirement: '{{{ srg_requirement_audit_command(cmd) }}}'
{{%- endmacro %}}