2010-03-18 20:38:17 +00:00
|
|
|
.TH "is_selinux_enabled" "3" "7 Mar 2010" "russell@coker.com.au" "SELinux API documentation"
|
2008-08-19 19:30:36 +00:00
|
|
|
.SH "NAME"
|
|
|
|
is_selinux_enabled \- check whether SELinux is enabled
|
2012-11-13 20:15:34 +00:00
|
|
|
.
|
2008-09-29 19:55:18 +00:00
|
|
|
.SH "NAME"
|
2016-05-01 18:18:03 +00:00
|
|
|
is_selinux_mls_enabled \- check whether SELinux is enabled for (Multi Level Security) MLS
|
2012-11-13 20:15:34 +00:00
|
|
|
.
|
2008-08-19 19:30:36 +00:00
|
|
|
.SH "SYNOPSIS"
|
|
|
|
.B #include <selinux/selinux.h>
|
|
|
|
.sp
|
|
|
|
.B int is_selinux_enabled();
|
2012-11-13 20:15:34 +00:00
|
|
|
.sp
|
2008-09-29 19:55:18 +00:00
|
|
|
.B int is_selinux_mls_enabled();
|
2012-11-13 20:15:34 +00:00
|
|
|
.
|
2008-08-19 19:30:36 +00:00
|
|
|
.SH "DESCRIPTION"
|
2012-11-13 20:15:34 +00:00
|
|
|
.BR is_selinux_enabled ()
|
2008-09-29 19:55:18 +00:00
|
|
|
returns 1 if SELinux is running or 0 if it is not.
|
|
|
|
|
2012-11-13 20:15:34 +00:00
|
|
|
.BR is_selinux_mls_enabled ()
|
2016-06-20 15:41:54 +00:00
|
|
|
returns 1 if SELinux is capable of running in MLS mode or 0 if it is not. To
|
|
|
|
determine the policy in use on the system, use
|
|
|
|
.BR selinux_getpolicytype (3).
|
2012-11-13 20:15:34 +00:00
|
|
|
.
|
2008-08-19 19:30:36 +00:00
|
|
|
.SH "SEE ALSO"
|
|
|
|
.BR selinux "(8)"
|