Lines Matching defs:role

83 	"common", "class", "role", "type/attribute", "user",
223 ERR(state->handle, "Found conflicting default role definitions");
353 role_datum_t *role, *base_role, *new_role = NULL;
356 role = (role_datum_t *) datum;
360 /* role already exists. check that it is what this
362 * modules both declare role foo_r) is checked during
364 if (role->flavor == ROLE_ATTRIB
367 "%s: Expected %s to be a role attribute, but it was already declared as a regular role.",
370 } else if (role->flavor != ROLE_ATTRIB
373 "%s: Expected %s to be a regular role, but it was already declared as a role attribute.",
379 INFO(state->handle, "copying role %s", id);
393 new_role->flavor = role->flavor;
424 state->cur->map[SYM_ROLES][role->s.value - 1] = base_role->s.value;
795 role_datum_t *role = (role_datum_t *) datum;
799 if (!role->bounds)
802 bounds_val = state->cur->map[SYM_ROLES][role->bounds - 1];
1086 role_datum_t *role, *dest_role = NULL;
1092 role = (role_datum_t *) datum;
1102 INFO(state->handle, "fixing role %s", id);
1106 if (ebitmap_convert(&role->dominates, &e_tmp, mod->map[SYM_ROLES]))
1111 if (type_set_or_convert(&role->types, &dest_role->types, mod)) {
1116 if (role->flavor == ROLE_ATTRIB) {
1118 if (ebitmap_convert(&role->roles, &e_tmp, mod->map[SYM_ROLES]))
2348 role_datum_t *role, *sub_attr;
2354 role = (role_datum_t *)datum;
2358 /* object_r is never a role attribute by far */
2362 if (role->flavor != ROLE_ATTRIB)
2366 INFO(state->handle, "expanding role attribute %s", id);
2369 ebitmap_for_each_positive_bit(&role->roles, rnode, i) {
2374 /* remove the sub role attribute from the parent
2375 * role attribute's roles ebitmap */
2376 if (ebitmap_set_bit(&role->roles, i, 0))
2379 /* loop dependency of role attributes */
2380 if (sub_attr->s.value == role->s.value)
2383 /* now go on to expand a sub role attribute
2385 if (ebitmap_union(&role->roles, &sub_attr->roles)) {
2390 /* sub_attr->roles may contain other role attributes,
2391 * re-scan the parent role attribute's roles ebitmap */
2398 /* For any role attribute in a declaration's local symtab[SYM_ROLES] table,
2412 /* object_r is never a role attribute by far */
2437 INFO(state->handle, "Populating role-attribute relationship "
2554 /* Now that all role attribute's roles ebitmap have been settled,
2555 * escalate sub role attribute's roles ebitmap into that of parent.
2557 * First, since some role-attribute relationships could be recorded