File: is_selinux_enabled.3

package info (click to toggle)
libselinux 2.3-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-backports, jessie-kfreebsd
  • size: 2,052 kB
  • ctags: 2,413
  • sloc: ansic: 13,550; makefile: 320; sh: 20
file content (24 lines) | stat: -rw-r--r-- 636 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
.TH "is_selinux_enabled" "3" "7 Mar 2010" "russell@coker.com.au" "SELinux API documentation"
.SH "NAME"
is_selinux_enabled \- check whether SELinux is enabled
.
.SH "NAME"
is_selinux_mls_enabled \- check whether SELinux is enabled for (Multi Level Securty) MLS 
.
.SH "SYNOPSIS"
.B #include <selinux/selinux.h>
.sp
.B int is_selinux_enabled();
.sp
.B int is_selinux_mls_enabled();
.
.SH "DESCRIPTION"
.BR is_selinux_enabled ()
returns 1 if SELinux is running or 0 if it is not. 
On error, \-1 is returned.

.BR is_selinux_mls_enabled ()
returns 1 if SELinux is running in MLS mode or 0 if it is not. 
.
.SH "SEE ALSO"
.BR selinux "(8)"