SYNOPSIS

#include <selinux/selinux.h>

int selinux_getpolicytype(char **policytype);

DESCRIPTION

selinux_getpolicytype() Reads the contents of the /etc/selinux/config file to determine the SELinux policy used on the system, and sets policytype accordinly.

RETURN VALUE

On success, zero is returned. On failure, -1 is returned.

RELATED TO selinux_getpolicytype…