selinux_getpolicytype - get the type of SELinux policy running on the system
#include <selinux/selinux.h> int selinux_getpolicytype();
selinux_getpolicytype Reads the contents of the /etc/selinux/config file to determine the SELinux policy used on the system.
On success, zero is returned. On failure, -1 is returned.
selinux(8)