man-pages/man3/security_disable.3.html
2021-03-31 01:06:50 +01:00

72 lines
2.0 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of security_disable</TITLE>
</HEAD><BODY>
<H1>security_disable</H1>
Section: SELinux API documentation (3)<BR>Updated: 21 Nov 2009<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
security_disable - disable the SELinux kernel code at runtime
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<B>#include &lt;<A HREF="file:///usr/include/selinux/selinux.h">selinux/selinux.h</A>&gt;</B>
<P>
<B>int security_disable(void);</B>
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
<B>security_disable</B>()
disables the SELinux kernel code, unregisters selinuxfs from
<I>/proc/filesystems</I>,
and then unmounts
<I>/sys/fs/selinux</I>.
<P>
This function can only be called at runtime and prior to the initial policy
load. After the initial policy load, the SELinux kernel code cannot be disabled,
but only placed in &quot;permissive&quot; mode by using
<B><A HREF="/cgi-bin/man/man2html?3+security_setenforce">security_setenforce</A>(3).</B>
<A NAME="lbAE">&nbsp;</A>
<H2>RETURN VALUE</H2>
<B>security_disable</B>()
returns zero on success or -1 on error.
<A NAME="lbAF">&nbsp;</A>
<H2>AUTHOR</H2>
This manual page has been written by Guido Trentalancia &lt;<A HREF="mailto:guido@trentalancia.com">guido@trentalancia.com</A>&gt;
<A NAME="lbAG">&nbsp;</A>
<H2>SEE ALSO</H2>
<B><A HREF="/cgi-bin/man/man2html?8+selinux">selinux</A></B>(8),<B> setenforce (8)</B>
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="1"><A HREF="#lbAB">NAME</A><DD>
<DT id="2"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="3"><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT id="4"><A HREF="#lbAE">RETURN VALUE</A><DD>
<DT id="5"><A HREF="#lbAF">AUTHOR</A><DD>
<DT id="6"><A HREF="#lbAG">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:56 GMT, March 31, 2021
</BODY>
</HTML>