Selinux Facts

selinux.FileContext

host.get_fact(FileContext, path)

Returns structured SELinux file context data for a specified file.

{
    "user": "system_u",
    "role": "object_r",
    "type": "deafult_t",
    "level": "s0",
}

selinux.SEBoolean

host.get_fact(SEBoolean, boolean)

Returns the on/off status of a SELinux Boolean.