selinux.rb

Path: lib/facter/selinux.rb
Last Update: Sat Feb 23 07:17:42 +0000 2019

Fact: selinux

Purpose:

  Determine whether SE Linux is enabled on the node.

Resolution:

  Checks for the existence of the enforce file under the SE Linux mount
  point (e.g. `/selinux/enforce`) and returns true if `/proc/self/attr/current`
  does not contain the kernel.

Caveats:

Methods

Public Instance methods

This supports the fact that the selinux mount point is not always in the same location — the selinux mount point is operating system specific.

[Validate]