Lines Matching defs:role
94 cil_log(CIL_INFO, "Failed to find role %s in sepol hashtab\n", datum->fqn);
180 cil_log(CIL_ERR, "Failed to copy role bits\n");
184 struct cil_role *role = (struct cil_role *)datum;
186 if (ebitmap_set_bit(new, role->value, 1)) {
187 cil_log(CIL_ERR, "Failed to set role bit\n");
385 cil_log(CIL_INFO, "Failed to set dominates bit for role\n");
418 cil_log(CIL_ERR, "Failed to insert role bounds for role %s\n", cil_role->datum.fqn);
422 int cil_roletype_to_policydb(policydb_t *pdb, const struct cil_db *db, struct cil_role *role)
426 if (role->types) {
432 rc = __cil_get_sepol_role_datum(pdb, DATUM(role), &sepol_role);
435 ebitmap_for_each_positive_bit(role->types, tnode, i) {
440 cil_log(CIL_INFO, "Failed to set type bit for role\n");
745 // role is object_r, ignore it since it is implicitly associated
751 cil_log(CIL_INFO, "Failed to set role bit for user\n");
2455 new->role = sepol_src->s.value;
2466 cil_log(CIL_ERR, "Conflicting role transition rules\n");
2523 sepol_roleallow->role = sepol_src->s.value;
3184 rc = __cil_get_sepol_role_datum(pdb, DATUM(cil_context->role), &sepol_role);
3191 sepol_context->role = sepol_role->s.value;
4131 role_datum_t *role = (role_datum_t *)datum;
4133 if (role->s.value < 1 || role->s.value > pdb->p_roles.nprim) {
4136 pdb->p_role_val_to_name[role->s.value - 1] = (char *)key;
4137 pdb->role_val_to_struct[role->s.value - 1] = role;
4381 return ((k->role + (k->type << 2) +
4392 return a->role != b->role || a->type != b->type || a->tclass != b->tclass;