Chris PeBenito 473ea7
.TH "selinux_getenforcemode" "3" "25 May 2004" "dwalsh@redhat.com" "SE Linux API documentation"
Chris PeBenito 473ea7
.SH "NAME"
Chris PeBenito 473ea7
selinux_getenforcemode \- get the enforcing state of SE Linux
Chris PeBenito 473ea7
.SH "SYNOPSIS"
Chris PeBenito 473ea7
.B #include <selinux/selinux.h>
Chris PeBenito 473ea7
.sp
Chris PeBenito 473ea7
.B int selinux_getenforcemode(int *enforce);
Chris PeBenito 473ea7
.br
Chris PeBenito 473ea7
Chris PeBenito 473ea7
.SH "DESCRIPTION"
Chris PeBenito 473ea7
.B selinux_getenforcemode
Chris PeBenito 473ea7
Reads the contents of the /etc/selinux/config file to determine how the 
Chris PeBenito 473ea7
system was setup to run SELinux.
Chris PeBenito 473ea7
.br
Chris PeBenito 473ea7
Sets the value of enforce to 1 if SELinux should be run in enforcing mode.
Chris PeBenito 473ea7
Sets the value of enforce to 0 if SELinux should be run in permissive mode.
Chris PeBenito 473ea7
Sets the value of enforce to -1 if SELinux should be disabled.
Chris PeBenito 473ea7
.SH "RETURN VALUE"
Chris PeBenito 473ea7
On success, zero is returned.
Chris PeBenito 473ea7
On failure, -1 is returned.
Chris PeBenito 473ea7
Chris PeBenito 473ea7