Lines Matching full:role
408 yyerror2("conflicting default role information for class %s", id);
1867 /* The role-types rule is no longer used to declare regular role or
1868 * role attribute, but solely aimed for declaring role-types associations.
1872 role_datum_t *role;
1884 yyerror("no role name for role-types rule?");
1889 yyerror2("role %s is not within scope", id);
1894 role = hashtab_search(policydbp->p_roles.table, id);
1895 if (!role) {
1896 yyerror2("unknown role %s", id);
1902 if (set_types(&role->types, id, &add, 0))
1916 /* Declare a role attribute */
1934 /* Declare a regular role */
1947 yyerror2("role attribute %s is not declared", id);
1953 yyerror2("%s is a regular role, not an attribute", id);
1985 yyerror("no role name for roleattribute definition?");
1990 yyerror2("role %s is not within scope", id);
1995 /* We support adding one role attribute into another */
1997 yyerror2("unknown role %s", id);
2011 yyerror2("role attribute %s is not declared", id);
2017 yyerror2("%s is a regular role, not an attribute", id);
2050 new->s.value = 0; /* temporary role */
2069 yyerror("right hand role is temporary?");
2077 /* This function eliminates the ordering dependency of role dominance rule */
2086 /* Don't bother to process against self role */
2090 /* If a dominating role found */
2098 /* raise types and dominates from dominated role */
2123 role_datum_t *role;
2135 yywarn("Role dominance has been deprecated");
2139 yyerror2("role %s is not within scope", role_id);
2143 role = (role_datum_t *) hashtab_search(policydbp->p_roles.table,
2145 if (!role) {
2146 role = (role_datum_t *) malloc(sizeof(role_datum_t));
2147 if (!role) {
2152 memset(role, 0, sizeof(role_datum_t));
2155 (hashtab_datum_t) role, &role->s.value,
2156 &role->s.value);
2163 yyerror2("duplicate declaration of role %s",
2168 yyerror("could not declare role here");
2179 if (ebitmap_set_bit(&role->dominates, role->s.value - 1, TRUE)) {
2189 if (ebitmap_set_bit(&role->dominates, i, TRUE))
2199 (&role->types.types, i, TRUE))
2210 * Now go through all the roles and escalate this role's
2211 * dominates and types if a role dominates this role.
2214 dominate_role_recheck, role);
2216 return role;
2219 role_datum_destroy(role);
2220 free(role);
2261 yyerror("* is not allowed for role sets");
2267 yyerror("~ is not allowed for role sets");
2271 yyerror2("role %s is not within scope", id);
2277 yyerror2("unknown role %s", id);
2294 role_datum_t *role;
2354 yyerror("no new role in transition definition?");
2358 yyerror2("role %s is not within scope", id);
2362 role = hashtab_search(policydbp->p_roles.table, id);
2363 if (!role) {
2364 yyerror2("unknown role %s used in transition definition", id);
2368 if (role->flavor != ROLE_ROLE) {
2369 yyerror2("the new role %s must be a regular role", id);
2391 if (tr->role == (i + 1) &&
2394 yyerror2("duplicate role "
2410 tr->role = i + 1;
2413 tr->new_role = role->s.value;
2429 rule->new_role = role->s.value;
2943 role_datum_t *role;
3039 yyerror2("role %s is not within scope",
3044 role =
3050 if (!role) {
3051 yyerror2("unknown role %s", id);
3055 val = role->s.value;
3315 yyerror2("role %s is not within scope", id);
3321 yyerror2("unknown role %s", id);
3326 /* set the role and every role it dominates */
3564 role_datum_t *role;
3574 free(id); /* role */
3624 /* extract the role */
3627 yyerror("no role name for sid context definition?");
3631 yyerror2("role %s is not within scope", id);
3635 role = (role_datum_t *) hashtab_search(policydbp->p_roles.table,
3637 if (!role) {
3638 yyerror2("role %s is not defined", id);
3642 c->role = role->s.value;
3644 /* no need to keep the role name */