Lines Matching refs:label

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);
254 void mac_label_init(struct label *label);
255 void mac_label_destroy(struct label *label);
262 int mac_cred_label_externalize(struct label *, char *e, char *out, size_t olen, int flags);
263 int mac_lctx_label_externalize(struct label *, char *e, char *out, size_t olen);
265 int mac_socket_label_externalize(struct label *, char *e, char *out, size_t olen);
267 int mac_vnode_label_externalize(struct label *, char *e, char *out, size_t olen, int flags);
268 int mac_pipe_label_externalize(struct label *label, char *elements,
271 int mac_cred_label_internalize(struct label *label, char *string);
272 int mac_lctx_label_internalize(struct label *label, char *string);
274 int mac_socket_label_internalize(struct label *label, char *string);
276 int mac_vnode_label_internalize(struct label *label, char *string);
277 int mac_pipe_label_internalize(struct label *label, char *string);
280 /* internal socket label manipulation functions */
281 struct label *mac_socket_label_alloc(int flags);
282 void mac_socket_label_free(struct label *l);
283 int mac_socket_label_update(struct ucred *cred, struct socket *so, struct label *l);
287 struct label *mac_mbuf_to_label(struct mbuf *m);
403 #define MAC_INTERNALIZE(obj, label, instring) \
404 mac_internalize(offsetof(struct mac_policy_ops, mpo_ ## obj ## _label_internalize), label, instring)
406 #define MAC_EXTERNALIZE(obj, label, elementlist, outbuf, outbuflen) \
407 mac_externalize(offsetof(struct mac_policy_ops, mpo_ ## obj ## _label_externalize), label, elementlist, outbuf, outbuflen)
409 #define MAC_EXTERNALIZE_AUDIT(obj, label, outbuf, outbuflen) \
410 mac_externalize(offsetof(struct mac_policy_ops, mpo_ ## obj ## _label_externalize_audit), label, "*", outbuf, outbuflen)
457 int mac_externalize(size_t mpo_externalize_off, struct label *label,
459 int mac_internalize(size_t mpo_internalize_off, struct label *label,