selinux_getenforcemode - get the enforcing state of SELinux
Contents
Description
selinux_getenforcemode() Reads the contents of the /etc/selinux/config file to determine how the system
was setup to run SELinux.
Sets the value of enforce to 1 if SELinux should be run in enforcing mode. Sets the value of enforce to
0 if SELinux should be run in permissive mode. Sets the value of enforce to -1 if SELinux should be
disabled.
Name
selinux_getenforcemode - get the enforcing state of SELinux
Return Value
On success, zero is returned. On failure, -1 is returned.
See Also
selinux(8) dwalsh@redhat.com 25 May 2004 selinux_getenforcemode(3)
Synopsis
#include<selinux/selinux.h>intselinux_getenforcemode(int*enforce);
