MCPcopy Create free account
hub / github.com/F-Stack/f-stack / mls_effective_in_range

Function mls_effective_in_range

freebsd/security/mac_mls/mac_mls.c:228–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226}
227
228static int
229mls_effective_in_range(struct mac_mls *effective, struct mac_mls *range)
230{
231
232 KASSERT((effective->mm_flags & MAC_MLS_FLAG_EFFECTIVE) != 0,
233 ("mls_effective_in_range: a not effective"));
234 KASSERT((range->mm_flags & MAC_MLS_FLAG_RANGE) != 0,
235 ("mls_effective_in_range: b not range"));
236
237 return (mls_dominate_element(&range->mm_rangehigh,
238 &effective->mm_effective) &&
239 mls_dominate_element(&effective->mm_effective,
240 &range->mm_rangelow));
241
242 return (1);
243}
244
245static int
246mls_dominate_effective(struct mac_mls *a, struct mac_mls *b)

Callers 5

mls_cred_check_relabelFunction · 0.85
mls_ifnet_check_transmitFunction · 0.85
mls_pipe_check_relabelFunction · 0.85
mls_socket_check_relabelFunction · 0.85
mls_vnode_check_relabelFunction · 0.85

Calls 1

mls_dominate_elementFunction · 0.85

Tested by

no test coverage detected