1selabel_get_digests_all_partLiiablr_amraytcFhusenescl(ta3ib)oenls_gMeatn_udailgests_all_partial_matches(3)
2
3
4
6 selabel_get_digests_all_partial_matches - retrieve the partial matches
7 digest and the xattr digest that applies to the supplied path - Only
8 supported on file backend.
9
11 #include <stdbool.h>
12 #include <selinux/selinux.h>
13 #include <selinux/label.h>
14
15 bool selabel_get_digests_all_partial_matches(
16 struct selabel_handle *hnd,
17 const char *key,
18 uint8_t **calculated_digest,
19 uint8_t **xattr_digest,
20 size_t *digest_len);
21
23 selabel_get_digests_all_partial_matches() retrieves the file_contexts
24 partial matches digest and the xattr digest that applies to the sup‐
25 plied path on the handle hnd.
26 The key parameter is the path to retrieve the digests.
27 The calculated_digest is a pointer to the key calculated file_contexts
28 digest of all applicable partial matches, or NULL if none exist. The
29 caller must free(3) the buffer.
30 The xattr_digest is a pointer to the key xattr(7) stored digest, or
31 NULL if it does not exist. The caller must free(3) the buffer.
32 The digest_len is the length of the digests that will always be
33 returned (even if both are NULL). Note that if both digests are
34 returned, they will always be the same length.
35
36
38 TRUE if the digests match or FALSE if they do not or either or both are
39 missing.
40
41
43 selinux_restorecon(3), selabel_partial_match(3), selabel_open(3),
44 selinux(8), selabel_file(5)
45
46
47
48SELinux API documentation 14 Asperlialbe2l0_1g9et_digests_all_partial_matches(3)