1is_selinux_enabled(3) SELinux API documentation is_selinux_enabled(3)
2
3
4
6 is_selinux_enabled - check whether SELinux is enabled
7
9 is_selinux_mls_enabled - check whether SELinux is enabled for (Multi
10 Level Security) MLS
11
13 #include <selinux/selinux.h>
14
15 int is_selinux_enabled();
16
17 int is_selinux_mls_enabled();
18
20 is_selinux_enabled() returns 1 if SELinux is running or 0 if it is not.
21 On error, -1 is returned.
22
23 is_selinux_mls_enabled() returns 1 if SELinux is capable of running in
24 MLS mode or 0 if it is not. To determine the policy in use on the sys‐
25 tem, use selinux_getpolicytype(3).
26
28 selinux(8)
29
30
31
32russell@coker.com.au 7 Mar 2010 is_selinux_enabled(3)