/darwin-on-arm/xnu/security/ |
H A D | mac_mach_internal.h | 58 void mac_task_label_update_internal(struct label *pl, struct task *t); 59 int mac_port_label_compute(struct label *subj, struct label *obj, 60 const char *serv, struct label *out); 61 int mac_port_check_method(task_t task, struct label *sub, struct label *obj, int msgid); 69 struct label *mac_thread_get_threadlabel(struct thread *thread); 70 struct label *mac_thread_get_uthreadlabel(struct uthread *uthread); 77 void mac_task_label_init(struct label *); 78 void mac_task_label_copy(struct label *sr [all...] |
H A D | mac_task.c | 65 mac_task_label_init(struct label *label) argument 68 mac_label_init(label); 70 mac_label_journal_add(label, MLJ_TYPE_TASK); 71 mac_label_journal(label, MLJ_TASK_OP_INIT); 73 MAC_PERFORM(task_label_init, label); 77 mac_task_label_update(struct label *cred, struct label *task) 84 mac_task_label_copy(struct label *src, struct label *des 91 mac_task_label_destroy(struct label *label) argument 118 mac_task_label_externalize(struct label *label, char *elements, char *outbuf, size_t outbuflen, int flags __unused) argument 129 mac_task_label_internalize(struct label *label, char *string) argument [all...] |
H A D | mac_port.c | 68 mac_port_label_init(struct label *l) 80 mac_port_label_destroy(struct label *l) 90 mac_port_label_copy(struct label *src, struct label *dest) 97 mac_port_label_update_cred(struct label *src, struct label *dest) 104 mac_port_label_associate(struct label *it, struct label *st, struct label *port) 113 mac_port_label_associate_kernel(struct label *por 131 mac_port_label_internalize(struct label *label, char *string) argument 142 mac_port_label_externalize(struct label *label, char *elements, char *outbuf, size_t outbuflen, int flags __unused) argument [all...] |
H A D | mac_policy.h | 93 struct label; 152 sleep during label initialization operations; it will be noted when 156 generic label for the given object. What follows initialization is 157 creation, where a label is made specific to the object it is associated 158 with. Destruction occurs when the label is no longer needed, such as 160 be performed in label destroy operations. 162 Where possible, the label entry points have identical parameters. If 163 the policy module does not require structure-specific label 233 @brief Initialize BPF descriptor label 234 @param label Ne [all...] |
H A D | mac_sysv_shm.c | 80 static struct label * 83 struct label *label; local 85 label = mac_labelzone_alloc(MAC_WAITOK); 86 if (label == NULL) 88 MAC_PERFORM(sysvshm_label_init, label); 89 return (label); 96 shmsegptr->label = mac_sysv_shm_label_alloc(); 100 mac_sysv_shm_label_free(struct label *label) argument [all...] |
H A D | mac_sysv_sem.c | 78 static struct label * 81 struct label *label; local 83 label = mac_labelzone_alloc(MAC_WAITOK); 84 if (label == NULL) 86 MAC_PERFORM(sysvsem_label_init, label); 87 return (label); 94 semakptr->label = mac_sysv_sem_label_alloc(); 98 mac_sysv_sem_label_free(struct label *label) argument [all...] |
H A D | mac_inet.c | 82 static struct label * 85 struct label *label; local 88 label = mac_labelzone_alloc(flag); 89 if (label == NULL) 91 MAC_CHECK(inpcb_label_init, label, flag); 93 MAC_PERFORM(inpcb_label_destroy, label); 94 mac_labelzone_free(label); 97 return (label); 110 static struct label * 113 struct label *label; local 140 mac_inpcb_label_free(struct label *label) argument 163 mac_ipq_label_free(struct label *label) argument 189 struct label *label; local 211 struct label *label; local 232 struct label *label; local 246 struct label *label; local 256 struct label *label; local 266 struct label *label; local 276 struct label *label; local [all...] |
H A D | mac_label.c | 46 zone_label = zinit(sizeof(struct label), 47 8192 * sizeof(struct label), 48 sizeof(struct label), "MAC Labels"); 54 struct label * 57 struct label *l; 60 l = (struct label *) zalloc_noblock(zone_label); 62 l = (struct label *) zalloc(zone_label); 66 bzero(l, sizeof(struct label)); 72 mac_labelzone_free(struct label *l) 80 panic("Free of NULL MAC label\ [all...] |
H A D | mac_net.c | 80 struct label * 84 struct label *label; local 101 label = (struct label *)(tag+1); 102 return (label); 105 static struct label * 108 struct label *label; local 110 label 120 struct label *label; local 129 struct label *label; local 151 struct label *label; local 165 mac_bpfdesc_label_free(struct label *label) argument 175 struct label *label; local 183 mac_ifnet_label_free(struct label *label) argument 208 struct label *label; local 256 mac_ifnet_label_externalize(struct label *label, char *elements, char *outbuf, size_t outbuflen) argument 264 mac_ifnet_label_internalize(struct label *label, char *string) argument 280 struct label *label; local 289 struct label *label; local 396 struct label *label; local 412 struct label *label; local [all...] |
H A D | mac_sysv_msg.c | 77 static struct label * 80 struct label *label; local 82 label = mac_labelzone_alloc(MAC_WAITOK); 83 if (label == NULL) 85 MAC_PERFORM(sysvmsg_label_init, label); 86 return (label); 93 msgptr->label = mac_sysv_msgmsg_label_alloc(); 96 static struct label * 99 struct label *labe local [all...] |
H A D | mac_posix_sem.c | 72 static struct label * 75 struct label *label; local 77 label = mac_labelzone_alloc(MAC_WAITOK); 78 if (label == NULL) 80 MAC_PERFORM(posixsem_label_init, label); 81 return (label); 92 mac_posixsem_label_free(struct label *label) argument 95 MAC_PERFORM(posixsem_label_destroy, label); [all...] |
H A D | mac_pipe.c | 75 struct label * 78 struct label *label; local 80 label = mac_labelzone_alloc(MAC_WAITOK); 81 if (label == NULL) 83 MAC_PERFORM(pipe_label_init, label); 84 return (label); 95 mac_pipe_label_free(struct label *label) argument 98 MAC_PERFORM(pipe_label_destroy, label); 118 mac_pipe_label_externalize(struct label *label, char *elements, char *outbuf, size_t outbuflen) argument 129 mac_pipe_label_internalize(struct label *label, char *string) argument 237 mac_pipe_label_update(kauth_cred_t cred, struct pipe *cpipe, struct label *label) argument [all...] |
H A D | _label.h | 76 struct label { struct
|
H A D | mac_internal.h | 118 * label namespace name. 128 * Type of list used to manage label namespace names. 154 struct label *l; 164 int mac_label_journal_add (struct label *, int); 165 int mac_label_journal_remove(struct label *); 167 mac_label_journal_find (struct label *); 168 int mac_label_journal (struct label *, int, ...); 251 struct label *mac_labelzone_alloc(int flags); 252 void mac_labelzone_free(struct label *label); [all...] |
H A D | mac_process.c | 82 struct label * 85 struct label *label; local 87 label = mac_labelzone_alloc(MAC_WAITOK); 88 if (label == NULL) 90 MAC_PERFORM(cred_label_init, label); 91 return (label); 101 mac_cred_label_free(struct label *label) argument 103 MAC_PERFORM(cred_label_destroy, label); 137 mac_cred_label_externalize(struct label *label, char *elements, char *outbuf, size_t outbuflen, int flags __unused) argument 148 mac_cred_label_internalize(struct label *label, char *string) argument 529 struct label *label; local 539 mac_lctx_label_free(struct label *label) argument 547 mac_lctx_label_externalize(struct label *label, char *elements, char *outbuf, size_t outbuflen) argument 558 mac_lctx_label_internalize(struct label *label, char *string) argument 622 struct label *label; local 638 mac_thread_label_free(struct label *label) argument [all...] |
H A D | mac_socket.c | 88 struct label * 91 struct label *label; local 94 label = mac_labelzone_alloc(flag); 95 if (label == NULL) 98 MAC_CHECK(socket_label_init, label, flag); 100 MAC_PERFORM(socket_label_destroy, label); 101 mac_labelzone_free(label); 105 return (label); 108 static struct label * 111 struct label *label; local 145 mac_socket_label_free(struct label *label) argument 153 mac_socket_peer_label_free(struct label *label) argument 182 mac_socket_label_externalize(struct label *label, char *elements, char *outbuf, size_t outbuflen) argument 193 mac_socketpeer_label_externalize(struct label *label, char *elements, char *outbuf, size_t outbuflen) argument 204 mac_socket_label_internalize(struct label *label, char *string) argument 239 struct label *label; local 328 mac_socket_label_update(kauth_cred_t cred, struct socket *so, struct label *label) argument 539 struct label *label; local 549 (socket_t)so, so->so_label, mbuf, label); local [all...] |
H A D | mac_posix_shm.c | 73 static struct label * 76 struct label *label; local 78 label = mac_labelzone_alloc(MAC_WAITOK); 79 if (label == NULL) 81 MAC_PERFORM(posixshm_label_init, label); 82 return (label); 93 mac_posixshm_label_free(struct label *label) argument 96 MAC_PERFORM(posixshm_label_destroy, label); [all...] |
H A D | mac_file.c | 51 static struct label * 54 struct label *label; local 56 label = mac_labelzone_alloc(MAC_WAITOK); 57 if (label == NULL) 59 MAC_PERFORM(file_label_init, label); 60 return (label); 71 mac_file_label_free(struct label *label) argument 74 MAC_PERFORM(file_label_destroy, label); [all...] |
H A D | mac_framework.h | 157 struct label *newlabel); 159 struct vnode *vp, struct label *scriptvnodelabel, 160 struct label *execlabel, proc_t proc); 162 struct label *mac_cred_label_alloc(void); 170 void mac_cred_label_free(struct label *label); 172 int mac_cred_label_compare(struct label *a, struct label *b); 173 void mac_cred_label_update(kauth_cred_t cred, struct label *newlabel); 175 struct vnode *vp, struct label *scriptvnodelabe [all...] |
/darwin-on-arm/xnu/osfmk/i386/commpage/ |
H A D | commpage.h | 60 #define COMMPAGE_DESCRIPTOR_NAME(label) _commpage_ ## label 65 #define COMMPAGE_DESCRIPTOR_REFERENCE(label) \ 66 .long COMMPAGE_DESCRIPTOR_NAME(label) 71 #define COMMPAGE_DESCRIPTOR_REFERENCE(label) \ 72 .quad COMMPAGE_DESCRIPTOR_NAME(label) 78 #define COMMPAGE_FUNCTION_START(label,codetype,alignment) \ 82 L ## label ## : 84 #define COMMPAGE_DESCRIPTOR(label,address) \ 85 L ## label ## _en [all...] |
/darwin-on-arm/xnu/osfmk/mach/arm/ |
H A D | asm.h | 184 * LOAD_ADDR: loads the address for (label) into (reg). Not safe for 186 * LOAD_ADDR_PC: Variant for loading to the PC; load the address of (label) 189 * a label address. 191 * Usage: For any label accessed, we require one (and only one) instance 192 * of LOAD_ADDR_GEN_DEF(label). 221 #define GLUE_LABEL_GUTS(label, tag) L_##label##_##tag##_glue 222 #define GLUE_LABEL(label, tag) GLUE_LABEL_GUTS(label, tag) 224 #define LOAD_ADDR(reg, label) \ [all...] |
/darwin-on-arm/xnu/bsd/sys/ |
H A D | imgact.h | 71 struct label; 112 struct label *ip_execlabelp; /* label of the executable */ 113 struct label *ip_scriptlabelp; /* label of the script */
|
H A D | posix_sem.h | 52 struct label; 65 struct label * psem_label;
|
H A D | posix_shm.h | 51 struct label; 69 struct label * pshm_label;
|
H A D | shm_internal.h | 125 struct label; 129 * MAC label) can be added to it, without changing the user interface. 133 struct label *label; /* MAC label */ member in struct:shmid_kernel
|