NAME
Monitoring::Sneck::Checks::selinux - checks SELinux is in the mode it should be
VERSION
Version 0.0.1
SYNOPSIS
selinux|perl:selinux
selinux_permissive|perl:selinux -m permissive
DESCRIPTION
Checks the mode SELinux is running in, from enforce under /sys/fs/selinux, it being disabled if that is not there, and the mode /etc/selinux/config sets for the next boot.
- CRITICAL :: Running in a mode other than --mode.
- WARNING :: /etc/selinux/config setting a mode other than the running one, which takes effect at the next boot.
- UNKNOWN :: Not being Linux.
The policy type, such as targeted, is from SELINUXTYPE in the config.
OPTIONS
- -m, --mode :: The mode it should be running in, enforcing, permissive, or disabled. Default :: enforcing
METHODS
check
Does the check.