Lines Matching defs:role
416 yyerror2("conflicting default role information for class %s", id);
2689 /* The role-types rule is no longer used to declare regular role or
2690 * role attribute, but solely aimed for declaring role-types associations.
2694 role_datum_t *role;
2706 yyerror("no role name for role-types rule?");
2711 yyerror2("role %s is not within scope", id);
2716 role = hashtab_search(policydbp->p_roles.table, id);
2717 if (!role) {
2718 yyerror2("unknown role %s", id);
2722 role = get_local_role(id, role->s.value, (role->flavor == ROLE_ATTRIB));
2725 if (set_types(&role->types, id, &add, 0))
2739 /* Declare a role attribute */
2757 /* Declare a regular role */
2770 yyerror2("role attribute %s is not declared", id);
2776 yyerror2("%s is a regular role, not an attribute", id);
2808 yyerror("no role name for roleattribute definition?");
2813 yyerror2("role %s is not within scope", id);
2818 /* We support adding one role attribute into another */
2820 yyerror2("unknown role %s", id);
2835 yyerror2("role attribute %s is not declared", id);
2841 yyerror2("%s is a regular role, not an attribute", id);
2874 new->s.value = 0; /* temporary role */
2893 yyerror("right hand role is temporary?");
2901 /* This function eliminates the ordering dependency of role dominance rule */
2910 /* Don't bother to process against self role */
2914 /* If a dominating role found */
2922 /* raise types and dominates from dominated role */
2943 role_datum_t *role;
2959 yyerror2("role %s is not within scope", role_id);
2963 role = (role_datum_t *) hashtab_search(policydbp->p_roles.table,
2965 if (!role) {
2966 role = (role_datum_t *) malloc(sizeof(role_datum_t));
2967 if (!role) {
2972 memset(role, 0, sizeof(role_datum_t));
2975 (hashtab_datum_t) role, &role->s.value,
2976 &role->s.value);
2983 yyerror2("duplicate declaration of role %s",
2988 yyerror("could not declare role here");
2999 if (ebitmap_set_bit(&role->dominates, role->s.value - 1, TRUE)) {
3008 if (ebitmap_set_bit(&role->dominates, i, TRUE))
3016 if (ebitmap_set_bit(&role->types.types, i, TRUE))
3027 * Now go through all the roles and escalate this role's
3028 * dominates and types if a role dominates this role.
3031 dominate_role_recheck, role);
3033 return role;
3036 role_datum_destroy(role);
3037 free(role);
3078 yyerror("* is not allowed for role sets");
3084 yyerror("~ is not allowed for role sets");
3088 yyerror2("role %s is not within scope", id);
3094 yyerror2("unknown role %s", id);
3111 role_datum_t *role;
3171 yyerror("no new role in transition definition?");
3175 yyerror2("role %s is not within scope", id);
3179 role = hashtab_search(policydbp->p_roles.table, id);
3180 if (!role) {
3181 yyerror2("unknown role %s used in transition definition", id);
3186 if (role->flavor != ROLE_ROLE) {
3187 yyerror2("the new role %s must be a regular role", id);
3205 if (tr->role == (i + 1) &&
3208 yyerror2("duplicate role "
3224 tr->role = i + 1;
3227 tr->new_role = role->s.value;
3243 rule->new_role = role->s.value;
3787 role_datum_t *role;
3883 yyerror2("role %s is not within scope",
3888 role =
3894 if (!role) {
3895 yyerror2("unknown role %s", id);
3899 val = role->s.value;
4155 yyerror2("role %s is not within scope", id);
4161 yyerror2("unknown role %s", id);
4400 role_datum_t *role;
4410 free(id); /* role */
4460 /* extract the role */
4463 yyerror("no role name for sid context definition?");
4467 yyerror2("role %s is not within scope", id);
4471 role = (role_datum_t *) hashtab_search(policydbp->p_roles.table,
4473 if (!role) {
4474 yyerror2("role %s is not defined", id);
4478 c->role = role->s.value;
4480 /* no need to keep the role name */