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)
80 panic("Free of NULL MAC label\n");
83 panic("Free of uninitialized label\n");
84 bzero(l, sizeof(struct label));
89 * Functions used by policy modules to get and set label values.
92 mac_label_get(struct label *l, int slot)
94 KASSERT(l != NULL, ("mac_label_get: NULL label"));
100 mac_label_set(struct label *l, int slot, intptr_t v)
102 KASSERT(l != NULL, ("mac_label_set: NULL label"));