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

75 lines
1.8 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of selinux_boolean_sub</TITLE>
</HEAD><BODY>
<H1>selinux_boolean_sub</H1>
Section: SELinux API documentation (3)<BR>Updated: 11 June 2012<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>
selinux_boolean_sub - Search the translated name for a boolean_name record
<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>char *selinux_boolean_sub(const char *</B><I>boolean_name</I><B>);</B>
<P>
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
<B>selinux_boolean_sub</B>()
searches the
<I>/etc/selinux/{POLICYTYPE}/booleans.subs_dist</I>
file
for a matching boolean_name record. If the record exists the boolean substitution name is returned. If not
<B>selinux_boolean_sub</B>()
returns the original
<I>boolean_name</I>.
<P>
<A NAME="lbAE">&nbsp;</A>
<H2>RETURN VALUE</H2>
<B>selinux_boolean_sub</B>()
returns the
<I>boolean_name</I>
or the substituted name on success. The returned value must be freed with
<B><A HREF="/cgi-bin/man/man2html?3+free">free</A></B>(3).
<B>selinux_boolean_sub</B>()
returns NULL on error.
<A NAME="lbAF">&nbsp;</A>
<H2>SEE ALSO</H2>
<B><A HREF="/cgi-bin/man/man2html?3+security_get_boolean_names">security_get_boolean_names</A></B>(3)
<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">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>