Lines Matching refs:roles
715 attr->roles = cil_malloc(sizeof(*attr->roles)); in __evaluate_role_expression()
716 rc = __cil_expr_list_to_bitmap(attr->expr_list, attr->roles, db->num_roles, db); in __evaluate_role_expression()
719 ebitmap_destroy(attr->roles); in __evaluate_role_expression()
720 free(attr->roles); in __evaluate_role_expression()
721 attr->roles = NULL; in __evaluate_role_expression()
735 if (attr->roles == NULL) { in __cil_role_to_bitmap()
739 ebitmap_union(bitmap, attr->roles); in __cil_role_to_bitmap()
1258 if (attr->roles == NULL) { in __cil_post_db_attr_helper()
1359 ebitmap_for_each_bit(attr->roles, rnode, i) { in __cil_post_db_roletype_helper()
1362 if (!ebitmap_get_bit(attr->roles, i)) { in __cil_post_db_roletype_helper()
1399 if (user->roles == NULL) { in __cil_user_assign_roles()
1400 user->roles = cil_malloc(sizeof(*user->roles)); in __cil_user_assign_roles()
1401 ebitmap_init(user->roles); in __cil_user_assign_roles()
1406 if (ebitmap_set_bit(user->roles, role->value, 1)) { in __cil_user_assign_roles()
1412 ebitmap_union(user->roles, attr->roles); in __cil_user_assign_roles()