Debian Codegraph @

libselinux/man/man3/is_selinux_enabled.3

raw
1 .TH "is_selinux_enabled" "3" "7 Mar 2010" "[email protected]" "SELinux API documentation"
2 .SH "NAME"
3 is_selinux_enabled \- check whether SELinux is enabled
4 .
5 .SH "NAME"
6 is_selinux_mls_enabled \- check whether SELinux is enabled for (Multi Level Security) MLS
7 .
8 .SH "SYNOPSIS"
9 .B #include <selinux/selinux.h>
10 .sp
11 .B int is_selinux_enabled();
12 .sp
13 .B int is_selinux_mls_enabled();
14 .
15 .SH "DESCRIPTION"
16 .BR is_selinux_enabled ()
17 returns 1 if SELinux is running or 0 if it is not.
18 On error, \-1 is returned.
19
20 .BR is_selinux_mls_enabled ()
21 returns 1 if SELinux is capable of running in MLS mode or 0 if it is not. To
22 determine the policy in use on the system, use
23 .BR selinux_getpolicytype (3).
24 .
25 .SH "SEE ALSO"
26 .BR selinux "(8)"