selinux_getenforcemode man page on CentOS

Man page or keyword search:  
man Server   8420 pages
apropos Keyword Search (all sections)
Output format
CentOS logo
[printable version]

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)
[top]

List of man pages available for CentOS

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net