Man page - selabel_get_digests_all_partial_matches(3)
Packages contains this manual
- selinux_homedir_context_path(3)
- selinux_check_securetty_context(3)
- get_default_context_with_level(3)
- security_compute_relabel_raw(3)
- getkeycreatecon(3)
- selinux_set_policy_root(3)
- security_mkload_policy(3)
- matchpathcon(3)
- selinux_file_context_homedir_path(3)
- selabel_partial_match(3)
- selinux_restorecon_default_handle(3)
- selinux_path(3)
- get_default_type(3)
- freeconary(3)
- avc_sid_to_context(3)
- selinux_restorecon_set_sehandle(3)
- security_compute_create_raw(3)
- lsetfilecon(3)
- getpeercon(3)
- avc_sid_stats(3)
- getpidprevcon_raw(3)
- security_setenforce(3)
- security_compute_create_name_raw(3)
- avc_cleanup(3)
- context_range_set(3)
- getprevcon_raw(3)
- is_selinux_enabled(3)
- setcon_raw(3)
- avc_reset(3)
- avc_add_callback(3)
- setfscreatecon_raw(3)
- security_compute_av_raw(3)
- getkeycreatecon_raw(3)
- get_default_context(3)
- setexeccon(3)
- get_default_context_with_role(3)
- selinux_netfilter_context_path(3)
- selinux_set_mapping(3)
- selinux_status_policyload(3)
- selinux_media_context_path(3)
- context_range_get(3)
- getfscreatecon_raw(3)
- security_getenforce(3)
- selabel_lookup_raw(3)
- get_ordered_context_list(3)
- selinux_status_deny_unknown(3)
- setexecfilecon(3)
- selabel_stats(3)
- selinux_status_getenforce(3)
- security_compute_create_name(3)
- security_compute_user_raw(3)
- getcon_raw(3)
- selinux_file_context_cmp(3)
- avc_netlink_release_fd(3)
- selinux_current_policy_path(3)
- print_access_vector(3)
- fgetfilecon_raw(3)
- selinux_getpolicytype(3)
- selinux_failsafe_context_path(3)
- selabel_lookup_best_match(3)
- setexeccon_raw(3)
- getfscreatecon(3)
- selabel_lookup_best_match_raw(3)
- security_validatetrans_raw(3)
- context_free(3)
- context_type_get(3)
- fgetfilecon(3)
- avc_get_initial_context(3)
- getseuserbyname(3)
- avc_audit(3)
- selinux_default_context_path(3)
- matchpathcon_fini(3)
- selinux_file_context_local_path(3)
- selinux_removable_context_path(3)
- set_selinuxmnt(3)
- security_load_booleans(3)
- selinux_boolean_sub(3)
- setfilecon(3)
- context_str(3)
- selinux_restorecon_parallel(3)
- setsockcreatecon_raw(3)
- security_compute_av_flags(3)
- selinux_file_context_verify(3)
- mode_to_security_class(3)
- security_set_boolean(3)
- selinux_check_access(3)
- security_check_context_raw(3)
- string_to_av_perm(3)
- lgetfilecon_raw(3)
- selinux_init_load_policy(3)
- selinux_getenforcemode(3)
- getsockcreatecon(3)
- query_user_context(3)
- getpidcon_raw(3)
- selinux_restorecon_set_alt_rootpath(3)
- security_reject_unknown(3)
- selinux_usersconf_path(3)
- avc_compute_member(3)
- matchpathcon_init(3)
- avc_open(3)
- setkeycreatecon_raw(3)
- security_deny_unknown(3)
- selinux_contexts_path(3)
- selinux_restorecon_set_exclude_list(3)
- manual_user_enter_context(3)
- sidget(3)
- avc_compute_create(3)
- avc_entry_ref_init(3)
- security_get_boolean_pending(3)
- avc_has_perm_noaudit(3)
- security_class_to_string(3)
- security_disable(3)
- context_type_set(3)
- selinux_restorecon(3)
- avc_has_perm(3)
- security_compute_av(3)
- security_set_boolean_list(3)
- security_get_boolean_names(3)
- selabel_open(3)
- selinux_status_open(3)
- avc_init(3)
- setsockcreatecon(3)
- security_validatetrans(3)
- get_ordered_context_list_with_level(3)
- security_compute_user(3)
- avc_destroy(3)
- matchpathcon_checkmatches(3)
- security_get_boolean_active(3)
- getprevcon(3)
- matchpathcon_filespec_destroy(3)
- get_default_context_with_rolelevel(3)
- context_role_set(3)
- selinux_file_context_path(3)
- fini_selinuxmnt(3)
- security_compute_member_raw(3)
- security_compute_relabel(3)
- selabel_close(3)
- selinux_lsetfilecon_default(3)
- security_check_context(3)
- selinux_binary_policy_path(3)
- avc_netlink_open(3)
- security_compute_av_flags_raw(3)
- security_commit_booleans(3)
- selinux_x_context_path(3)
- matchpathcon_filespec_add(3)
- security_get_initial_context_raw(3)
- avc_cache_stats(3)
- init_selinuxmnt(3)
- getcon(3)
- avc_get_initial_sid(3)
- context_new(3)
- matchmediacon(3)
- getpidprevcon(3)
- is_selinux_mls_enabled(3)
- string_to_security_class(3)
- getexeccon(3)
- selinux_status_updated(3)
- selinux_set_callback(3)
- selinux_default_type_path(3)
- freecon(3)
- set_matchpathcon_flags(3)
- lsetfilecon_raw(3)
- avc_netlink_check_nb(3)
- getexeccon_raw(3)
- avc_av_stats(3)
- fsetfilecon_raw(3)
- selinux_user_contexts_path(3)
- setfilecon_raw(3)
- security_compute_create(3)
- matchpathcon_index(3)
- set_matchpathcon_printf(3)
- selabel_lookup(3)
- selinux_mkload_policy(3)
- selinux_policy_root(3)
- security_load_policy(3)
- getfilecon(3)
- security_av_string(3)
- selinux_restorecon_get_skipped_errors(3)
- sidput(3)
- avc_netlink_acquire_fd(3)
- getpidcon(3)
- avc_context_to_sid(3)
- setkeycreatecon(3)
- security_policyvers(3)
- lgetfilecon(3)
- rpm_execcon(3)
- set_matchpathcon_invalidcon(3)
- setfscreatecon(3)
- selinux_status_close(3)
- getfilecon_raw(3)
- setcon(3)
- matchpathcon_filespec_eval(3)
- selinux_sepgsql_context_path(3)
- security_get_initial_context(3)
- context_user_set(3)
- context_user_get(3)
- security_get_checkreqprot(3)
- selinux_raw_context_to_color(3)
- security_compute_member(3)
- selinux_restorecon_xattr(3)
- selinux_colors_path(3)
- context_role_get(3)
- selinux_check_passwd_access(3)
- avc_netlink_loop(3)
- getpeercon_raw(3)
- selabel_get_digests_all_partial_matches(3)
- selinux_securetty_types_path(3)
- security_av_perm_to_string(3)
- getsockcreatecon_raw(3)
- fsetfilecon(3)
- is_context_customizable(3)
- selabel_digest(3)
- avc_netlink_close(3)
apt-get install libselinux1-dev
Manual
selabel_get_digests_all_partial_matches
NAMESYNOPSIS
DESCRIPTION
RETURN VALUE
SEE ALSO
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.
SYNOPSIS
#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
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
key
xattr
(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.
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)