Lines Matching refs:id
115 int insert_id(const char *id, int push)
120 newid = strdup(id);
140 static int id_has_dot(const char *id)
142 if (strchr(id, '.') >= id + 1) {
150 char *id = 0;
156 id = queue_remove(id_queue);
157 free(id);
161 id = (char *)queue_remove(id_queue);
162 if (!id) {
172 ret = declare_symbol(SYM_CLASSES, id, datum, &value, &value);
179 yyerror2("duplicate declaration of class %s", id);
198 if (id)
199 free(id);
250 char *id = 0;
254 id = queue_remove(id_queue);
255 free(id);
259 id = (char *)queue_remove(id_queue);
260 if (!id) {
266 capnum = sepol_polcap_getnum(id);
268 yyerror2("invalid policy capability name %s", id);
278 free(id);
282 free(id);
288 char *id = 0;
292 id = queue_remove(id_queue);
293 free(id);
297 id = (char *)queue_remove(id_queue);
298 if (!id) {
308 newc->u.name = id;
314 yyerror2("duplicate initial SID %s", id);
330 if (id)
331 free(id);
339 char *id;
342 while ((id = queue_remove(id_queue))) {
343 if (!is_id_in_scope(SYM_CLASSES, id)) {
344 yyerror2("class %s is not within scope", id);
347 cladatum = hashtab_search(policydbp->p_classes.table, id);
349 yyerror2("unknown class %s", id);
350 free(id);
353 free(id);
364 char *id;
368 while ((id = queue_remove(id_queue)))
369 free(id);
373 while ((id = queue_remove(id_queue))) {
374 if (!is_id_in_scope(SYM_CLASSES, id)) {
375 yyerror2("class %s is not within scope", id);
378 cladatum = hashtab_search(policydbp->p_classes.table, id);
380 yyerror2("unknown class %s", id);
384 yyerror2("conflicting default user information for class %s", id);
388 free(id);
396 char *id;
400 while ((id = queue_remove(id_queue)))
401 free(id);
405 while ((id = queue_remove(id_queue))) {
406 if (!is_id_in_scope(SYM_CLASSES, id)) {
407 yyerror2("class %s is not within scope", id);
410 cladatum = hashtab_search(policydbp->p_classes.table, id);
412 yyerror2("unknown class %s", id);
416 yyerror2("conflicting default role information for class %s", id);
420 free(id);
428 char *id;
432 while ((id = queue_remove(id_queue)))
433 free(id);
437 while ((id = queue_remove(id_queue))) {
438 if (!is_id_in_scope(SYM_CLASSES, id)) {
439 yyerror2("class %s is not within scope", id);
442 cladatum = hashtab_search(policydbp->p_classes.table, id);
444 yyerror2("unknown class %s", id);
448 yyerror2("conflicting default type information for class %s", id);
452 free(id);
460 char *id;
464 while ((id = queue_remove(id_queue)))
465 free(id);
469 while ((id = queue_remove(id_queue))) {
470 if (!is_id_in_scope(SYM_CLASSES, id)) {
471 yyerror2("class %s is not within scope", id);
474 cladatum = hashtab_search(policydbp->p_classes.table, id);
476 yyerror2("unknown class %s", id);
480 yyerror2("conflicting default range information for class %s", id);
484 free(id);
492 char *id = 0, *perm = 0;
498 while ((id = queue_remove(id_queue)))
499 free(id);
503 id = (char *)queue_remove(id_queue);
504 if (!id) {
508 comdatum = hashtab_search(policydbp->p_commons.table, id);
510 yyerror2("duplicate declaration for common %s\n", id);
520 (hashtab_key_t) id, (hashtab_datum_t) comdatum);
556 id);
569 if (id)
570 free(id);
585 char *id;
592 while ((id = queue_remove(id_queue)))
593 free(id);
597 id = (char *)queue_remove(id_queue);
598 if (!id) {
603 (hashtab_key_t) id);
605 yyerror2("class %s is not defined", id);
608 free(id);
619 id = (char *)queue_remove(id_queue);
620 if (!id) {
628 (hashtab_key_t) id);
631 yyerror2("common %s is not defined", id);
634 cladatum->comkey = id;
643 while ((id = queue_remove(id_queue))) {
666 (hashtab_key_t) id);
669 "inherited permission", id);
674 (hashtab_key_t) id,
678 yyerror2("duplicate permission %s", id);
694 if (id)
695 free(id);
703 char *id;
715 while ((id = queue_remove(id_queue)))
716 free(id);
720 id = (char *)queue_remove(id_queue);
721 if (!id) {
725 if (id_has_dot(id)) {
747 ret = declare_symbol(SYM_LEVELS, id, datum, &value, &value);
770 while ((id = queue_remove(id_queue))) {
771 if (id_has_dot(id)) {
784 ret = declare_symbol(SYM_LEVELS, id, aliasdatum, NULL, &value);
813 if (id)
814 free(id);
824 if (id)
825 free(id);
837 char *id;
845 while ((id = queue_remove(id_queue)))
846 free(id);
851 while ((id = (char *)queue_remove(id_queue))) {
854 (hashtab_key_t) id);
857 "definition", id);
858 free(id);
863 "definition", id);
864 free(id);
870 free(id);
883 char *id;
894 while ((id = queue_remove(id_queue)))
895 free(id);
899 id = (char *)queue_remove(id_queue);
900 if (!id) {
904 if (id_has_dot(id)) {
916 ret = declare_symbol(SYM_CATS, id, datum, &value, &value);
940 while ((id = queue_remove(id_queue))) {
941 if (id_has_dot(id)) {
955 declare_symbol(SYM_CATS, id, aliasdatum, NULL,
985 if (id)
986 free(id);
994 if (id)
995 free(id);
1026 char *id;
1035 while ((id = queue_remove(id_queue)))
1036 free(id);
1040 id = (char *)queue_remove(id_queue);
1041 if (!id) {
1046 (hashtab_key_t) id);
1048 yyerror2("unknown sensitivity %s used in level definition", id);
1049 free(id);
1054 id);
1055 free(id);
1058 free(id);
1062 while ((id = queue_remove(id_queue))) {
1066 if (id_has_dot(id)) {
1067 char *id_start = id;
1068 char *id_end = strchr(id, '.');
1079 free(id);
1090 free(id);
1097 free(id);
1104 (hashtab_key_t) id);
1106 yyerror2("unknown category %s", id);
1107 free(id);
1116 free(id);
1121 free(id);
1148 char *id;
1158 while ((id = queue_remove(id_queue))) {
1159 free(id);
1166 while ((id = queue_remove(id_queue))) {
1167 if (!is_id_in_scope(SYM_TYPES, id)) {
1168 yyerror2("attribute %s is not within scope", id);
1172 attr = hashtab_search(policydbp->p_types.table, id);
1174 yyerror2("attribute %s is not declared", id);
1179 yyerror2("%s is a type, not an attribute", id);
1188 free(id);
1191 id = (char *) queue_remove(id_queue);
1192 if (!id) {
1197 if (!strcmp(id, "T")) {
1218 free(id);
1224 char *id;
1227 while ((id = queue_remove(id_queue))) {
1228 if (id_has_dot(id)) {
1229 free(id);
1236 free(id);
1243 ret = declare_symbol(SYM_TYPES, id, aliasdatum,
1252 id);
1266 aliasdatum = hashtab_search(policydbp->symtab[SYM_TYPES].table, id);
1281 free(id);
1289 char *id;
1293 while ((id = queue_remove(id_queue)))
1294 free(id);
1298 id = (char *)queue_remove(id_queue);
1299 if (!id) {
1304 if (!is_id_in_scope(SYM_TYPES, id)) {
1305 yyerror2("type %s is not within scope", id);
1306 free(id);
1309 t = hashtab_search(policydbp->p_types.table, id);
1312 "attribute", id);
1313 free(id);
1316 free(id);
1322 char *id;
1326 while ((id = queue_remove(id_queue)))
1327 free(id);
1331 id = (char *)queue_remove(id_queue);
1332 if (!id) {
1337 if (!is_id_in_scope(SYM_TYPES, id)) {
1338 yyerror2("type %s is not within scope", id);
1339 free(id);
1342 t = hashtab_search(policydbp->p_types.table, id);
1344 yyerror2("unknown type %s", id);
1345 free(id);
1348 free(id);
1350 while ((id = queue_remove(id_queue))) {
1351 if (!is_id_in_scope(SYM_TYPES, id)) {
1352 yyerror2("attribute %s is not within scope", id);
1353 free(id);
1356 attr = hashtab_search(policydbp->p_types.table, id);
1359 yyerror2("attribute %s is not declared", id);
1360 free(id);
1365 yyerror2("%s is a type, not an attribute", id);
1366 free(id);
1370 if ((attr = get_local_type(id, attr->s.value, 1)) == NULL) {
1431 char *bounds, *id;
1434 while ((id = queue_remove(id_queue)))
1435 free(id);
1445 while ((id = queue_remove(id_queue))) {
1446 if (define_typebounds_helper(bounds, id))
1448 free(id);
1457 char *id;
1466 if ((id = queue_remove(id_queue))) {
1469 if ((delim = strrchr(id, '.'))
1470 && (bounds = strdup(id))) {
1471 bounds[(size_t)(delim - id)] = '\0';
1473 if (define_typebounds_helper(bounds, id))
1477 free(id);
1481 while ((id = queue_remove(id_queue)))
1482 free(id);
1485 while ((id = queue_remove(id_queue)))
1486 free(id);
1500 while ((id = queue_remove(id_queue))) {
1501 if (!is_id_in_scope(SYM_TYPES, id)) {
1502 yyerror2("attribute %s is not within scope", id);
1503 free(id);
1506 attr = hashtab_search(policydbp->p_types.table, id);
1509 yyerror2("attribute %s is not declared", id);
1510 free(id);
1515 yyerror2("%s is a type, not an attribute", id);
1516 free(id);
1520 if ((attr = get_local_type(id, attr->s.value, 1)) == NULL) {
1542 static int set_types(type_set_t * set, char *id, int *add, char starallowed)
1546 if (strcmp(id, "*") == 0) {
1547 free(id);
1558 if (strcmp(id, "~") == 0) {
1559 free(id);
1570 if (strcmp(id, "-") == 0) {
1572 free(id);
1576 if (!is_id_in_scope(SYM_TYPES, id)) {
1577 yyerror2("type %s is not within scope", id);
1578 free(id);
1581 t = hashtab_search(policydbp->p_types.table, id);
1583 yyerror2("unknown type %s", id);
1584 free(id);
1595 free(id);
1600 free(id);
1606 char *id;
1630 while ((id = queue_remove(id_queue))) {
1631 if (set_types(&avrule->stypes, id, &add, 0))
1635 while ((id = queue_remove(id_queue))) {
1636 if (strcmp(id, "self") == 0) {
1637 free(id);
1645 if (set_types(&avrule->ttypes, id, &add, 0))
1653 id = (char *)queue_remove(id_queue);
1654 if (!id) {
1658 if (!is_id_in_scope(SYM_TYPES, id)) {
1659 yyerror2("type %s is not within scope", id);
1660 free(id);
1664 (hashtab_key_t) id);
1666 yyerror2("unknown type %s", id);
1667 free(id);
1670 free(id);
1697 char *id;
1701 while ((id = queue_remove(id_queue)))
1702 free(id);
1703 while ((id = queue_remove(id_queue)))
1704 free(id);
1705 while ((id = queue_remove(id_queue)))
1706 free(id);
1707 id = queue_remove(id_queue);
1708 free(id);
1721 char *id;
1725 while ((id = queue_remove(id_queue)))
1726 free(id);
1727 while ((id = queue_remove(id_queue)))
1728 free(id);
1729 while ((id = queue_remove(id_queue)))
1730 free(id);
1731 id = queue_remove(id_queue);
1732 free(id);
1744 char *id, *bool_value;
1750 while ((id = queue_remove(id_queue)))
1751 free(id);
1755 id = (char *)queue_remove(id_queue);
1756 if (!id) {
1760 if (id_has_dot(id)) {
1761 free(id);
1768 free(id);
1774 ret = declare_symbol(SYM_BOOLS, id, datum, &value, &value);
1781 yyerror2("duplicate declaration of boolean %s", id);
1808 cond_destroy_bool(id, datum, NULL);
1910 char *id;
1917 while ((id = queue_remove(id_queue))) {
1918 if (strcmp(id,"~") == 0) {
1920 free(id);
1922 } else if (strcmp(id,"-") == 0) {
1924 free(id);
1925 id = queue_remove(id_queue);
1926 r->range.high = (uint16_t) strtoul(id,NULL,0);
1931 free(id);
1945 rnew->range.low = (uint16_t) strtoul(id,NULL,0);
1947 free(id);
2039 char *id;
2066 while ((id = queue_remove(id_queue))) {
2068 (&avrule->stypes, id, &add,
2075 while ((id = queue_remove(id_queue))) {
2076 if (strcmp(id, "self") == 0) {
2077 free(id);
2087 (&avrule->ttypes, id, &add,
2100 id = queue_head(id_queue);
2118 perdatum = hashtab_search(cladatum->permissions.table, id);
2123 id);
2128 " for class %s", id,
2131 } else if (!is_perm_in_scope (id, policydbp->p_class_val_to_name[i])) {
2133 " not within scope", id,
2465 char *id;
2472 while ((id = queue_remove(id_queue)))
2473 free(id);
2482 id = queue_remove(id_queue);
2483 if (strcmp(id,"ioctl") == 0) {
2490 free(id);
2499 char *id;
2528 while ((id = queue_remove(id_queue))) {
2530 (&avrule->stypes, id, &add,
2537 while ((id = queue_remove(id_queue))) {
2538 if (strcmp(id, "self") == 0) {
2539 free(id);
2549 (&avrule->ttypes, id, &add,
2579 while ((id = queue_remove(id_queue))) {
2584 if (strcmp(id, "*") == 0) {
2590 if (strcmp(id, "~") == 0) {
2599 hashtab_search(cladatum->permissions.table, id);
2605 id);
2611 " for class %s", id,
2616 (id, policydbp->p_class_val_to_name[i])) {
2619 " not within scope", id,
2630 free(id);
2649 char *id;
2655 while ((id = queue_remove(id_queue)))
2656 free(id);
2669 char *id;
2675 while ((id = queue_remove(id_queue)))
2676 free(id);
2695 char *id;
2699 while ((id = queue_remove(id_queue)))
2700 free(id);
2704 id = (char *)queue_remove(id_queue);
2705 if (!id) {
2710 if (!is_id_in_scope(SYM_ROLES, id)) {
2711 yyerror2("role %s is not within scope", id);
2712 free(id);
2716 role = hashtab_search(policydbp->p_roles.table, id);
2718 yyerror2("unknown role %s", id);
2719 free(id);
2722 role = get_local_role(id, role->s.value, (role->flavor == ROLE_ATTRIB));
2724 while ((id = queue_remove(id_queue))) {
2725 if (set_types(&role->types, id, &add, 0))
2748 char *id;
2752 while ((id = queue_remove(id_queue)))
2753 free(id);
2761 while ((id = queue_remove(id_queue))) {
2762 if (!is_id_in_scope(SYM_ROLES, id)) {
2763 yyerror2("attribute %s is not within scope", id);
2764 free(id);
2767 attr = hashtab_search(policydbp->p_roles.table, id);
2770 yyerror2("role attribute %s is not declared", id);
2771 free(id);
2776 yyerror2("%s is a regular role, not an attribute", id);
2777 free(id);
2781 if ((attr = get_local_role(id, attr->s.value, 1)) == NULL) {
2797 char *id;
2801 while ((id = queue_remove(id_queue)))
2802 free(id);
2806 id = (char *)queue_remove(id_queue);
2807 if (!id) {
2812 if (!is_id_in_scope(SYM_ROLES, id)) {
2813 yyerror2("role %s is not within scope", id);
2814 free(id);
2817 r = hashtab_search(policydbp->p_roles.table, id);
2820 yyerror2("unknown role %s", id);
2821 free(id);
2824 free(id);
2826 while ((id = queue_remove(id_queue))) {
2827 if (!is_id_in_scope(SYM_ROLES, id)) {
2828 yyerror2("attribute %s is not within scope", id);
2829 free(id);
2832 attr = hashtab_search(policydbp->p_roles.table, id);
2835 yyerror2("role attribute %s is not declared", id);
2836 free(id);
2841 yyerror2("%s is a regular role, not an attribute", id);
2842 free(id);
2846 if ((attr = get_local_role(id, attr->s.value, 1)) == NULL) {
3072 static int set_roles(role_set_t * set, char *id)
3076 if (strcmp(id, "*") == 0) {
3077 free(id);
3082 if (strcmp(id, "~") == 0) {
3083 free(id);
3087 if (!is_id_in_scope(SYM_ROLES, id)) {
3088 yyerror2("role %s is not within scope", id);
3089 free(id);
3092 r = hashtab_search(policydbp->p_roles.table, id);
3094 yyerror2("unknown role %s", id);
3095 free(id);
3101 free(id);
3104 free(id);
3110 char *id;
3123 while ((id = queue_remove(id_queue)))
3124 free(id);
3125 while ((id = queue_remove(id_queue)))
3126 free(id);
3128 while ((id = queue_remove(id_queue)))
3129 free(id);
3130 id = queue_remove(id_queue);
3131 free(id);
3141 while ((id = queue_remove(id_queue))) {
3142 if (set_roles(&roles, id))
3146 while ((id = queue_remove(id_queue))) {
3147 if (set_types(&types, id, &add, 0))
3169 id = (char *)queue_remove(id_queue);
3170 if (!id) {
3174 if (!is_id_in_scope(SYM_ROLES, id)) {
3175 yyerror2("role %s is not within scope", id);
3176 free(id);
3179 role = hashtab_search(policydbp->p_roles.table, id);
3181 yyerror2("unknown role %s used in transition definition", id);
3182 free(id);
3187 yyerror2("the new role %s must be a regular role", id);
3188 free(id);
3191 free(id);
3258 char *id;
3262 while ((id = queue_remove(id_queue)))
3263 free(id);
3264 while ((id = queue_remove(id_queue)))
3265 free(id);
3276 while ((id = queue_remove(id_queue))) {
3277 if (set_roles(&ra->roles, id)) {
3283 while ((id = queue_remove(id_queue))) {
3284 if (set_roles(&ra->new_roles, id)) {
3303 char *id, *name = NULL;
3316 while ((id = queue_remove(id_queue)))
3317 free(id);
3319 while ((id = queue_remove(id_queue)))
3320 free(id);
3322 while ((id = queue_remove(id_queue)))
3323 free(id);
3325 id = queue_remove(id_queue);
3326 free(id);
3328 id = queue_remove(id_queue);
3329 free(id);
3340 while ((id = queue_remove(id_queue))) {
3341 if (set_types(&stypes, id, &add, 0))
3347 while ((id = queue_remove(id_queue))) {
3348 if (strcmp(id, "self") == 0) {
3349 free(id);
3357 if (set_types(&ttypes, id, &add, 0))
3364 id = (char *)queue_remove(id_queue);
3365 if (!id) {
3369 if (!is_id_in_scope(SYM_TYPES, id)) {
3370 yyerror2("type %s is not within scope", id);
3371 free(id);
3374 typdatum = hashtab_search(policydbp->p_types.table, id);
3376 yyerror2("unknown type %s used in transition definition", id);
3377 free(id);
3380 free(id);
3523 char *id;
3534 while ((id = queue_remove(id_queue)))
3535 free(id);
3536 while ((id = queue_remove(id_queue)))
3537 free(id);
3581 while ((id = queue_remove(id_queue))) {
3582 if (!is_id_in_scope(SYM_CLASSES, id)) {
3583 yyerror2("class %s is not within scope", id);
3584 free(id);
3589 (hashtab_key_t) id);
3591 yyerror2("class %s is not defined", id);
3593 free(id);
3599 free(id);
3625 free(id);
3628 while ((id = queue_remove(id_queue))) {
3633 if (strcmp(id, "*") == 0) {
3638 if (strcmp(id, "~") == 0) {
3654 id);
3664 id);
3668 " defined for class %s", id, policydbp->p_class_val_to_name[i]);
3669 free(id);
3676 free(id);
3687 char *id;
3695 while ((id = queue_remove(id_queue)))
3696 free(id);
3736 while ((id = queue_remove(id_queue))) {
3737 if (!is_id_in_scope(SYM_CLASSES, id)) {
3738 yyerror2("class %s is not within scope", id);
3739 free(id);
3744 (hashtab_key_t) id);
3746 yyerror2("class %s is not defined", id);
3748 free(id);
3754 free(id);
3775 free(id);
3789 char *id;
3795 while ((id = queue_remove(id_queue)))
3796 free(id);
3861 while ((id = (char *)queue_remove(id_queue))) {
3863 if (!is_id_in_scope(SYM_USERS, id)) {
3865 id);
3874 id);
3876 yyerror2("unknown user %s", id);
3882 if (!is_id_in_scope(SYM_ROLES, id)) {
3884 id);
3893 id);
3895 yyerror2("unknown role %s", id);
3901 if (set_types(expr->type_names, id, &add, 0)) {
3917 free(id);
4033 char *id;
4038 while ((id = queue_remove(id_queue))) {
4039 free(id);
4104 id = (char *)queue_remove(id_queue);
4105 if (!id) {
4106 yyerror("bad conditional; expected boolean id");
4107 free(id);
4111 if (!is_id_in_scope(SYM_BOOLS, id)) {
4112 yyerror2("boolean %s is not within scope", id);
4113 free(id);
4120 (hashtab_key_t) id);
4123 id);
4125 free(id);
4129 free(id);
4138 static int set_user_roles(role_set_t * set, char *id)
4142 if (strcmp(id, "*") == 0) {
4143 free(id);
4148 if (strcmp(id, "~") == 0) {
4149 free(id);
4154 if (!is_id_in_scope(SYM_ROLES, id)) {
4155 yyerror2("role %s is not within scope", id);
4156 free(id);
4159 r = hashtab_search(policydbp->p_roles.table, id);
4161 yyerror2("unknown role %s", id);
4162 free(id);
4166 free(id);
4175 static int parse_categories(char *id, level_datum_t * levdatum, ebitmap_t * cats)
4180 if (id_has_dot(id)) {
4181 char *id_start = id;
4182 char *id_end = strchr(id, '.');
4208 (hashtab_key_t) id);
4210 yyerror2("unknown category %s", id);
4235 static int parse_semantic_categories(char *id, level_datum_t * levdatum __attribute__ ((unused)),
4242 if (id_has_dot(id)) {
4243 char *id_start = id;
4244 char *id_end = strchr(id, '.');
4266 (hashtab_key_t) id);
4268 yyerror2("unknown category %s", id);
4292 char *id;
4298 while ((id = queue_remove(id_queue)))
4299 free(id);
4301 while ((id = queue_remove(id_queue)))
4302 free(id);
4303 id = queue_remove(id_queue);
4304 free(id);
4306 while ((id = queue_remove(id_queue))) {
4307 free(id);
4309 id = queue_remove(id_queue);
4310 if (!id)
4312 free(id);
4322 while ((id = queue_remove(id_queue))) {
4323 if (set_user_roles(&usrdatum->roles, id))
4328 id = queue_remove(id_queue);
4329 if (!id) {
4336 (hashtab_key_t) id);
4339 " level definition", id);
4340 free(id);
4343 free(id);
4347 while ((id = queue_remove(id_queue))) {
4348 if (parse_semantic_categories(id, levdatum,
4350 free(id);
4353 free(id);
4356 id = queue_remove(id_queue);
4361 (hashtab_key_t) id);
4364 " range definition", id);
4365 free(id);
4368 free(id);
4372 while ((id = queue_remove(id_queue))) {
4373 if (parse_semantic_categories(id, levdatum,
4375 free(id);
4378 free(id);
4381 id = queue_remove(id_queue);
4382 if (!id)
4399 char *id;
4407 id = queue_remove(id_queue);
4408 free(id); /* user */
4409 id = queue_remove(id_queue);
4410 free(id); /* role */
4411 id = queue_remove(id_queue);
4412 free(id); /* type */
4414 id = queue_remove(id_queue);
4415 free(id);
4417 while ((id = queue_remove(id_queue))) {
4418 free(id);
4420 id = queue_remove(id_queue);
4421 if (!id)
4423 free(id);
4438 id = queue_remove(id_queue);
4439 if (!id) {
4443 if (!is_id_in_scope(SYM_USERS, id)) {
4444 yyerror2("user %s is not within scope", id);
4445 free(id);
4449 (hashtab_key_t) id);
4451 yyerror2("user %s is not defined", id);
4452 free(id);
4458 free(id);
4461 id = (char *)queue_remove(id_queue);
4462 if (!id) {
4466 if (!is_id_in_scope(SYM_ROLES, id)) {
4467 yyerror2("role %s is not within scope", id);
4468 free(id);
4472 (hashtab_key_t) id);
4474 yyerror2("role %s is not defined", id);
4475 free(id);
4481 free(id);
4484 id = (char *)queue_remove(id_queue);
4485 if (!id) {
4489 if (!is_id_in_scope(SYM_TYPES, id)) {
4490 yyerror2("type %s is not within scope", id);
4491 free(id);
4495 (hashtab_key_t) id);
4497 yyerror2("type %s is not defined or is an attribute", id);
4498 free(id);
4504 free(id);
4508 id = (char *)queue_head(id_queue);
4509 if (!id) {
4515 id = (char *)queue_remove(id_queue);
4519 (hashtab_key_t) id);
4521 yyerror2("Sensitivity %s is not defined", id);
4522 free(id);
4525 free(id);
4529 while ((id = queue_remove(id_queue))) {
4530 if (parse_categories(id, levdatum,
4532 free(id);
4535 free(id);
4539 id = (char *)queue_remove(id_queue);
4540 if (!id)
4569 char *id;
4573 id = (char *)queue_remove(id_queue);
4574 free(id);
4579 id = (char *)queue_remove(id_queue);
4580 if (!id) {
4586 if (!strcmp(id, c->u.name))
4591 yyerror2("SID %s is not defined", id);
4592 free(id);
4596 yyerror2("The context for SID %s is multiply defined", id);
4597 free(id);
4601 free(id);
4673 char *id;
4681 id = (char *) queue_remove(id_queue);
4682 free(id);
4727 char *id;
4735 id = (char *)queue_remove(id_queue);
4736 free(id);
4791 char *id;
4799 id = (char *)queue_remove(id_queue);
4800 free(id);
4855 char *id;
4863 id = (char *) queue_remove(id_queue);
4864 free(id);
4966 char *id;
4974 id = (char *)queue_remove(id_queue);
4975 free(id);
4987 id = (char *)queue_remove(id_queue);
4988 if (!id) {
4992 if ((strcmp(id, "tcp") == 0) || (strcmp(id, "TCP") == 0)) {
4994 } else if ((strcmp(id, "udp") == 0) || (strcmp(id, "UDP") == 0)) {
4996 } else if ((strcmp(id, "dccp") == 0) || (strcmp(id, "DCCP") == 0)) {
4998 } else if ((strcmp(id, "sctp") == 0) || (strcmp(id, "SCTP") == 0)) {
5001 yyerror2("unrecognized protocol %s", id);
5029 yyerror2("duplicate portcon entry for %s %d-%d ", id,
5035 "entry for %d-%d", id, low, high, low2, high2);
5045 free(id);
5049 free(id);
5058 char *id;
5067 id = (char *)queue_remove(id_queue);
5068 free(id);
5080 id = queue_remove(id_queue);
5081 if (!id) {
5087 rc = inet_pton(AF_INET6, id, &subnet_prefix);
5088 free(id);
5163 char *id;
5172 id = (char *)queue_remove(id_queue);
5173 free(id);
5300 char *id;
5317 id = queue_remove(id_queue);
5318 if (!id) {
5324 rc = inet_pton(AF_INET, id, &addr);
5325 free(id);
5333 id = queue_remove(id_queue);
5334 if (!id) {
5340 rc = inet_pton(AF_INET, id, &mask);
5341 free(id);
5428 char *id;
5445 id = queue_remove(id_queue);
5446 if (!id) {
5452 rc = inet_pton(AF_INET6, id, &addr);
5453 free(id);
5461 id = queue_remove(id_queue);
5462 if (!id) {
5468 rc = inet_pton(AF_INET6, id, &mask);
5469 free(id);
5721 char *id;
5733 while ((id = queue_remove(id_queue)))
5734 free(id);
5735 while ((id = queue_remove(id_queue)))
5736 free(id);
5738 while ((id = queue_remove(id_queue)))
5739 free(id);
5740 id = queue_remove(id_queue);
5741 free(id);
5743 while ((id = queue_remove(id_queue))) {
5744 free(id);
5746 id = queue_remove(id_queue);
5747 if (!id)
5749 free(id);
5761 while ((id = queue_remove(id_queue))) {
5762 if (set_types(&rule->stypes, id, &add, 0))
5766 while ((id = queue_remove(id_queue))) {
5767 if (set_types(&rule->ttypes, id, &add, 0))
5789 id = (char *)queue_remove(id_queue);
5790 if (!id) {
5795 levdatum = hashtab_search(policydbp->p_levels.table, id);
5798 "definition", id);
5799 free(id);
5802 free(id);
5806 while ((id = queue_remove(id_queue))) {
5807 if (parse_semantic_categories(id, levdatum,
5809 free(id);
5812 free(id);
5815 id = (char *)queue_remove(id_queue);
5816 if (!id)