Lines Matching refs:c1
100 const struct context *c1, const struct context *c2) in mls_context_glblub() argument
103 const struct mls_range *r1 = &c1->range, *r2 = &c2->range; in mls_context_glblub()
131 static inline int mls_context_cmp(const struct context *c1, const struct context *c2) in mls_context_cmp() argument
133 return ((c1->range.level[0].sens == c2->range.level[0].sens) && in mls_context_cmp()
134 ebitmap_cmp(&c1->range.level[0].cat, &c2->range.level[0].cat) && in mls_context_cmp()
135 (c1->range.level[1].sens == c2->range.level[1].sens) && in mls_context_cmp()
136 ebitmap_cmp(&c1->range.level[1].cat, &c2->range.level[1].cat)); in mls_context_cmp()
184 static inline int context_cmp(const struct context *c1, const struct context *c2) in context_cmp() argument
186 if (c1->len && c2->len) in context_cmp()
187 return (c1->len == c2->len && !strcmp(c1->str, c2->str)); in context_cmp()
188 if (c1->len || c2->len) in context_cmp()
190 return ((c1->user == c2->user) && in context_cmp()
191 (c1->role == c2->role) && in context_cmp()
192 (c1->type == c2->type) && in context_cmp()
193 mls_context_cmp(c1, c2)); in context_cmp()