documentation_complete: true

title: 'Enable different security models'

description: |-
    This allows you to choose different security modules to be configured into your kernel.

    {{{ describe_kernel_build_config("CONFIG_SECURITY", "y") | indent(4) }}}

rationale: |-
    This is enables kernel security primitives required by the LSM framework.

warnings:
    {{{ warning_kernel_build_config() | indent(4) }}}

severity: medium

identifiers:
    cce@rhel8: CCE-86572-5
    cce@rhel9: CCE-86573-3
    cce@rhel10: CCE-87679-7
    cce@sle15: CCE-92570-1

ocil_clause: 'the kernel was not built with the required value'

ocil: |-
    {{{ ocil_kernel_build_config("CONFIG_SECURITY", "y") | indent(4) }}}

template:
    name: kernel_build_config
    vars:
        config: CONFIG_SECURITY
        value: 'y'

