• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.5.8/xnu-1228.15.4/security/

Lines Matching refs:label

123  * 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);
264 void mac_label_init(struct label *label);
265 void mac_label_destroy(struct label *label);
272 int mac_cred_label_externalize(struct label *, char *e, char *out, size_t olen, int flags);
273 int mac_lctx_label_externalize(struct label *, char *e, char *out, size_t olen);
275 int mac_socket_label_externalize(struct label *, char *e, char *out, size_t olen);
277 int mac_vnode_label_externalize(struct label *, char *e, char *out, size_t olen, int flags);
278 int mac_pipe_label_externalize(struct label *label, char *elements,
281 int mac_cred_label_internalize(struct label *label, char *string);
282 int mac_lctx_label_internalize(struct label *label, char *string);
284 int mac_socket_label_internalize(struct label *label, char *string);
286 int mac_vnode_label_internalize(struct label *label, char *string);
287 int mac_pipe_label_internalize(struct label *label, char *string);
290 /* internal socket label manipulation functions */
291 struct label *mac_socket_label_alloc(int flags);
292 void mac_socket_label_free(struct label *l);
293 int mac_socket_label_update(struct ucred *cred, struct socket *so, struct label *l);
297 struct label *mac_mbuf_to_label(struct mbuf *m);
375 #define MAC_INTERNALIZE(obj, label, instring) \
376 mac_internalize(offsetof(struct mac_policy_ops, mpo_ ## obj ## _label_internalize), label, instring)
378 #define MAC_EXTERNALIZE(obj, label, elementlist, outbuf, outbuflen) \
379 mac_externalize(offsetof(struct mac_policy_ops, mpo_ ## obj ## _label_externalize), label, elementlist, outbuf, outbuflen)
381 #define MAC_EXTERNALIZE_AUDIT(obj, label, outbuf, outbuflen) \
382 mac_externalize(offsetof(struct mac_policy_ops, mpo_ ## obj ## _label_externalize_audit), label, "*", outbuf, outbuflen)
429 int mac_externalize(size_t mpo_externalize_off, struct label *label,
431 int mac_internalize(size_t mpo_internalize_off, struct label *label,