Blame man/man3/selinux_getpolicytype.3

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