selinux_getpolicytype man page

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


#include <selinux/selinux.h>

int selinux_getpolicytype(char **policytype);


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

Return Value

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

See Also


Referenced By

is_selinux_enabled(3), selinux_config(5).

Explore man page connections for selinux_getpolicytype(3).