| /xnu-11215/security/ |
| H A D | mac.h | 92 struct mac { struct 97 typedef struct mac *mac_t; argument 162 struct mac *label); 163 int __mac_get_mount(const char *path, struct mac *label);
|
| H A D | mac_base.c | 897 if (mac->m_buflen > MAC_MAX_LABEL_BUF_LEN || mac->m_buflen == 0) { in mac_check_structmac_consistent() 1159 mac->m_buflen = mac64.m_buflen; in user_mac_copyin() 1160 mac->m_string = mac64.m_string; in user_mac_copyin() 1167 mac->m_buflen = mac32.m_buflen; in user_mac_copyin() 1168 mac->m_string = mac32.m_string; in user_mac_copyin() 1171 return mac_check_structmac_consistent(mac); in user_mac_copyin() 1177 struct user_mac mac; in mac_do_get() local 1184 if ((error = user_mac_copyin(p, mac_p, &mac))) { in mac_do_get() 1188 len = mac.m_buflen; in mac_do_get() 1214 struct user_mac mac; in mac_do_set() local [all …]
|
| H A D | Makefile | 15 mac.h 30 mac.h \
|
| H A D | mac_internal.h | 209 int mac_check_structmac_consistent(struct user_mac *mac); 211 int mac_check_structmac_consistent(struct mac *mac);
|
| H A D | mac_process.c | 159 mac_cred_label_externalize_audit(struct proc *p, struct mac *mac) in mac_cred_label_externalize_audit() argument 167 mac->m_string, mac->m_buflen); in mac_cred_label_externalize_audit()
|
| H A D | mac_framework.h | 98 struct mac; 168 int mac_cred_label_externalize_audit(proc_t p, struct mac *mac) __result_use_check; 375 struct mac *extmac) __result_use_check; 380 struct mac *extmac) __result_use_check; 551 int mac_vnode_label_externalize_audit(struct vnode *vp, struct mac *mac) __result_use_check;
|
| H A D | mac_vfs.c | 277 mac_vnode_label_externalize_audit(struct vnode *vp, struct mac *mac) in mac_vnode_label_externalize_audit() argument 283 mac->m_string, mac->m_buflen); in mac_vnode_label_externalize_audit()
|
| /xnu-11215/bsd/security/audit/ |
| H A D | audit_mac.c | 77 struct mac mac; in audit_mac_new() local 84 mac.m_buflen = MAC_AUDIT_LABEL_LEN; in audit_mac_new() 85 mac.m_string = ar->k_ar.ar_cred_mac_labels; in audit_mac_new() 86 if (mac_cred_label_externalize_audit(p, &mac)) { in audit_mac_new()
|
| H A D | audit_arg.c | 740 struct mac mac; in audit_arg_vnpath() local 813 mac.m_buflen = MAC_AUDIT_LABEL_LEN; in audit_arg_vnpath() 814 mac.m_string = *vnode_mac_labelp; in audit_arg_vnpath() 815 if (mac_vnode_label_externalize_audit(vp, &mac)) { in audit_arg_vnpath()
|
| /xnu-11215/osfmk/corecrypto/ |
| H A D | cchmac.c | 44 size_t data_len, const void *data, unsigned char *mac) in cchmac() argument 53 cchmac_final(di, hc, mac); in cchmac()
|
| H A D | cchmac_final.c | 44 unsigned char *mac) in cchmac_final() argument 59 ccdigest_final(di, cchmac_digest_ctx(di, hc), mac); in cchmac_final()
|
| H A D | ccmode_internal.h | 457 int ccmode_ccm_finalize(ccccm_ctx *key, ccccm_nonce *nonce_ctx, void *mac); 458 int ccmode_ccm_finalize_and_verify(ccccm_ctx *ctx, ccccm_nonce *nonce_ctx, void *mac);
|
| /xnu-11215/EXTERNAL_HEADERS/corecrypto/ |
| H A D | cchmac.h | 61 unsigned char *mac); 65 unsigned char *mac);
|
| H A D | cccmac.h | 87 size_t mac_nbytes, void *cc_sized_by(mac_nbytes) mac); 165 size_t mac_nbytes, void *cc_sized_by(mac_nbytes) mac);
|
| H A D | ccmode.h | 730 …ize(const struct ccmode_ccm *mode, ccccm_ctx *ctx, ccccm_nonce *nonce_ctx, void *cc_indexable mac); 738 …(const struct ccmode_ccm *mode, ccccm_ctx *ctx, ccccm_nonce *nonce_ctx, uint8_t *cc_indexable mac); 746 … struct ccmode_ccm *mode, ccccm_ctx *ctx, ccccm_nonce *nonce_ctx, const uint8_t *cc_indexable mac); 779 void *cc_sized_by(mac_size) mac);
|
| H A D | ccmode_impl.h | 206 int (*CC_SPTR(ccmode_ccm, finalize))(ccccm_ctx *key, ccccm_nonce *nonce_ctx, void *mac);
|
| /xnu-11215/libkern/libkern/crypto/ |
| H A D | register_crypto.h | 61 unsigned char *mac); 65 unsigned char *mac);
|
| /xnu-11215/bsd/netinet6/ |
| H A D | nd6_nbr.c | 608 caddr_t mac; in nd6_ns_output() local 834 if (nonce == NULL && (mac = nd6_ifptomac(ifp)) && !is_optimistic) { in nd6_ns_output() 846 bcopy(mac, (caddr_t)(nd_opt + 1), ifp->if_addrlen); in nd6_ns_output() 1443 caddr_t mac = NULL; in nd6_na_output() local 1586 mac = nd6_ifptomac(ifp); in nd6_na_output() 1591 mac = LLADDR(sdl); in nd6_na_output() 1595 if (tlladdr && mac) { in nd6_na_output() 1608 bcopy(mac, (caddr_t)(nd_opt + 1), ifp->if_addrlen); in nd6_na_output()
|
| H A D | in6_var.h | 587 uint8_t *__sized_by(maclen) mac, size_t maclen);
|
| H A D | in6.c | 4149 uint8_t *__sized_by(maclen)mac, size_t maclen) in in6_post_msg() argument 4187 if (mac != NULL) { in in6_post_msg() 4189 memcpy(&in6_event_data.ia_mac, mac, maclen); in in6_post_msg()
|
| /xnu-11215/tests/ |
| H A D | net_bridge.c | 78 ether_addr_t mac; member 187 get_ipv6_ll_address(const ether_addr_t *mac, struct in6_addr * in6) in get_ipv6_ll_address() argument 189 const u_char * addr = mac->octet; in get_ipv6_ll_address() 1268 ifnet_get_lladdr(ifname, &p->mac); in switch_port_list_add_port() 1272 get_ipv6_ll_address(&p->mac, &p->ip6); in switch_port_list_add_port()
|
| /xnu-11215/bsd/vfs/ |
| H A D | vfs_syscalls.c | 923 struct user_mac mac; in __mac_mount() local 929 mac.m_buflen = (user_size_t)mac64.m_buflen; in __mac_mount() 930 mac.m_string = (user_addr_t)mac64.m_string; in __mac_mount() 934 mac.m_buflen = mac32.m_buflen; in __mac_mount() 935 mac.m_string = mac32.m_string; in __mac_mount() 941 (mac.m_buflen < 2)) { in __mac_mount() 945 labelsz = mac.m_buflen; in __mac_mount() 947 error = copyinstr(mac.m_string, labelstr, mac.m_buflen, &ulen); in __mac_mount() 3861 muap.mac = USER_ADDR_NULL; in getfsstat() 3912 if (uap->mac != USER_ADDR_NULL) { in __mac_getfsstat() [all …]
|
| /xnu-11215/doc/vm/ |
| H A D | freezer.md | 56 …f swap writes on macOS (although depending on the release Chrome is sometimes above Safari on mac).
|