| /xnu-11215/security/ |
| H A D | mac_label.c | 57 struct label * 60 struct label *label; in mac_labelzone_alloc() local 63 if (label) { in mac_labelzone_alloc() 74 struct label *label; member 98 struct label *label; variable 110 mac_labelzone_free(struct label *label) in mac_labelzone_free() argument 123 struct label *label; variable 126 if (label) { 147 struct label *label = *labelp; in mac_label_verify() local 184 mac_label_get(struct label *label, int slot) in mac_label_get() argument [all …]
|
| H A D | mac_policy.h | 404 struct label *label 424 struct label *label, 446 struct label *label, 458 struct label *label 481 struct label *label, 641 struct label *label 651 struct label *label 716 struct label *label 742 struct label *label 776 struct label *label [all …]
|
| H A D | mac_pipe.c | 75 static struct label * 78 struct label *label; in mac_pipe_label_alloc() local 81 if (label == NULL) { in mac_pipe_label_alloc() 85 return label; in mac_pipe_label_alloc() 88 struct label * 95 mac_pipe_set_label(struct pipe *cpipe, struct label *label) in mac_pipe_set_label() argument 97 cpipe->pipe_label = label; in mac_pipe_set_label() 107 mac_pipe_label_free(struct label *label) in mac_pipe_label_free() argument 110 mac_labelzone_free(label); in mac_pipe_label_free() 116 struct label *label = mac_pipe_label(cpipe); in mac_pipe_label_destroy() local [all …]
|
| H A D | mac_mach.c | 364 struct label * 371 mac_exc_set_label(struct exception_action *action, struct label *label) in mac_exc_set_label() argument 373 action->label = label; in mac_exc_set_label() 378 struct label * 381 …turn mac_labelzone_alloc_for_owner(action ? &action->label : NULL, MAC_WAITOK, ^(struct label *lab… in mac_exc_create_label() 389 mac_exc_free_label(struct label *label) in mac_exc_free_label() argument 447 struct label * 450 struct label *label = mac_exc_create_label(NULL); in mac_exc_create_label_for_proc() local 452 return label; in mac_exc_create_label_for_proc() 455 struct label * [all …]
|
| H A D | mac_sysv_sem.c | 81 mac_labelzone_alloc_owned(&semakptr->label, MAC_WAITOK, ^(struct label *label) { in mac_sysvsem_label_init() 82 MAC_PERFORM(sysvsem_label_init, label); in mac_sysvsem_label_init() 86 struct label * 89 return mac_label_verify(&semakptr->label); in mac_sysvsem_label() 95 mac_labelzone_free_owned(&semakptr->label, ^(struct label *label) { in mac_sysvsem_label_destroy() 96 MAC_PERFORM(sysvsem_label_destroy, label); in mac_sysvsem_label_destroy()
|
| H A D | mac_sysv_shm.c | 83 mac_labelzone_alloc_owned(&shmsegptr->label, MAC_WAITOK, ^(struct label *label) { in mac_sysvshm_label_init() 84 MAC_PERFORM(sysvshm_label_init, label); in mac_sysvshm_label_init() 88 struct label * 91 return mac_label_verify(&shmsegptr->label); in mac_sysvshm_label() 97 mac_labelzone_free_owned(&shmsegptr->label, ^(struct label *label) { in mac_sysvshm_label_destroy() 98 MAC_PERFORM(sysvshm_label_destroy, label); in mac_sysvshm_label_destroy()
|
| H A D | mac_sysv_msg.c | 80 mac_labelzone_alloc_owned(&msgptr->label, MAC_WAITOK, ^(struct label *label) { in mac_sysvmsg_label_init() 81 MAC_PERFORM(sysvmsg_label_init, label); in mac_sysvmsg_label_init() 85 struct label * 88 return mac_label_verify(&msgptr->label); in mac_sysvmsg_label() 94 mac_labelzone_alloc_owned(&msqptr->label, MAC_WAITOK, ^(struct label *label) { in mac_sysvmsq_label_init() 95 MAC_PERFORM(sysvmsq_label_init, label); in mac_sysvmsq_label_init() 99 struct label * 102 return mac_label_verify(&msqptr->label); in mac_sysvmsq_label()
|
| H A D | mac_mach_internal.h | 129 struct label *mac_exc_create_label(struct exception_action *action); 130 struct label *mac_exc_label(struct exception_action *action); 131 void mac_exc_set_label(struct exception_action *action, struct label *label); 132 void mac_exc_free_label(struct label *label); 134 void mac_exc_associate_action_label(struct exception_action *action, struct label *label); 137 int mac_exc_update_action_label(struct exception_action *action, struct label *newlabel); 139 int mac_exc_update_task_crash_label(struct task *task, struct label *newlabel); 147 struct label *mac_exc_create_label_for_proc(struct proc *proc); 148 struct label *mac_exc_create_label_for_current_proc(void);
|
| H A D | mac_process.c | 93 struct label * 96 struct label *label; in mac_cred_label_alloc() local 103 return label; in mac_cred_label_alloc() 116 struct label **seal = (struct label **)-1; in mac_cred_label_seal() 125 mac_cred_label_free(struct label *label) in mac_cred_label_free() argument 128 struct label **seal = (struct label **)-1; in mac_cred_label_free() 140 struct label * 147 mac_cred_label_is_equal(const struct label *a, const struct label *b) in mac_cred_label_is_equal() 176 struct label *label = mac_cred_label(cred); in mac_cred_label_destroy() local 182 mac_cred_label_externalize(struct label *label, char *elements, in mac_cred_label_externalize() argument [all …]
|
| H A D | mac_internal.h | 214 int mac_cred_label_externalize(struct label *, char *e, char *out, size_t olen, int flags); 215 int mac_vnode_label_externalize(struct label *, char *e, char *out, size_t olen, int flags); 217 int mac_cred_label_internalize(struct label *label, char *string); 218 int mac_vnode_label_internalize(struct label *label, char *string); 297 #define MAC_INTERNALIZE(obj, label, instring) \ argument 298 …mac_internalize(offsetof(struct mac_policy_ops, mpo_ ## obj ## _label_internalize), label, instrin… 300 #define MAC_EXTERNALIZE(obj, label, elementlist, outbuf, outbuflen) \ argument 303 #define MAC_EXTERNALIZE_AUDIT(obj, label, outbuf, outbuflen) \ argument 304 …mac_externalize(offsetof(struct mac_policy_ops, mpo_ ## obj ## _label_externalize_audit), label, "… 339 int mac_externalize(size_t mpo_externalize_off, struct label *label, [all …]
|
| H A D | mac_posix_sem.c | 75 mac_labelzone_alloc_owned(&psem->psem_label, MAC_WAITOK, ^(struct label *label) { in mac_posixsem_label_init() 76 MAC_PERFORM(posixsem_label_init, label); in mac_posixsem_label_init() 80 struct label * 89 mac_labelzone_free_owned(&psem->psem_label, ^(struct label *label) { in mac_posixsem_label_destroy() 90 MAC_PERFORM(posixsem_label_destroy, label); in mac_posixsem_label_destroy() 104 struct pseminfo *psem, struct label *plabel, in mac_posixsem_vnode_label_associate() 105 vnode_t vp, struct label *vlabel) in mac_posixsem_vnode_label_associate()
|
| H A D | mac_posix_shm.c | 76 mac_labelzone_alloc_owned(&pshm->pshm_label, MAC_WAITOK, ^(struct label *label) { in mac_posixshm_label_init() 77 MAC_PERFORM(posixshm_label_init, label); in mac_posixshm_label_init() 84 mac_labelzone_free_owned(&pshm->pshm_label, ^(struct label *label) { in mac_posixshm_label_destroy() 85 MAC_PERFORM(posixshm_label_destroy, label); in mac_posixshm_label_destroy() 89 struct label * 97 struct pshminfo *pshm, struct label *plabel, in mac_posixshm_vnode_label_associate() 98 vnode_t vp, struct label *vlabel) in mac_posixshm_vnode_label_associate()
|
| H A D | mac_pty.c | 37 mac_pty_notify_grant(proc_t p, struct tty *tp, dev_t dev, struct label *label) in mac_pty_notify_grant() argument 39 MAC_PERFORM(pty_notify_grant, p, tp, dev, label); in mac_pty_notify_grant() 43 mac_pty_notify_close(proc_t p, struct tty *tp, dev_t dev, struct label *label) in mac_pty_notify_close() argument 45 MAC_PERFORM(pty_notify_close, p, tp, dev, label); in mac_pty_notify_close()
|
| H A D | mac_framework.h | 157 struct label *scriptvnodelabel, struct label *execlabel, 169 void mac_cred_label_free(struct label *label); 177 struct label *scriptvnodelabel, struct label *execlabel, u_int *csflags, 183 void mac_devfs_label_copy(struct label *, struct label *label); 250 int mac_mount_label_externalize(struct label *label, char *elements, 269 void mac_pipe_label_free(struct label *label); 272 void mac_pipe_set_label(struct pipe *cpipe, struct label *label); 372 void mac_socket_label_copy(struct label *from, struct label *to); 549 void mac_vnode_label_copy(struct label *l1, struct label *l2); 552 void mac_vnode_label_free(struct label *label); [all …]
|
| H A D | _label.h | 83 #define MAC_LABEL_CRED_OWNED ((struct label **)~0ul) 86 struct label { struct 87 struct label **l_owner; argument 91 extern const struct label empty_label; argument 93 struct label;
|
| H A D | mac_vfs.c | 131 struct label * 157 struct label * 173 struct label * 187 struct label *label; in mac_vnode_label_init() local 193 struct label * 200 mac_vnode_label_cleanup(struct label *label) in mac_vnode_label_cleanup() argument 209 mac_vnode_label_free(struct label *label) in mac_vnode_label_free() argument 236 struct label * 265 mac_vnode_label_copy(struct label *src, struct label *dest) in mac_vnode_label_copy() 300 mac_vnode_label_internalize(struct label *label, char *string) in mac_vnode_label_internalize() argument [all …]
|
| H A D | mac_base.c | 910 mac_label_externalize(size_t mpo_externalize_off, struct label *label, in mac_label_externalize() argument 1009 mac_externalize(size_t mpo_externalize_off, struct label *label, in mac_externalize() argument 1073 mac_label_internalize(size_t mpo_internalize_off, struct label *label, in mac_label_internalize() argument 1129 mac_internalize(size_t mpo_internalize_off, struct label *label, in mac_internalize() argument 1269 struct label *label; in __mac_get_proc() 1271 label = mac_cred_label(kauth_cred_get()); in __mac_get_proc() 1282 struct label *intlabel; in __mac_set_proc() 1310 struct label *intlabel; in __mac_get_fd() 1367 struct label *intlabel; in mac_get_filelink() 1414 struct label *intlabel; in __mac_set_fd() [all …]
|
| /xnu-11215/osfmk/i386/commpage/ |
| H A D | commpage.h | 49 #define COMMPAGE_DESCRIPTOR_NAME(label) _commpage_ ## label 52 #define COMMPAGE_DESCRIPTOR_REFERENCE(label) \ 53 .quad COMMPAGE_DESCRIPTOR_NAME(label) 55 #define COMMPAGE_FUNCTION_START(label, codetype, alignment) \ 59 L ## label ## : 62 L ## label ## _end: ;\ 63 .set L ## label ## _size, L ## label ## _end - L ## label ;\ 65 .private_extern COMMPAGE_DESCRIPTOR_NAME(label) ;\ 66 COMMPAGE_DESCRIPTOR_NAME(label) ## : ;\ 67 COMMPAGE_DESCRIPTOR_FIELD_POINTER L ## label ;\ [all …]
|
| /xnu-11215/osfmk/arm/ |
| H A D | asm.h | 233 #define GLUE_LABEL_GUTS(label, tag) L_##label##_##tag##_glue argument 234 #define GLUE_LABEL(label, tag) GLUE_LABEL_GUTS(label, tag) argument 237 movw reg, :lower16:(label##$non_lazy_ptr - (GLUE_LABEL(label, __LINE__) + PC_INC)) ; \ 238 movt reg, :upper16:(label##$non_lazy_ptr - (GLUE_LABEL(label, __LINE__) + PC_INC)) ; \ 252 #define LOAD_ADDR_PC(label) \ argument 255 LOAD_ADDR(r0, label) ; \ 260 #define LOAD_ADDR_PC(label) \ 261 b EXT(label) 284 b EXT(label) ; \ 289 bl EXT(label) ; \ [all …]
|
| /xnu-11215/bsd/kern/ |
| H A D | kern_guarded.c | 886 vng_lbl_get(struct label *label) in vng_lbl_get() argument 890 if (NULL == label) { in vng_lbl_get() 899 vng_lbl_get_withattr(struct label *label, unsigned attrmask) in vng_lbl_get_withattr() argument 910 vng_lbl_set(struct label *label, void *data) in vng_lbl_set() argument 1400 struct vnode *vp, struct label *label, in vng_vnode_check_rename() argument 1432 if (NULL != label) { in vng_vnode_check_link() 1450 if (NULL != label) { in vng_vnode_check_unlink() 1470 if (NULL != label) { in vng_vnode_check_write() 1496 struct label *label) in vng_vnode_check_truncate() argument 1499 if (NULL != label) { in vng_vnode_check_truncate() [all …]
|
| /xnu-11215/tools/tests/jitter/ |
| H A D | timer_jitter.c | 62 #define assert(truth, label) do { if(!(truth)) { printf("Thread %p: failure on line %d\n", pthread_… argument 193 print_stats_us(const char *label, double avg, double max, double min, double stddev) in print_stats_us() argument 195 printf("Max %s: %.1lfus\n", label, max / 1000.0 * (((double)g_mti.numer) / ((double)g_mti.denom))); in print_stats_us() 196 printf("Min %s: %.1lfus\n", label, min / 1000.0 * (((double)g_mti.numer) / ((double)g_mti.denom))); in print_stats_us() 197 …printf("Avg magnitude of %s: %.1lfus\n", label, avg / 1000.0 * (((double)g_mti.numer) / ((double)g… in print_stats_us() 203 print_stats_fract(const char *label, double avg, double max, double min, double stddev) in print_stats_fract() argument 205 printf("Max %s jitter: %.1lf%%\n", label, max * 100); in print_stats_fract() 206 printf("Min %s jitter: %.1lf%%\n", label, min * 100); in print_stats_fract() 207 printf("Avg %s jitter: %.1lf%%\n", label, avg * 100); in print_stats_fract()
|
| /xnu-11215/bsd/sys/ |
| H A D | shm_internal.h | 125 struct label; 133 struct label *label; /* MAC label */ member
|
| H A D | msg.h | 242 struct label; 249 struct label *label; /* MAC framework label */ member 267 struct label *label; /* MAC label */ member
|
| H A D | imgact.h | 71 struct label; 113 struct label *ip_execlabelp; /* label of the executable */ 114 struct label *ip_scriptlabelp; /* label of the script */
|
| /xnu-11215/osfmk/ipc/ |
| H A D | ipc_space.c | 291 ipc_label_t label, in ipc_space_create() argument 308 space->is_label = label; in ipc_space_create() 334 ipc_label_t label) in ipc_space_label() argument 342 if ((space->is_label & label) != space->is_label) { in ipc_space_label() 346 space->is_label = label; in ipc_space_label() 366 ipc_label_t label) in ipc_space_add_label() argument 374 space->is_label |= label; in ipc_space_add_label()
|