logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

selabel_get_digests_all_partial_matches - retrieve the partial matches digest and the xattr digest that

Description

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 handle hnd.
       The key parameter is the path to retrieve the digests.
       The  calculated_digest  is a pointer to the key calculated file_contexts digest of all applicable partial
       matches, or NULL if none exist. The caller must free(3) the buffer.
       The xattr_digest is a pointer to the keyxattr(7) stored digest, or NULL  if  it  does  not  exist.   The
       caller must free(3) the buffer.
       The  digest_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.

Name

       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.

Return Value

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

See Also

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

SELinux API documentation                         14 April 2019       selabel_get_digests_all_partial_matches(3)

Synopsis

#include<stdbool.h>#include<selinux/selinux.h>#include<selinux/label.h>boolselabel_get_digests_all_partial_matches(structselabel_handle*hnd,constchar*key,uint8_t**calculated_digest,uint8_t**xattr_digest,size_t*digest_len);

See Also