Lines Matching defs:roles
391 /* new_role's dominates, types and roles field will be copied
557 /* new_users's roles and MLS fields will be copied during
759 * The boundaries have to be copied after the types/roles/users are copied,
1013 static int role_set_or_convert(role_set_t * roles, role_set_t * dst,
1019 if (ebitmap_convert(&roles->roles, &tmp, mod->map[SYM_ROLES]))
1021 if (ebitmap_union(&dst->roles, &tmp)) {
1024 dst->flags |= roles->flags;
1118 if (ebitmap_convert(&role->roles, &e_tmp, mod->map[SYM_ROLES]))
1120 if (ebitmap_union(&dest_role->roles, &e_tmp)) {
1201 if (role_set_or_convert(&user->roles, &new_user->roles, mod, state)) {
1347 (&cur->roles, &new_rule->roles, module, state)
1394 (&cur->roles, &new_rule->roles, module, state)
1836 * declared. only roles and users may be multiply
2369 ebitmap_for_each_positive_bit(&role->roles, rnode, i) {
2375 * role attribute's roles ebitmap */
2376 if (ebitmap_set_bit(&role->roles, i, 0))
2384 * by escalating its roles ebitmap */
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 */
2399 * copy its roles ebitmap into its duplicate's in the base->p_roles.table.
2423 if (ebitmap_union(&base_role->roles, &decl_role->roles)) {
2554 /* Now that all role attribute's roles ebitmap have been settled,
2555 * escalate sub role attribute's roles ebitmap into that of parent.