Home | History | Annotate | Download | only in checkpolicy

Lines Matching full:role

168 				char *role_id, role_datum_t *role)
186 yyerror2("role %s doesn't exist, is implicit bounds of %s",
191 if (!role->bounds)
192 role->bounds = bounds->s.value;
193 else if (role->bounds != bounds->s.value) {
194 yyerror2("role %s has inconsistent bounds %s/%s",
196 policydbp->p_role_val_to_name[role->bounds - 1]);
207 role_datum_t *role = NULL, *dest_role = NULL;
212 yyerror("no role name");
215 if ((role = (role_datum_t *) malloc(sizeof(*role))) == NULL) {
220 role_datum_init(role);
221 role->flavor = isattr ? ROLE_ATTRIB : ROLE_ROLE;
223 declare_symbol(SYM_ROLES, id, (hashtab_datum_t *) role, &value,
226 role->s.value = value;
232 /* this role was already declared in this module, or error */
234 role_datum_destroy(role);
235 free(role);
284 yyerror("duplicate declaration of role");
288 yyerror("could not declare role here");
293 (&dest_role->dominates, role->s.value - 1, 1)) {
300 return dest_role; /* role already declared for this block */
869 role_datum_t *role = NULL;
876 yyerror("no role name");
879 if ((role = malloc(sizeof(*role))) == NULL) {
884 role_datum_init(role);
885 role->flavor = isattr ? ROLE_ATTRIB : ROLE_ROLE;
887 require_symbol(SYM_ROLES, id, (hashtab_datum_t *) role,
888 &role->s.value, &role->s.value);
891 role_datum_destroy(role);
892 free(role);
900 yyerror("duplicate declaration of role");
904 yyerror("could not require role here");
910 (&role->dominates, role->s.value - 1, 1)) {
917 return 0; /* role already required */
1372 /* role transitions are not allowed within conditionals */
1384 /* role allows are not allowed within conditionals */