Home
last modified time | relevance | path

Searched refs:cdhash (Results 1 – 25 of 31) sorted by relevance

12

/xnu-11215/bsd/kern/
H A Dkern_trustcache.c199 const uint8_t cdhash[kTCEntryHashSize], in txm_query_trust_cache()
230 const uint8_t cdhash[kTCEntryHashSize], in txm_query_trust_cache_for_rem()
239 kern_return_t ret = txm_kernel_call(&txm_call, cdhash); in txm_query_trust_cache_for_rem()
247 (void)cdhash; in txm_query_trust_cache_for_rem()
421 const uint8_t cdhash[kTCEntryHashSize], in ppl_query_trust_cache()
622 const uint8_t cdhash[kTCEntryHashSize], in xnu_query_trust_cache()
639 cdhash, in xnu_query_trust_cache()
929 const uint8_t cdhash[kTCEntryHashSize], in query_trust_cache()
934 if (cdhash == NULL) { in query_trust_cache()
952 const uint8_t cdhash[kTCEntryHashSize], in query_trust_cache_for_rem()
[all …]
H A Dkern_codesigning.c874 const uint8_t cdhash[CS_CDHASH_LEN]) in set_compilation_service_cdhash()
876 CSM_PREFIX(set_compilation_service_cdhash)(cdhash); in set_compilation_service_cdhash()
881 const uint8_t cdhash[CS_CDHASH_LEN]) in match_compilation_service_cdhash()
883 return CSM_PREFIX(match_compilation_service_cdhash)(cdhash); in match_compilation_service_cdhash()
901 __unused const uint8_t cdhash[CS_CDHASH_LEN]) in unrestrict_local_signing_cdhash()
909 CSM_PREFIX(unrestrict_local_signing_cdhash)(cdhash); in unrestrict_local_signing_cdhash()
H A Dkern_exec.c4870 uint8_t *cdhash = cs_get_cdhash(p); in posix_spawn() local
4871 if (cdhash) { in posix_spawn()
5479 uint8_t *cdhash = cs_get_cdhash(p); in __mac_execve() local
5480 if (cdhash) { in __mac_execve()
6348 uint8_t cdhash[SHA1_RESULTLEN]; in exec_add_apple_strings() local
6355 snprintf(p, 3, "%02x", (int) cdhash[i]); in exec_add_apple_strings()
6370 SHA256_Update(&sha_ctx, cdhash, sizeof(cdhash)); in exec_add_apple_strings()
7850 uint8_t cdhash[CS_CDHASH_LEN]; in process_signature() local
7852 proc_getcdhash(p, cdhash); in process_signature()
7891 uint8_t cdhash[CS_CDHASH_LEN]; in process_signature() local
[all …]
H A Dkern_proc.c1789 proc_getcdhash(proc_t p, unsigned char *cdhash) in proc_getcdhash() argument
1794 return vn_getcdhash(p->p_textvp, p->p_textoff, cdhash); in proc_getcdhash()
3234 unsigned char cdhash[SHA1_RESULTLEN]; in csops_internal() local
3398 error = vn_getcdhash(tvp, toff, cdhash); in csops_internal()
3402 error = copyout(cdhash, uaddr, sizeof(cdhash)); in csops_internal()
/xnu-11215/osfmk/vm/
H A Dpmap_cs.h160 const uint8_t cdhash[kTCEntryHashSize],
171 const uint8_t cdhash[kTCEntryHashSize],
428 uint8_t cdhash[CS_CDHASH_LEN]; member
588 pmap_set_compilation_service_cdhash(const uint8_t cdhash[CS_CDHASH_LEN]);
596 pmap_match_compilation_service_cdhash(const uint8_t cdhash[CS_CDHASH_LEN]);
625 const uint8_t cdhash[CS_CDHASH_LEN]);
H A Dpmap.h847 extern uint32_t pmap_lookup_in_static_trust_cache(const uint8_t cdhash[CS_CDHASH_LEN]);
848 extern bool pmap_lookup_in_loaded_trust_caches(const uint8_t cdhash[CS_CDHASH_LEN]);
/xnu-11215/bsd/kern/code_signing/
H A Dxnu.c118 const uint8_t cdhash[CS_CDHASH_LEN]) in xnu_set_compilation_service_cdhash()
121 memcpy(compilation_service_cdhash, cdhash, CS_CDHASH_LEN); in xnu_set_compilation_service_cdhash()
127 const uint8_t cdhash[CS_CDHASH_LEN]) in xnu_match_compilation_service_cdhash()
132 if (bcmp(compilation_service_cdhash, cdhash, CS_CDHASH_LEN) == 0) { in xnu_match_compilation_service_cdhash()
H A Dppl.c235 const uint8_t cdhash[CS_CDHASH_LEN]) in ppl_set_compilation_service_cdhash()
237 pmap_set_compilation_service_cdhash(cdhash); in ppl_set_compilation_service_cdhash()
242 const uint8_t cdhash[CS_CDHASH_LEN]) in ppl_match_compilation_service_cdhash()
244 return pmap_match_compilation_service_cdhash(cdhash); in ppl_match_compilation_service_cdhash()
262 const uint8_t cdhash[CS_CDHASH_LEN]) in ppl_unrestrict_local_signing_cdhash()
264 pmap_unrestrict_local_signing(cdhash); in ppl_unrestrict_local_signing_cdhash()
H A Dtxm.c928 const uint8_t cdhash[CS_CDHASH_LEN]) in txm_set_compilation_service_cdhash()
936 txm_kernel_call(&txm_call, cdhash); in txm_set_compilation_service_cdhash()
942 const uint8_t cdhash[CS_CDHASH_LEN]) in txm_match_compilation_service_cdhash()
954 ret = txm_kernel_call(&txm_call, cdhash); in txm_match_compilation_service_cdhash()
994 const uint8_t cdhash[CS_CDHASH_LEN]) in txm_unrestrict_local_signing_cdhash()
1001 txm_kernel_call(&txm_call, cdhash); in txm_unrestrict_local_signing_cdhash()
/xnu-11215/bsd/sys/
H A Dtrust_caches.h156 const uint8_t cdhash[kTCEntryHashSize],
168 const uint8_t cdhash[kTCEntryHashSize],
H A Dcode_signing_internal.h85 const uint8_t cdhash[CS_CDHASH_LEN]);
88 const uint8_t cdhash[CS_CDHASH_LEN]);
152 const uint8_t cdhash[CS_CDHASH_LEN]);
H A Dcode_signing.h302 const uint8_t *cdhash);
309 const uint8_t *cdhash);
333 const uint8_t *cdhash);
H A Dvnode.h2537 int vn_getcdhash(struct vnode *vp, off_t offset, unsigned char *cdhash);
/xnu-11215/bsd/security/audit/
H A Daudit_arg.c950 if (id_info->cdhash != NULL) { in audit_identity_info_destruct()
951 kfree_data(id_info->cdhash, id_info->cdhash_len); in audit_identity_info_destruct()
952 id_info->cdhash = NULL; in audit_identity_info_destruct()
964 const uint8_t *cdhash = NULL; in audit_identity_info_construct() local
971 cdhash = csblob_get_cdhash(blob); in audit_identity_info_construct()
1000 if (id_info->cdhash == NULL && cdhash != NULL) { in audit_identity_info_construct()
1001 id_info->cdhash = kalloc_data(CS_CDHASH_LEN, Z_WAITOK | Z_NOFAIL); in audit_identity_info_construct()
1002 memcpy(id_info->cdhash, cdhash, CS_CDHASH_LEN); in audit_identity_info_construct()
H A Daudit_private.h211 u_int8_t *cdhash; member
H A Daudit_syscalls.c164 .cdhash = NULL, in audit()
266 id_info.cdhash, id_info.cdhash_len); in audit()
H A Daudit_bsm_token.c1395 uint8_t* cdhash, uint16_t cdhash_len) in au_to_identity() argument
1440 ADD_MEM(dptr, cdhash, cdhash_len); // cdhash in au_to_identity()
/xnu-11215/osfmk/kern/
H A Dtrustcache.h55 uint8_t cdhash[CS_CDHASH_LEN]; member
H A Dbsd_kern.c78 extern int proc_getcdhash(void *p, char *cdhash);
1430 get_task_cdhash(task_t task, char cdhash[static CS_CDHASH_LEN]) in get_task_cdhash()
1437 result = bsd_info ? proc_getcdhash(bsd_info, cdhash) : ESRCH; in get_task_cdhash()
/xnu-11215/osfmk/arm/pmap/
H A Dpmap.c13162 cdhash,
13216 cdhash,
14201 const uint8_t cdhash[CS_CDHASH_LEN])
14221 cdhash,
14233 const uint8_t cdhash[CS_CDHASH_LEN])
14244 const uint8_t cdhash[CS_CDHASH_LEN])
14267 cdhash,
14307 cdhash[0], cdhash[1], cdhash[2], cdhash[4]);
14414 const uint8_t cdhash[CS_CDHASH_LEN])
14422 cdhash[0], cdhash[1], cdhash[2], cdhash[3], cdhash[4]);
[all …]
/xnu-11215/libkern/libkern/amfi/
H A Damfi.h56 typedef CEError_t (*amfi_OSEntitlements_query)(void* osentitlements, uint8_t cdhash[CS_CDHASH_LEN],…
/xnu-11215/bsd/bsm/
H A Daudit_record.h369 uint8_t* cdhash, uint16_t cdhash_len)
/xnu-11215/bsd/vm/
H A Dvm_unix.c1280 const uint8_t *cdhash = csblob_get_cdhash(blob); in shared_region_map_and_slide_setup() local
1281 if (cdhash == NULL) { in shared_region_map_and_slide_setup()
1294 if (query_trust_cache(kTCQueryTypeAll, cdhash, &qt) == KERN_SUCCESS) { in shared_region_map_and_slide_setup()
/xnu-11215/bsd/netinet/
H A Dflow_divert.c1028 uint8_t *cdhash = NULL; in flow_divert_add_proc_info() local
1080 cdhash = cs_get_cdhash(proc); in flow_divert_add_proc_info()
1081 if (cdhash != NULL) { in flow_divert_add_proc_info()
1085 cdhash); in flow_divert_add_proc_info()
/xnu-11215/osfmk/x86_64/
H A Dpmap.c3391 pmap_lookup_in_loaded_trust_caches(const uint8_t __unused cdhash[20]) in pmap_lookup_in_loaded_trust_caches()
3398 pmap_lookup_in_static_trust_cache(const uint8_t __unused cdhash[20]) in pmap_lookup_in_static_trust_cache()

12