Debian Codegraph @

libselinux/man/man3/security_disable.3

raw
1 .TH "security_disable" "3" "21 Nov 2009" "" "SELinux API documentation"
2 .SH "NAME"
3 security_disable \- disable the SELinux kernel code at runtime
4 .
5 .SH "SYNOPSIS"
6 .B #include <selinux/selinux.h>
7 .sp
8 .BI "int security_disable(void);"
9 .
10 .SH "DESCRIPTION"
11 .BR security_disable ()
12 disables the SELinux kernel code, unregisters selinuxfs from
13 .IR /proc/filesystems ,
14 and then unmounts
15 .IR /sys/fs/selinux .
16 .sp
17 This function can only be called at runtime and prior to the initial policy
18 load. After the initial policy load, the SELinux kernel code cannot be disabled,
19 but only placed in "permissive" mode by using
20 .BR security_setenforce(3).
21 .
22 .SH "RETURN VALUE"
23 .BR security_disable ()
24 returns zero on success or \-1 on error.
25 .
26 .SH "AUTHOR"
27 This manual page has been written by Guido Trentalancia <[email protected]>
28 .
29 .SH "SEE ALSO"
30 .BR selinux (8), " setenforce "(8)