| 1 |
.TH "selinux_getpolicytype" "3" "24 Sep 2008" "[email protected]" "SELinux API documentation" |
| 2 |
.SH "NAME" |
| 3 |
selinux_getpolicytype \- get the type of SELinux policy running on the system |
| 4 |
. |
| 5 |
.SH "SYNOPSIS" |
| 6 |
.B #include <selinux/selinux.h> |
| 7 |
.sp |
| 8 |
.BI "int selinux_getpolicytype(char **" policytype ); |
| 9 |
. |
| 10 |
.SH "DESCRIPTION" |
| 11 |
.BR selinux_getpolicytype () |
| 12 |
Reads the contents of the |
| 13 |
.I /etc/selinux/config |
| 14 |
file to determine the SELinux policy used on the system, and sets |
| 15 |
.I \%policytype |
| 16 |
accordingly. Free |
| 17 |
.I \%policytype |
| 18 |
with |
| 19 |
.BR free (3). |
| 20 |
. |
| 21 |
.SH "RETURN VALUE" |
| 22 |
On success, zero is returned. |
| 23 |
On failure, \-1 is returned. |
| 24 |
. |
| 25 |
.SH "SEE ALSO" |
| 26 |
.BR selinux "(8)" |