1security_disable(3) SELinux API documentation security_disable(3)
2
3
4
6 security_disable - disable the SELinux kernel code at runtime
7
9 #include <selinux/selinux.h>
10
11 int security_disable(void);
12
14 security_disable() disables the SELinux kernel code, unregisters selin‐
15 uxfs from /proc/filesystems, and then unmounts /sys/fs/selinux.
16
17 This function can only be called at runtime and prior to the initial
18 policy load. After the initial policy load, the SELinux kernel code
19 cannot be disabled, but only placed in "permissive" mode by using secu‐
20 rity_setenforce(3).
21
23 security_disable() returns zero on success or -1 on error.
24
26 This manual page has been written by Guido Trentalancia <guido@trenta‐
27 lancia.com>
28
30 selinux(8), setenforce (8)
31
32
33
34 21 Nov 2009 security_disable(3)