73 lines
1.9 KiB
HTML
73 lines
1.9 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of matchmediacon</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>matchmediacon</H1>
|
|
Section: SELinux API documentation (3)<BR>Updated: 15 November 2004<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>
|
|
|
|
matchmediacon - get the default SELinux security context for the specified mediatype from the policy
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<B>#include <<A HREF="file:///usr/include/selinux/selinux.h">selinux/selinux.h</A>></B>
|
|
|
|
<P>
|
|
<B>int matchmediacon(const char *</B><I>media</I><B>, char **</B><I>con</I><B>);</B>
|
|
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
<B>matchmediacon</B>()
|
|
|
|
matches the specified media type with the media contexts configuration and
|
|
sets the security context
|
|
<I>con</I>
|
|
|
|
to refer to the resulting context.
|
|
<P>
|
|
<B>Note:</B>
|
|
|
|
Caller must free returned security context
|
|
<I>con</I>
|
|
|
|
using
|
|
<B><A HREF="/cgi-bin/man/man2html?3+freecon">freecon</A></B>(3).
|
|
|
|
<A NAME="lbAE"> </A>
|
|
<H2>RETURN VALUE</H2>
|
|
|
|
Returns 0 on success or -1 otherwise.
|
|
<A NAME="lbAF"> </A>
|
|
<H2>Files</H2>
|
|
|
|
<I>/etc/selinux/{POLICYTYPE}/contexts/files/media</I>
|
|
|
|
<A NAME="lbAG"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?8+selinux">selinux</A></B>(8), <B><A HREF="/cgi-bin/man/man2html?3+freecon">freecon</A></B>(3)
|
|
|
|
<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">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">Files</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:47 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|