• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/sys/security/mac/

Lines Matching refs:label

90  * Retrieve the label associated with an mbuf by searching for the tag.
91 * Depending on the value of mac_labelmbufs, it's possible that a label will
93 * possibility of an mbuf not having label storage if they do not enforce
96 struct label *
100 struct label *label;
107 label = (struct label *)(tag+1);
108 return (label);
111 static struct label *
114 struct label *label;
116 label = mac_labelzone_alloc(M_WAITOK);
117 MAC_POLICY_PERFORM(bpfdesc_init_label, label);
118 return (label);
131 static struct label *
134 struct label *label;
136 label = mac_labelzone_alloc(M_WAITOK);
137 MAC_POLICY_PERFORM(ifnet_init_label, label);
138 return (label);
154 struct label *label;
157 label = (struct label *) (tag + 1);
158 mac_init_label(label);
161 MAC_POLICY_CHECK(mbuf_init_label, label, flag);
163 MAC_POLICY_CHECK_NOSLEEP(mbuf_init_label, label, flag);
165 MAC_POLICY_PERFORM_NOSLEEP(mbuf_destroy_label, label);
166 mac_destroy_label(label);
180 tag = m_tag_get(PACKET_TAG_MACLABEL, sizeof(struct label),
195 mac_bpfdesc_label_free(struct label *label)
198 MAC_POLICY_PERFORM_NOSLEEP(bpfdesc_destroy_label, label);
199 mac_labelzone_free(label);
213 mac_ifnet_label_free(struct label *label)
216 MAC_POLICY_PERFORM_NOSLEEP(ifnet_destroy_label, label);
217 mac_labelzone_free(label);
233 struct label *label;
235 label = (struct label *)(tag+1);
237 MAC_POLICY_PERFORM_NOSLEEP(mbuf_destroy_label, label);
238 mac_destroy_label(label);
248 struct label *src_label, *dest_label;
250 src_label = (struct label *)(src+1);
251 dest_label = (struct label *)(dest+1);
263 struct label *src_label, *dest_label;
275 mac_ifnet_copy_label(struct label *src, struct label *dest)
282 mac_ifnet_externalize_label(struct label *label, char *elements,
287 MAC_POLICY_EXTERNALIZE(ifnet, label, elements, outbuf, outbuflen);
293 mac_ifnet_internalize_label(struct label *label, char *string)
297 MAC_POLICY_INTERNALIZE(ifnet, label, string);
325 struct label *label;
333 label = mac_mbuf_to_label(m);
336 label);
342 struct label *label;
348 label = mac_mbuf_to_label(m);
352 label);
385 struct label *label;
393 label = mac_mbuf_to_label(m);
397 label);
409 struct label *intlabel;
451 struct label *intlabel;