Searched refs:label (Results 1 - 25 of 65) sorted by relevance

123

/macosx-10.5.8/xnu-1228.15.4/security/
H A Dmac_mach_internal.h58 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);
68 void mac_task_label_init(struct label *);
69 void mac_task_label_copy(struct label *src, struct label *dest);
70 void mac_task_label_destroy(struct label *);
[all...]
H A Dmac_task.c65 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 Dmac_port.c68 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 Dmac_policy.h93 struct label;
142 sleep during label initialization operations; it will be noted when
146 generic label for the given object. What follows initialization is
147 creation, where a label is made specific to the object it is associated
148 with. Destruction occurs when the label is no longer needed, such as
150 be performed in label destroy operations.
152 Where possible, the label entry points have identical parameters. If
153 the policy module does not require structure-specific label
223 @brief Initialize BPF descriptor label
224 @param label Ne
[all...]
H A Dmac_label.c46 zone_label = zinit(sizeof(struct label),
47 8192 * sizeof(struct label),
48 sizeof(struct label), "MAC Labels");
53 struct label *
56 struct label *l;
59 l = (struct label *) zalloc_noblock(zone_label);
61 l = (struct label *) zalloc(zone_label);
65 bzero(l, sizeof(struct label));
71 mac_labelzone_free(struct label *l)
75 panic("Free of NULL MAC label\
[all...]
H A Dmac_sysv_shm.c80 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 Dmac_sysv_sem.c78 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 Dmac_inet.c84 static struct label *
87 struct label *label; local
90 label = mac_labelzone_alloc(flag);
91 if (label == NULL)
93 MAC_CHECK(inpcb_label_init, label, flag);
95 MAC_PERFORM(inpcb_label_destroy, label);
96 mac_labelzone_free(label);
99 return (label);
112 static struct label *
115 struct label *label; local
142 mac_inpcb_label_free(struct label *label) argument
165 mac_ipq_label_free(struct label *label) argument
191 struct label *label; local
213 struct label *label; local
234 struct label *label; local
248 struct label *label; local
258 struct label *label; local
268 struct label *label; local
278 struct label *label; local
[all...]
H A Dmac_net.c80 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 Dmac_sysv_msg.c77 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 Dmac_posix_sem.c72 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 Dmac_pipe.c75 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.h76 struct label { struct
H A Dmac_internal.h123 * label namespace name.
133 * Type of list used to manage label namespace names.
159 struct label *l;
169 int mac_label_journal_add (struct label *, int);
170 int mac_label_journal_remove(struct label *);
172 mac_label_journal_find (struct label *);
173 int mac_label_journal (struct label *, int, ...);
261 struct label *mac_labelzone_alloc(int flags);
262 void mac_labelzone_free(struct label *label);
[all...]
H A Dmac_process.c80 struct label *
83 struct label *label; local
85 label = mac_labelzone_alloc(MAC_WAITOK);
86 if (label == NULL)
88 MAC_PERFORM(cred_label_init, label);
89 return (label);
99 mac_cred_label_free(struct label *label) argument
101 MAC_PERFORM(cred_label_destroy, label);
129 mac_cred_label_externalize(struct label *label, char *elements, char *outbuf, size_t outbuflen, int flags __unused) argument
140 mac_cred_label_internalize(struct label *label, char *string) argument
494 struct label *label; local
504 mac_lctx_label_free(struct label *label) argument
512 mac_lctx_label_externalize(struct label *label, char *elements, char *outbuf, size_t outbuflen) argument
523 mac_lctx_label_internalize(struct label *label, char *string) argument
[all...]
H A Dmac_socket.c94 struct label *
97 struct label *label; local
100 label = mac_labelzone_alloc(flag);
101 if (label == NULL)
104 MAC_CHECK(socket_label_init, label, flag);
106 MAC_PERFORM(socket_label_destroy, label);
107 mac_labelzone_free(label);
111 return (label);
114 static struct label *
117 struct label *label; local
151 mac_socket_label_free(struct label *label) argument
159 mac_socket_peer_label_free(struct label *label) argument
188 mac_socket_label_externalize(struct label *label, char *elements, char *outbuf, size_t outbuflen) argument
199 mac_socketpeer_label_externalize(struct label *label, char *elements, char *outbuf, size_t outbuflen) argument
210 mac_socket_label_internalize(struct label *label, char *string) argument
245 struct label *label; local
334 mac_socket_label_update(kauth_cred_t cred, struct socket *so, struct label *label) argument
545 struct label *label; local
555 (socket_t)so, so->so_label, mbuf, label); local
[all...]
H A Dmac_posix_shm.c73 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 Dmac_file.c51 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 Dmac_vfs.c89 static struct label *
92 struct label *label; local
94 label = mac_labelzone_alloc(MAC_WAITOK);
95 if (label == NULL)
97 MAC_PERFORM(devfs_label_init, label);
98 return (label);
108 static struct label *
111 struct label *label; local
130 struct label *label; local
159 mac_devfs_label_free(struct label *label) argument
175 mac_mount_label_free(struct label *label) argument
194 mac_vnode_label_free(struct label *label) argument
231 mac_vnode_label_externalize(struct label *label, char *elements, char *outbuf, size_t outbuflen, int flags __unused) argument
242 mac_vnode_label_internalize(struct label *label, char *string) argument
252 mac_mount_label_internalize(struct label *label, char *string) argument
262 mac_mount_label_externalize(struct label *label, char *elements, char *outbuf, size_t outbuflen) argument
[all...]
/macosx-10.5.8/xnu-1228.15.4/osfmk/i386/commpage/
H A Dcommpage.h46 #define COMMPAGE_DESCRIPTOR(label,address,must,cant) \
47 L ## label ## _end: ;\
49 L ## label ## _size = L ## label ## _end - L ## label ;\
50 .private_extern _commpage_ ## label ;\
51 _commpage_ ## label ## : ;\
52 .long L ## label ;\
53 .long L ## label ## _size ;\
/macosx-10.5.8/xnu-1228.15.4/osfmk/ppc/commpage/
H A Dcommpage.h52 #define COMMPAGE_DESCRIPTOR(label,address,must,cant,special) \
53 .globl EXT(label) @\
54 LEXT(label) @\
55 .short label-. @\
56 .short .-label-2 @\
/macosx-10.5.8/xnu-1228.15.4/bsd/sys/
H A Dimgact.h71 struct label;
104 struct label *ip_execlabelp; /* label of the executable */
105 struct label *ip_scriptlabelp; /* label of the script */
H A Dshm_internal.h117 struct label;
121 * MAC label) can be added to it, without changing the user interface.
125 struct label *label; /* MAC label */ member in struct:shmid_kernel
H A Dposix_sem.h52 struct label;
65 struct label * psem_label;
H A Dposix_shm.h51 struct label;
69 struct label * pshm_label;

Completed in 126 milliseconds

123