65 lines
1.7 KiB
HTML
65 lines
1.7 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of is_selinux_enabled</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>is_selinux_enabled</H1>
|
|
Section: SELinux API documentation (3)<BR>Updated: 7 Mar 2010<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
is_selinux_enabled - check whether SELinux is enabled
|
|
<A NAME="lbAC"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
is_selinux_mls_enabled - check whether SELinux is enabled for (Multi Level Security) MLS
|
|
<A NAME="lbAD"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<B>#include <<A HREF="file:///usr/include/selinux/selinux.h">selinux/selinux.h</A>></B>
|
|
|
|
<P>
|
|
<B>int is_selinux_enabled();</B>
|
|
|
|
<P>
|
|
<B>int is_selinux_mls_enabled();</B>
|
|
|
|
<A NAME="lbAE"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
<B>is_selinux_enabled</B>()
|
|
|
|
returns 1 if SELinux is running or 0 if it is not.
|
|
On error, -1 is returned.
|
|
<P>
|
|
<B>is_selinux_mls_enabled</B>()
|
|
|
|
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
|
|
<B><A HREF="/cgi-bin/man/man2html?3+selinux_getpolicytype">selinux_getpolicytype</A></B>(3).
|
|
|
|
<A NAME="lbAF"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?8+selinux">selinux</A></B>(8)
|
|
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="1"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="2"><A HREF="#lbAC">NAME</A><DD>
|
|
<DT id="3"><A HREF="#lbAD">SYNOPSIS</A><DD>
|
|
<DT id="4"><A HREF="#lbAE">DESCRIPTION</A><DD>
|
|
<DT id="5"><A HREF="#lbAF">SEE ALSO</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:46 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|