Puppet Class: almalinux_hardening::system::selinux::state

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

Summary

Ensure SELinux State is Enforcing

Overview

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

Examples:

include almalinux_hardening::system::selinux::state


21
22
23
24
25
26
27
28
29
30
# File 'manifests/system/selinux/state.pp', line 21

class almalinux_hardening::system::selinux::state {
  if $almalinux_hardening::enable_selinux_state {
    file_line { 'selinux_state':
      ensure => 'present',
      path   => '/etc/selinux/config',
      line   => 'SELINUX=enforcing',
      match  => '^(#|).*SELINUX.*=',
    }
  }
}