Lines Matching full:label
27 * bl.c - Binary label operations for kernel and user.
33 #include <sys/tsol/label.h>
38 * bltype - Check the type of a label structure.
40 * Entry label = Address of the label to check.
41 * type = Label type to check:
42 * SUN_SL_ID = Sensitivity Label,
43 * SUN_SL_UN = Undefined Sensitivity Label structure,
44 * SUN_IL_ID = Information Label,
45 * SUN_IL_UN = Undefined Information Label structure,
51 * Returns True if the label is the type requested,
58 bltype(const void *label, uint8_t type) in bltype() argument
61 return (BLTYPE(label, type)); in bltype()
69 * Entry label1, label2 = label levels to compare.
132 * blinrange - Compare a label's classification and compartments set to
135 * Entry label = label level to compare.
140 * Returns True if label is within the range,
147 blinrange(const m_label_t *label, const m_range_t *range) in blinrange() argument
149 return (BLDOMINATES((label), ((range)->lower_bound)) && in blinrange()
150 BLDOMINATES(((range)->upper_bound), (label))); in blinrange()
158 _blinrange(const m_label_t *label, const brange_t *range) in _blinrange() argument
160 return (BLINRANGE(label, range)); in _blinrange()
165 * blinlset - Check if the label belongs to the set
167 * Entry label = label level to compare.
168 * lset = label set to compare against.
172 * Returns True if label is an element of the set,
178 blinlset(const m_label_t *label, const blset_t lset) in blinlset() argument
185 if (BLEQUAL(label, &lset[i])) in blinlset()
234 * bsllow - Initialize an admin_low Sensitivity Label.
236 * Entry label = Sensitivity Label structure to be initialized.
238 * Exit label = Initialized to the admin_low Sensitivity Label.
246 bsllow(bslabel_t *label) in bsllow() argument
249 BSLLOW(label); in bsllow()
254 * bslhigh - Initialize an admin_high Sensitivity Label.
256 * Entry label = Sensitivity Label structure to be initialized.
258 * Exit label = Initialized to the admin_high Sensitivity Label.
266 bslhigh(bslabel_t *label) in bslhigh() argument
269 BSLHIGH(label); in bslhigh()
312 * bslundef - Initialize an undefined Sensitivity Label.
314 * Entry label = Sensitivity Label structure to be initialized.
316 * Exit label = Initialized to undefined Sensitivity Label.
324 bslundef(bslabel_t *label) in bslundef() argument
327 BSLUNDEF(label); in bslundef()
352 * setbltype - Set the type of a label structure.
354 * Entry label = Address of the label to set.
355 * type = Label type to set:
356 * SUN_SL_ID = Sensitivity Label,
357 * SUN_SL_UN = Undefined Sensitivity Label structure,
358 * SUN_IL_ID = Information Label,
359 * SUN_IL_UN = Undefined Information Label structure,
363 * Exit label = Type set to specified type.
371 setbltype(void *label, uint8_t type) in setbltype() argument
374 SETBLTYPE(label, type); in setbltype()
378 * Returns B_TRUE if the label is invalid (initialized to all zeros).
381 bisinvalid(const void *label) in bisinvalid() argument
383 return (GETBLTYPE(label) == SUN_INVALID_ID); in bisinvalid()