File: security_disable.3

package info (click to toggle)
libselinux 3.8.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 2,380 kB
  • sloc: ansic: 17,619; makefile: 416; sh: 48; python: 21
file content (31 lines) | stat: -rw-r--r-- 919 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
.TH "security_disable" "3" "21 Nov 2009" "" "SELinux API documentation"
.SH "NAME"
security_disable \- disable the SELinux kernel code at runtime
.
.SH "SYNOPSIS"
.B #include <selinux/selinux.h>
.sp
.BI "int security_disable(void);"
.
.SH "DESCRIPTION"
.BR security_disable ()
disables the SELinux kernel code, unregisters selinuxfs from
.IR /proc/filesystems ,
and then unmounts
.IR /sys/fs/selinux .
.sp
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
.BR security_setenforce(3).
.
.SH "RETURN VALUE"
.BR security_disable ()
returns zero on success or \-1 on error.
.
.SH "AUTHOR"
This manual page has been written by Guido Trentalancia <guido@trentalancia.com>
.
.SH "SEE ALSO"
.BR selinux (8), " setenforce "(8)