File: 10-warning.jinja

package info (click to toggle)
scap-security-guide 0.1.76-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 110,644 kB
  • sloc: xml: 241,883; sh: 73,777; python: 32,527; makefile: 27
file content (53 lines) | stat: -rw-r--r-- 1,754 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{{#
    Adds a boiler plate warning with a justification why a rule is disabled on RHV.
    Note: This is only applied on RHEL8 content.

:param rationale: Explanation why RHV needs the rule disabled.
:type rationale: str

#}}
{{% macro warning_ovirt_rule_notapplicable(rationale) %}}
{{%- if product == "rhel8" %}}
- general: |-
    This rule is disabled on Red Hat Virtualization Hosts and Managers, it will report not applicable.
    {{{ rationale }}}.
{{%- endif %}}
{{% endmacro %}}


{{#
    Includes a deprecation warning in rules which are no longer recommended in favor of a similar
    and more updated rule.

:param rule: Rule which replaces the deprecated rule.
:type rule: str
:param release: Release number since the rule is officially deprecated.
:type release: str
:param reason_is_rule: Set to False if the deprecation reason is not a rule. e.g.: A benchmark was retired.
:type is_rule: bool

#}}
{{% macro warning_rule_deprecated_by(cause, release='', reason_is_rule=True) %}}
- general: |-
    {{%- if reason_is_rule %}}
    This rule is deprecated in favor of the <code>{{{ cause }}}</code> rule.
    {{%- else %}}
    This rule is deprecated due to the changes in <code>{{{ cause }}}</code>.
    {{% endif -%}}
    Please consider replacing this rule in your files as it is not expected to receive
    {{%- if release %}}
    updates as of version <code>{{{ release }}}</code>.
    {{%- else %}}
    further updates.
    {{% endif -%}}
{{% endmacro %}}


{{#
    Adds a default "no easy remediation" warning for kernel_build_config warning.
#}}
{{% macro warning_kernel_build_config() %}}
- general: |-
    There is no remediation for this besides re-compiling the kernel with the appropriate value for the config.
{{% endmacro %}}