Lines Matching refs:label
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)
76 panic("Free of NULL MAC label\n");
79 panic("Free of uninitialized label\n");
80 bzero(l, sizeof(struct label));
85 * Functions used by policy modules to get and set label values.
88 mac_label_get(struct label *l, int slot)
90 KASSERT(l != NULL, ("mac_label_get: NULL label"));
96 mac_label_set(struct label *l, int slot, intptr_t v)
98 KASSERT(l != NULL, ("mac_label_set: NULL label"));