Lines Matching full:c1
103 const struct context *c1, in mls_context_glblub() argument
107 const struct mls_range *r1 = &c1->range, *r2 = &c2->range; in mls_context_glblub()
135 static inline int mls_context_cmp(const struct context *c1, 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()
191 static inline int context_cmp(const struct context *c1, 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()