Lines Matching refs:mm_flags

159 	if ((mm->mm_flags & flags) != mm->mm_flags)  in mls_atmostflags()
230 KASSERT((effective->mm_flags & MAC_MLS_FLAG_EFFECTIVE) != 0, in mls_effective_in_range()
232 KASSERT((range->mm_flags & MAC_MLS_FLAG_RANGE) != 0, in mls_effective_in_range()
246 KASSERT((a->mm_flags & MAC_MLS_FLAG_EFFECTIVE) != 0, in mls_dominate_effective()
248 KASSERT((b->mm_flags & MAC_MLS_FLAG_EFFECTIVE) != 0, in mls_dominate_effective()
269 KASSERT((a->mm_flags & MAC_MLS_FLAG_EFFECTIVE) != 0, in mls_equal_effective()
271 KASSERT((b->mm_flags & MAC_MLS_FLAG_EFFECTIVE) != 0, in mls_equal_effective()
281 if (mm->mm_flags & MAC_MLS_FLAG_EFFECTIVE) in mls_contains_equal()
285 if (mm->mm_flags & MAC_MLS_FLAG_RANGE) { in mls_contains_equal()
299 KASSERT((mm->mm_flags & MAC_MLS_FLAGS_BOTH) == MAC_MLS_FLAGS_BOTH, in mls_subject_privileged()
324 if (mm->mm_flags & MAC_MLS_FLAG_EFFECTIVE) { in mls_valid()
346 if (mm->mm_flags & MAC_MLS_FLAG_RANGE) { in mls_valid()
408 mm->mm_flags |= MAC_MLS_FLAG_RANGE; in mls_set_range()
421 mm->mm_flags |= MAC_MLS_FLAG_EFFECTIVE; in mls_set_effective()
428 KASSERT((labelfrom->mm_flags & MAC_MLS_FLAG_RANGE) != 0, in mls_copy_range()
433 labelto->mm_flags |= MAC_MLS_FLAG_RANGE; in mls_copy_range()
440 KASSERT((labelfrom->mm_flags & MAC_MLS_FLAG_EFFECTIVE) != 0, in mls_copy_effective()
444 labelto->mm_flags |= MAC_MLS_FLAG_EFFECTIVE; in mls_copy_effective()
451 if (source->mm_flags & MAC_MLS_FLAG_EFFECTIVE) in mls_copy()
453 if (source->mm_flags & MAC_MLS_FLAG_RANGE) in mls_copy()
555 if (mm->mm_flags & MAC_MLS_FLAG_EFFECTIVE) { in mls_to_string()
560 if (mm->mm_flags & MAC_MLS_FLAG_RANGE) { in mls_to_string()
685 mm->mm_flags |= MAC_MLS_FLAG_EFFECTIVE; in mls_parse()
695 mm->mm_flags |= MAC_MLS_FLAG_RANGE; in mls_parse()
809 if (new->mm_flags & MAC_MLS_FLAGS_BOTH) { in mls_cred_check_relabel()
815 if ((new->mm_flags & MAC_MLS_FLAGS_BOTH) == in mls_cred_check_relabel()
823 if (new->mm_flags & MAC_MLS_FLAG_EFFECTIVE && in mls_cred_check_relabel()
831 if (new->mm_flags & MAC_MLS_FLAG_RANGE && in mls_cred_check_relabel()
1406 if (new->mm_flags & MAC_MLS_FLAG_EFFECTIVE) { in mls_pipe_check_relabel()
1887 if (new->mm_flags & MAC_MLS_FLAG_EFFECTIVE) { in mls_socket_check_relabel()
2482 if ((mm_temp.mm_flags & MAC_MLS_FLAGS_BOTH) != in mls_vnode_associate_extattr()
2876 if (new->mm_flags & MAC_MLS_FLAG_EFFECTIVE) { in mls_vnode_check_relabel()
3183 if ((source->mm_flags & MAC_MLS_FLAG_EFFECTIVE) == 0) in mls_vnode_setlabel_extattr()