1security_disable(3)        SELinux API documentation       security_disable(3)
2
3
4

NAME

6       security_disable - disable the SELinux kernel code at runtime.
7
8

SYNOPSIS

10       #include <selinux/selinux.h>
11
12       int security_disable(void);
13
14

DESCRIPTION

16       security_disable  disables  the SELinux kernel code, unregisters selin‐
17       uxfs from /proc/filesystems, and then unmounts /selinux.
18
19       This function can only be called at runtime and prior  to  the  initial
20       policy  load.  After  the  initial policy load, the SELinux kernel code
21       cannot be disabled, but only  placed  in  "permissive"  mode  by  using
22       setenforce(1).
23
24

RETURN VALUE

26       security_disable returns zero on success or -1 on error.
27
28

AUTHOR

30       This  manual page has been written by Guido Trentalancia <guido@trenta‐
31       lancia.com>
32
33

SEE ALSO

35       selinux(8), setenforce (3)
36
37
38
39                                  21 Nov 2009              security_disable(3)
Impressum