blob: c947e2cde2707b7d6fd80f4627099e0f22066dc4 [file] [log] [blame]
.TH "selinux_getpolicytype" "3" "24 Sep 2008" "dwalsh@redhat.com" "SELinux API documentation"
.SH "NAME"
selinux_getpolicytype \- get the type of SELinux policy running on the system
.
.SH "SYNOPSIS"
.B #include <selinux/selinux.h>
.sp
.BI "int selinux_getpolicytype(char **" policytype );
.
.SH "DESCRIPTION"
.BR selinux_getpolicytype ()
Reads the contents of the
.I /etc/selinux/config
file to determine the SELinux policy used on the system, and sets
.I \%policytype
accordinly.
.
.SH "RETURN VALUE"
On success, zero is returned.
On failure, \-1 is returned.
.
.SH "SEE ALSO"
.BR selinux "(8)"