Lines Matching full:role
82 "common", "class", "role", "type/attribute", "user",
221 ERR(state->handle, "Found conflicting default role definitions");
351 role_datum_t *role, *base_role, *new_role = NULL;
354 role = (role_datum_t *) datum;
358 /* role already exists. check that it is what this
360 * modules both declare role foo_r) is checked during
362 if (role->flavor == ROLE_ATTRIB
365 "%s: Expected %s to be a role attribute, but it was already declared as a regular role.",
368 } else if (role->flavor != ROLE_ATTRIB
371 "%s: Expected %s to be a regular role, but it was already declared as a role attribute.",
377 INFO(state->handle, "copying role %s", id);
391 new_role->flavor = role->flavor;
422 state->cur->map[SYM_ROLES][role->s.value - 1] = base_role->s.value;
792 role_datum_t *role = (role_datum_t *) datum;
796 if (!role->bounds)
799 bounds_val = state->cur->map[SYM_ROLES][role->bounds - 1];
804 "Role lookup failed for %s", (char *)key);
1096 role_datum_t *role, *dest_role = NULL;
1103 role = (role_datum_t *) datum;
1113 INFO(state->handle, "fixing role %s", id);
1117 ebitmap_for_each_bit(&role->dominates, rnode, i) {
1129 if (type_set_or_convert(&role->types, &dest_role->types, mod, state)) {
1134 if (role->flavor == ROLE_ATTRIB) {
1136 ebitmap_for_each_bit(&role->roles, rnode, i) {
2405 role_datum_t *role, *sub_attr;
2411 role = (role_datum_t *)datum;
2415 /* object_r is never a role attribute by far */
2419 if (role->flavor != ROLE_ATTRIB)
2423 INFO(state->handle, "expanding role attribute %s", id);
2426 ebitmap_for_each_bit(&role->roles, rnode, i) {
2432 /* remove the sub role attribute from the parent
2433 * role attribute's roles ebitmap */
2434 if (ebitmap_set_bit(&role->roles, i, 0))
2437 role attributes */
2438 if (sub_attr->s.value == role->s.value)
2441 /* now go on to expand a sub role attribute
2443 if (ebitmap_union(&role->roles, &sub_attr->roles)) {
2448 /* sub_attr->roles may contain other role attributes,
2449 * re-scan the parent role attribute's roles ebitmap */
2457 /* For any role attribute in a declaration's local symtab[SYM_ROLES] table,
2471 /* object_r is never a role attribute by far */
2496 INFO(state->handle, "Populating role-attribute relationship "
2637 /* Now that all role attribute's roles ebitmap have been settled,
2638 * escalate sub role attribute's roles ebitmap into that of parent.
2640 * First, since some role-attribute relationships could be recorded