security_disable

Section: SELinux API documentation (3)
Updated: 21 Nov 2009
Index Return to Main Contents
 

NAME

security_disable - disable the SELinux kernel code at runtime  

SYNOPSIS

#include <selinux/selinux.h>

int security_disable(void);  

DESCRIPTION

security_disable() disables the SELinux kernel code, unregisters selinuxfs from /proc/filesystems, and then unmounts /selinux.

This function can only be called at runtime and prior to the initial policy load. After the initial policy load, the SELinux kernel code cannot be disabled, but only placed in "permissive" mode by using security_setenforce(3).  

RETURN VALUE

security_disable() returns zero on success or -1 on error.  

AUTHOR

This manual page has been written by Guido Trentalancia <guido@trentalancia.com>  

SEE ALSO

selinux(8), setenforce (8)


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
AUTHOR
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 03:18:30 GMT, January 20, 2018