xref: /aosp_15_r20/external/selinux/libselinux/man/man3/security_disable.3 (revision 2d543d20722ada2425b5bdab9d0d1d29470e7bba)
"security_disable" "3" "21 Nov 2009" "" "SELinux API documentation"
"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 /sys/fs/selinux . This function is only supported on Linux 6.3 and earlier, and 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 <[email protected]> .
"SEE ALSO"
selinux (8), " setenforce "(8)