Puppet Class: almalinux_hardening::system::selinux::grub2

Defined in:
manifests/system/selinux/grub2.pp

Summary

Ensure SELinux Not Disabled in /etc/default/grub

Overview

Puppet Module to perform AlmaLinux 8 OS Hardening with CIS benchmark. Copyright © 2022 Jonas Hügli

Examples:

include almalinux_hardening::system::selinux::grub2


19
20
21
22
23
24
25
26
27
28
# File 'manifests/system/selinux/grub2.pp', line 19

class almalinux_hardening::system::selinux::grub2 {
  if $almalinux_hardening::enable_selinux_grub2 {
    kernel_parameter { 'selinux=1':
      ensure => present,
    }
    kernel_parameter { 'enforcing=1':
      ensure => present,
    }
  }
}