Home
last modified time | relevance | path

Searched refs:l1 (Results 1 – 2 of 2) sorted by relevance

/security/selinux/ss/
Dmls_types.h30 static inline int mls_level_eq(const struct mls_level *l1, const struct mls_level *l2) in mls_level_eq() argument
32 return ((l1->sens == l2->sens) && in mls_level_eq()
33 ebitmap_cmp(&l1->cat, &l2->cat)); in mls_level_eq()
36 static inline int mls_level_dom(const struct mls_level *l1, const struct mls_level *l2) in mls_level_dom() argument
38 return ((l1->sens >= l2->sens) && in mls_level_dom()
39 ebitmap_contains(&l1->cat, &l2->cat, 0)); in mls_level_dom()
42 #define mls_level_incomp(l1, l2) \ argument
43 (!mls_level_dom((l1), (l2)) && !mls_level_dom((l2), (l1)))
45 #define mls_level_between(l1, l2, l3) \ argument
46 (mls_level_dom((l1), (l2)) && mls_level_dom((l3), (l1)))
Dservices.c281 struct mls_level *l1, *l2; in constraint_expr_eval() local
339 l1 = &(scontext->range.level[0]); in constraint_expr_eval()
343 l1 = &(scontext->range.level[0]); in constraint_expr_eval()
347 l1 = &(scontext->range.level[1]); in constraint_expr_eval()
351 l1 = &(scontext->range.level[1]); in constraint_expr_eval()
355 l1 = &(scontext->range.level[0]); in constraint_expr_eval()
359 l1 = &(tcontext->range.level[0]); in constraint_expr_eval()
365 s[++sp] = mls_level_eq(l1, l2); in constraint_expr_eval()
368 s[++sp] = !mls_level_eq(l1, l2); in constraint_expr_eval()
371 s[++sp] = mls_level_dom(l1, l2); in constraint_expr_eval()
[all …]