security_disable (3) - Linux Man Pages
security_disable: disable the SELinux kernel code at runtime
security_disable - disable the SELinux kernel code at runtime
DESCRIPTIONsecurity_disable() disables the SELinux kernel code, unregisters selinuxfs from /proc/filesystems, and then unmounts /sys/fs/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 VALUEsecurity_disable() returns zero on success or -1 on error.
AUTHORThis manual page has been written by Guido Trentalancia <guido [at] trentalancia.com>
SEE ALSOselinux(8), setenforce (8)