Home
last modified time | relevance | path

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

/security/selinux/ss/
Dmls_types.h30 static inline int mls_level_eq(struct mls_level *l1, 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(struct mls_level *l1, 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.c294 struct mls_level *l1, *l2; in constraint_expr_eval() local
353 l2 = &(tcontext->range.level[0]); in constraint_expr_eval()
357 l2 = &(tcontext->range.level[1]); in constraint_expr_eval()
361 l2 = &(tcontext->range.level[0]); in constraint_expr_eval()
365 l2 = &(tcontext->range.level[1]); in constraint_expr_eval()
369 l2 = &(scontext->range.level[1]); in constraint_expr_eval()
373 l2 = &(tcontext->range.level[1]); in constraint_expr_eval()
378 s[++sp] = mls_level_eq(l1, l2); in constraint_expr_eval()
381 s[++sp] = !mls_level_eq(l1, l2); in constraint_expr_eval()
384 s[++sp] = mls_level_dom(l1, l2); in constraint_expr_eval()
[all …]