Movatterモバイル変換


[0]ホーム

URL:


man7.org > Linux >man-pages

Linux/UNIX system programming training


selabel_get_digests_all_partial_matches(3) — Linux manual page

NAME |SYNOPSIS |DESCRIPTION |RETURN VALUE |SEE ALSO |COLOPHON

selabel_...l_matches(3)  Library Functions Manualselabel_...l_matches(3)

NAME        top

       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.

SYNOPSIS        top

#include <stdbool.h>#include <selinux/selinux.h>#include <selinux/label.h>bool selabel_get_digests_all_partial_matches(struct selabel_handle*hnd,const char *key,uint8_t**calculated_digest,uint8_t **xattr_digest,size_t *digest_len);

DESCRIPTION        top

selabel_get_digests_all_partial_matches() retrieves the       file_contexts partial matches digest and the xattr digest that       applies to the supplied path on the handlehnd.       Thekey parameter is the path to retrieve the digests.       Thecalculated_digest is a pointer to thekey calculated       file_contexts digest of all applicable partial matches, or NULL if       none exist. The caller mustfree(3) the buffer.       Thexattr_digest is a pointer to thekeyxattr(7) stored digest,       or NULL if it does not exist.  The caller mustfree(3) the buffer.       Thedigest_len 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.

RETURN VALUE        top

       TRUE if the digests match or FALSE if they do not or either or       both are missing.

SEE ALSO        top

selinux_restorecon(3),selabel_partial_match(3),selabel_open(3),selinux(8),selabel_file(5)

COLOPHON        top

       This page is part of theselinux (Security-Enhanced Linux user-       space libraries and tools) project.  Information about the project       can be found at ⟨https://github.com/SELinuxProject/selinux/wiki⟩.       If you have a bug report for this manual page, see       ⟨https://github.com/SELinuxProject/selinux/wiki/Contributing⟩.       This page was obtained from the project's upstream Git repository       ⟨https://github.com/SELinuxProject/selinux⟩ on 2025-08-11.  (At       that time, the date of the most recent commit that was found in       the repository was 2025-08-04.)  If you discover any rendering       problems in this HTML version of the page, or you believe there is       a better or more up-to-date source for the page, or you have       corrections or improvements to the information in this COLOPHON       (which isnot part of the original manual page), send a mail to       man-pages@man7.orgSELinux API documentation     14 April 2019selabel_...l_matches(3)

Pages that refer to this page:selinux_restorecon(3)



HTML rendering created 2025-09-06 byMichael Kerrisk, author ofThe Linux Programming Interface.

For details of in-depthLinux/UNIX system programming training courses that I teach, lookhere.

Hosting byjambit GmbH.

Cover of TLPI


[8]ページ先頭

©2009-2025 Movatter.jp