selinux_getpolicytype(3) - Linux man page

Name

selinux_getpolicytype - get the type of SELinux policy running on the system

Synopsis

#include <selinux/selinux.h>

int selinux_getpolicytype();

Description

selinux_getpolicytype Reads the contents of the /etc/selinux/config file to determine the SELinux policy used on the system.

Return Value

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

See Also

selinux(8)