File: is_selinux_enabled.3

package info (click to toggle)
libselinux 2.1.9-5
  • links: PTS, VCS
  • area: main
  • in suites: wheezy, wheezy-backports
  • size: 1,908 kB
  • sloc: ansic: 12,295; makefile: 293; sh: 25
file content (24 lines) | stat: -rw-r--r-- 621 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();

.B int is_selinux_mls_enabled();

.SH "DESCRIPTION"
.B is_selinux_enabled
returns 1 if SELinux is running or 0 if it is not. 
On error, \-1 is returned.

.B 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)"