Lines Matching defs:label
29 * bl.c - Binary label operations for kernel and user.
35 #include <sys/tsol/label.h>
40 * bltype - Check the type of a label structure.
42 * Entry label = Address of the label to check.
53 * Returns True if the label is the type requested,
60 bltype(const void *label, uint8_t type)
63 return (BLTYPE(label, type));
71 * Entry label1, label2 = label levels to compare.
134 * blinrange - Compare a label's classification and compartments set to
137 * Entry label = label level to compare.
142 * Returns True if label is within the range,
149 blinrange(const m_label_t *label, const m_range_t *range)
151 return (BLDOMINATES((label), ((range)->lower_bound)) &&
152 BLDOMINATES(((range)->upper_bound), (label)));
160 _blinrange(const m_label_t *label, const brange_t *range)
162 return (BLINRANGE(label, range));
167 * blinlset - Check if the label belongs to the set
169 * Entry label = label level to compare.
170 * lset = label set to compare against.
174 * Returns True if label is an element of the set,
180 blinlset(const m_label_t *label, const blset_t lset)
187 if (BLEQUAL(label, &lset[i]))
238 * Entry label = Sensitivity Label structure to be initialized.
240 * Exit label = Initialized to the admin_low Sensitivity Label.
248 bsllow(bslabel_t *label)
251 BSLLOW(label);
258 * Entry label = Sensitivity Label structure to be initialized.
260 * Exit label = Initialized to the admin_high Sensitivity Label.
268 bslhigh(bslabel_t *label)
271 BSLHIGH(label);
316 * Entry label = Sensitivity Label structure to be initialized.
318 * Exit label = Initialized to undefined Sensitivity Label.
326 bslundef(bslabel_t *label)
329 BSLUNDEF(label);
354 * setbltype - Set the type of a label structure.
356 * Entry label = Address of the label to set.
365 * Exit label = Type set to specified type.
373 setbltype(void *label, uint8_t type)
376 SETBLTYPE(label, type);
380 * Returns B_TRUE if the label is invalid (initialized to all zeros).
383 bisinvalid(const void *label)
385 return (GETBLTYPE(label) == SUN_INVALID_ID);