139 lines
3.1 KiB
HTML
139 lines
3.1 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of selabel_get_digests_all_partial_matches</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>selabel_get_digests_all_partial_matches</H1>
|
|
Section: C Library Functions (3)<BR>Updated: 14 April 2019<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<P>
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
selabel_get_digests_all_partial_matches - retrieve the partial matches digest
|
|
and the xattr digest that applies to the supplied path - Only supported
|
|
on file backend.
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<B>#include <<A HREF="file:///usr/include/stdbool.h">stdbool.h</A>></B>
|
|
|
|
<BR>
|
|
|
|
<B>#include <<A HREF="file:///usr/include/selinux/selinux.h">selinux/selinux.h</A>></B>
|
|
|
|
<BR>
|
|
|
|
<B>#include <<A HREF="file:///usr/include/selinux/label.h">selinux/label.h</A>></B>
|
|
|
|
<P>
|
|
<B>bool selabel_get_digests_all_partial_matches(</B>
|
|
|
|
|
|
<B>struct selabel_handle *</B><I>hnd</I><B>,</B>
|
|
|
|
<BR>
|
|
|
|
<B>const char *</B><I>key</I><B>,</B>
|
|
|
|
<BR>
|
|
|
|
<B>uint8_t **</B><I>calculated_digest</I><B>,</B>
|
|
|
|
<BR>
|
|
|
|
<B>uint8_t **</B><I>xattr_digest</I><B>,</B>
|
|
|
|
<BR>
|
|
|
|
<B>size_t *</B><I>digest_len</I><B>);</B>
|
|
|
|
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
<B>selabel_get_digests_all_partial_matches</B>()
|
|
|
|
retrieves the file_contexts partial matches digest and the xattr digest that
|
|
applies to the supplied path on the handle
|
|
<I>hnd</I>.
|
|
|
|
<BR>
|
|
|
|
The
|
|
<I>key</I>
|
|
|
|
parameter is the path to retrieve the digests.
|
|
<BR>
|
|
|
|
The
|
|
<I>calculated_digest</I>
|
|
|
|
is a pointer to the
|
|
<I>key</I>
|
|
|
|
calculated file_contexts digest of all applicable partial matches, or NULL if
|
|
none exist. The caller must
|
|
<B><A HREF="/cgi-bin/man/man2html?3+free">free</A></B>(3)
|
|
|
|
the buffer.
|
|
<BR>
|
|
|
|
The
|
|
<I>xattr_digest</I>
|
|
|
|
is a pointer to the
|
|
<I>key</I>
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?7+xattr">xattr</A></B>(7)
|
|
|
|
stored digest, or NULL if it does not exist.
|
|
The caller must
|
|
<B><A HREF="/cgi-bin/man/man2html?3+free">free</A></B>(3)
|
|
|
|
the buffer.
|
|
<BR>
|
|
|
|
The
|
|
<I>digest_len</I>
|
|
|
|
is the length of the digests that will always be returned (even if both are
|
|
NULL). Note that if both digests are returned, they will always be the same length.
|
|
<P>
|
|
<A NAME="lbAE"> </A>
|
|
<H2>RETURN VALUE</H2>
|
|
|
|
TRUE if the digests match or FALSE if they do not or either or both are missing.
|
|
<P>
|
|
<A NAME="lbAF"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?3+selinux_restorecon">selinux_restorecon</A></B>(3),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?3+selabel_partial_match">selabel_partial_match</A></B>(3),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?3+selabel_open">selabel_open</A></B>(3),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?8+selinux">selinux</A></B>(8),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?5+selabel_file">selabel_file</A></B>(5)
|
|
|
|
<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">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>
|