selinux_getenforcemode(3) debian man page | unix.com

Man Page: selinux_getenforcemode

Operating Environment: debian

Section: 3

selinux_getenforcemode(3)				     SELinux API documentation					 selinux_getenforcemode(3)

NAME
selinux_getenforcemode - get the enforcing state of SELinux
SYNOPSIS
#include <selinux/selinux.h> int selinux_getenforcemode(int *enforce);
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 per- missive mode. Sets the value of enforce to -1 if SELinux should be disabled.
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)
Related Man Pages
check-selinux-installation(8) - debian
selinux-config-enforcing(8) - debian
security_mkload_policy(3) - centos
selinux(8) - linux
selinux(8) - opensolaris
Similar Topics in the Unix Linux Community
Adding the individual columns of a matrix.
How can I do this in VI editor?
Is UNIX an open source OS ?
Weird 'find' results
How to copy a column of multiple files and paste into new excel file (next to column)?