security_setenforce man page on CentOS

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

security_getenforce(3)	   SELinux API documentation	security_getenforce(3)

NAME
       security_getenforce,  security_setenforce  -  get  or set the enforcing
       state of SELinux

SYNOPSIS
       #include <selinux/selinux.h>

       int security_getenforce();

       int security_setenforce(int value);

DESCRIPTION
       security_getenforce returns 0 if SELinux is running in permissive mode,
       1 if it is running in enforcing mode, and -1 on error.

       security_setenforce  sets  SELinux  to enforcing mode if the value 1 is
       passed in, and sets it to permissive mode if 0 is passed in.   On  suc‐
       cess 0 is returned, on error -1 is returned.

SEE ALSO
       selinux(8)

russell@coker.com.au		1 January 2004		security_getenforce(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