selinux Facts¶
See also: operations/selinux.
selinux.FileContext¶
Returns structured SELinux file context data for a specified file
or None if the file does not exist.
selinux.FileContextMapping¶
Returns structured SELinux file context data for the specified target path prefix
using the same format as :ref:facts:selinux.FileContext.
If there is no mapping, it returns {}
Note: This fact requires root privileges.
selinux.SEBoolean¶
Returns the status of a SELinux Boolean as a string (on or off).
If boolean does not exist, SEBoolean returns the empty string.
selinux.SEPort¶
Returns the SELinux 'type' for the specified protocol (tcp|udp|dccp|sctp) and port number.
If no type has been set, SEPort returns the empty string.
Note: policycoreutils-dev must be installed for this to work.
selinux.SEPorts¶
Returns the SELinux 'type' definitions for (tcp|udp|dccp|sctp) ports.
Note: This fact requires root privileges.