Home | History | Annotate | Download | only in src

Lines Matching full:role

464 			ERR(state->handle, "Found conflicting default role definitions");
638 role_datum_t *role = (role_datum_t *) datum;
642 if (!role->bounds)
648 bounds_val = state->rolemap[role->bounds - 1];
652 ERR(state->handle, "Role lookup failed for %s", (char *)key);
782 role_datum_t *role = (role_datum_t *) datum;
785 if (map_ebitmap(&role->dominates, &mapped_roles, state->rolemap))
788 ebitmap_destroy(&role->dominates);
790 if (ebitmap_cpy(&role->dominates, &mapped_roles))
798 /* For the role attribute in the base module, escalate its counterpart's
800 * regular role that belongs to the current role attribute. Note, must be
807 role_datum_t *role, *new_role, *regular_role;
814 role = (role_datum_t *)datum;
818 /* object_r is never a role attribute by far */
827 if (role->flavor != ROLE_ATTRIB)
831 INFO(state->handle, "fixing role attribute %s", id);
839 if (map_ebitmap(&role->roles, &mapped_roles, state->rolemap))
848 ebitmap_for_each_bit(&role->roles, rnode, i) {
875 role_datum_t *role;
881 role = (role_datum_t *) datum;
886 state->rolemap[role->s.value - 1] = 1;
896 INFO(state->handle, "copying role %s", id);
916 new_role->flavor = role->flavor;
918 state->rolemap[role->s.value - 1] = new_role->s.value;
934 if (ebitmap_union(&new_role->dominates, &role->dominates)) {
941 /* convert types in the role datum in the global symtab */
943 (state->out, state->typemap, &role->types, &tmp_union_types, 1)) {
1329 if ((cur_allow->role == i + 1) &&
1343 n->role = i + 1;
1404 if ((cur_trans->role ==
1414 "Conflicting role trans rule %s %s : %s { %s vs %s }",
1436 n->role = i + 1;
2141 dst->role = state->rolemap[src->role - 1];
2438 /* Expand a role set into an ebitmap containing the roles.
2442 * possible duplicates of a regular role and the role attribute
2443 * the regular role belongs to could be properly handled by
2452 role_datum_t *role;
2472 role = base->role_val_to_struct[i];
2473 assert(role != NULL);
2474 if (role->flavor == ROLE_ATTRIB) {
2476 &role->roles))
2501 /* if role is to be complimented, invert the entire bitmap here */
2749 /* copy role allows and role trans */
3063 /* escalate the type_set_t in a role attribute to all regular roles
3127 /* remap role dominates bitmaps */