Lines Matching refs:c2
104 const struct context *c2) in mls_context_glblub() argument
107 const struct mls_range *r1 = &c1->range, *r2 = &c2->range; in mls_context_glblub()
136 const struct context *c2) in mls_context_cmp() argument
138 return ((c1->range.level[0].sens == c2->range.level[0].sens) && in mls_context_cmp()
139 ebitmap_cmp(&c1->range.level[0].cat, &c2->range.level[0].cat) && in mls_context_cmp()
140 (c1->range.level[1].sens == c2->range.level[1].sens) && in mls_context_cmp()
141 ebitmap_cmp(&c1->range.level[1].cat, &c2->range.level[1].cat)); in mls_context_cmp()
192 const struct context *c2) in context_cmp() argument
194 if (c1->len && c2->len) in context_cmp()
195 return (c1->len == c2->len && !strcmp(c1->str, c2->str)); in context_cmp()
196 if (c1->len || c2->len) in context_cmp()
198 return ((c1->user == c2->user) && (c1->role == c2->role) && in context_cmp()
199 (c1->type == c2->type) && mls_context_cmp(c1, c2)); in context_cmp()