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

Function lomac_contains_equal

freebsd/security/mac_lomac/mac_lomac.c:296–315  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

294}
295
296static int
297lomac_contains_equal(struct mac_lomac *ml)
298{
299
300 if (ml->ml_flags & MAC_LOMAC_FLAG_SINGLE)
301 if (ml->ml_single.mle_type == MAC_LOMAC_TYPE_EQUAL)
302 return (1);
303 if (ml->ml_flags & MAC_LOMAC_FLAG_AUX)
304 if (ml->ml_auxsingle.mle_type == MAC_LOMAC_TYPE_EQUAL)
305 return (1);
306
307 if (ml->ml_flags & MAC_LOMAC_FLAG_RANGE) {
308 if (ml->ml_rangelow.mle_type == MAC_LOMAC_TYPE_EQUAL)
309 return (1);
310 if (ml->ml_rangehigh.mle_type == MAC_LOMAC_TYPE_EQUAL)
311 return (1);
312 }
313
314 return (0);
315}
316
317static int
318lomac_subject_privileged(struct mac_lomac *ml)

Callers 4

lomac_cred_check_relabelFunction · 0.85
lomac_pipe_check_relabelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected