getenforce - command /usr/sbin/getenforce

This very simple parser returns the output of the getenforce command.

Examples

>>> enforce = shared[getenforcevalue]
>>> enforce['status']
'Enforcing'
insights.parsers.getenforce.getenforcevalue(context)[source]

The output of “getenforce” command is in one of “Enforcing”, “Permissive”, or “Disabled”, so we can return the content directly.