Lines Matching refs:id
70 static int id_has_dot(char *id);
107 int insert_id(char *id, int push)
112 newid = (char *)malloc(strlen(id) + 1);
117 strcpy(newid, id);
133 static int id_has_dot(char *id)
135 if (strchr(id, '.') >= id + 1) {
143 char *id = 0;
149 id = queue_remove(id_queue);
150 free(id);
154 id = (char *)queue_remove(id_queue);
155 if (!id) {
165 ret = declare_symbol(SYM_CLASSES, id, datum, &value, &value);
172 yyerror2("duplicate declaration of class %s", id);
191 if (id)
192 free(id);
243 char *id = 0;
247 id = queue_remove(id_queue);
248 free(id);
252 id = (char *)queue_remove(id_queue);
253 if (!id) {
259 capnum = sepol_polcap_getnum(id);
261 yyerror2("invalid policy capability name %s", id);
271 free(id);
275 free(id);
281 char *id = 0;
285 id = queue_remove(id_queue);
286 free(id);
290 id = (char *)queue_remove(id_queue);
291 if (!id) {
301 newc->u.name = id;
307 yyerror2("duplicate initial SID %s", id);
323 if (id)
324 free(id);
332 char *id;
335 while ((id = queue_remove(id_queue))) {
336 if (!is_id_in_scope(SYM_CLASSES, id)) {
337 yyerror2("class %s is not within scope", id);
340 cladatum = hashtab_search(policydbp->p_classes.table, id);
342 yyerror2("unknown class %s", id);
349 free(id);
356 char *id;
360 while ((id = queue_remove(id_queue)))
361 free(id);
365 while ((id = queue_remove(id_queue))) {
366 if (!is_id_in_scope(SYM_CLASSES, id)) {
367 yyerror2("class %s is not within scope", id);
370 cladatum = hashtab_search(policydbp->p_classes.table, id);
372 yyerror2("unknown class %s", id);
376 yyerror2("conflicting default user information for class %s", id);
380 free(id);
388 char *id;
392 while ((id = queue_remove(id_queue)))
393 free(id);
397 while ((id = queue_remove(id_queue))) {
398 if (!is_id_in_scope(SYM_CLASSES, id)) {
399 yyerror2("class %s is not within scope", id);
402 cladatum = hashtab_search(policydbp->p_classes.table, id);
404 yyerror2("unknown class %s", id);
408 yyerror2("conflicting default role information for class %s", id);
412 free(id);
420 char *id;
424 while ((id = queue_remove(id_queue)))
425 free(id);
429 while ((id = queue_remove(id_queue))) {
430 if (!is_id_in_scope(SYM_CLASSES, id)) {
431 yyerror2("class %s is not within scope", id);
434 cladatum = hashtab_search(policydbp->p_classes.table, id);
436 yyerror2("unknown class %s", id);
440 yyerror2("conflicting default range information for class %s", id);
444 free(id);
452 char *id = 0, *perm = 0;
458 while ((id = queue_remove(id_queue)))
459 free(id);
463 id = (char *)queue_remove(id_queue);
464 if (!id) {
468 comdatum = hashtab_search(policydbp->p_commons.table, id);
470 yyerror2("duplicate declaration for common %s\n", id);
480 (hashtab_key_t) id, (hashtab_datum_t) comdatum);
516 id);
529 if (id)
530 free(id);
545 char *id;
552 while ((id = queue_remove(id_queue)))
553 free(id);
557 id = (char *)queue_remove(id_queue);
558 if (!id) {
563 (hashtab_key_t) id);
565 yyerror2("class %s is not defined", id);
568 free(id);
579 id = (char *)queue_remove(id_queue);
580 if (!id) {
588 (hashtab_key_t) id);
591 yyerror2("common %s is not defined", id);
594 cladatum->comkey = id;
603 while ((id = queue_remove(id_queue))) {
626 (hashtab_key_t) id);
629 "inherited permission", id);
634 (hashtab_key_t) id,
638 yyerror2("duplicate permission %s", id);
654 if (id)
655 free(id);
663 char *id;
675 while ((id = queue_remove(id_queue)))
676 free(id);
680 id = (char *)queue_remove(id_queue);
681 if (!id) {
685 if (id_has_dot(id)) {
707 ret = declare_symbol(SYM_LEVELS, id, datum, &value, &value);
730 while ((id = queue_remove(id_queue))) {
731 if (id_has_dot(id)) {
744 ret = declare_symbol(SYM_LEVELS, id, aliasdatum, NULL, &value);
773 if (id)
774 free(id);
784 if (id)
785 free(id);
797 char *id;
805 while ((id = queue_remove(id_queue)))
806 free(id);
811 while ((id = (char *)queue_remove(id_queue))) {
814 (hashtab_key_t) id);
817 "definition", id);
818 free(id);
823 "definition", id);
824 free(id);
830 free(id);
843 char *id;
854 while ((id = queue_remove(id_queue)))
855 free(id);
859 id = (char *)queue_remove(id_queue);
860 if (!id) {
864 if (id_has_dot(id)) {
876 ret = declare_symbol(SYM_CATS, id, datum, &value, &value);
900 while ((id = queue_remove(id_queue))) {
901 if (id_has_dot(id)) {
915 declare_symbol(SYM_CATS, id, aliasdatum, NULL,
945 if (id)
946 free(id);
954 if (id)
955 free(id);
986 char *id;
995 while ((id = queue_remove(id_queue)))
996 free(id);
1000 id = (char *)queue_remove(id_queue);
1001 if (!id) {
1006 (hashtab_key_t) id);
1008 yyerror2("unknown sensitivity %s used in level definition", id);
1009 free(id);
1014 id);
1015 free(id);
1018 free(id);
1022 while ((id = queue_remove(id_queue))) {
1026 if (id_has_dot(id)) {
1027 char *id_start = id;
1028 char *id_end = strchr(id, '.');
1039 free(id);
1050 free(id);
1057 free(id);
1064 (hashtab_key_t) id);
1071 free(id);
1076 free(id);
1103 char *id;
1106 while ((id = queue_remove(id_queue))) {
1107 if (id_has_dot(id)) {
1108 free(id);
1115 free(id);
1122 ret = declare_symbol(SYM_TYPES, id, aliasdatum,
1131 id);
1145 aliasdatum = hashtab_search(policydbp->symtab[SYM_TYPES].table, id);
1160 free(id);
1168 char *id;
1172 while ((id = queue_remove(id_queue)))
1173 free(id);
1177 id = (char *)queue_remove(id_queue);
1178 if (!id) {
1183 if (!is_id_in_scope(SYM_TYPES, id)) {
1184 yyerror2("type %s is not within scope", id);
1185 free(id);
1188 t = hashtab_search(policydbp->p_types.table, id);
1191 "attribute", id);
1192 free(id);
1200 char *id;
1204 while ((id = queue_remove(id_queue)))
1205 free(id);
1209 id = (char *)queue_remove(id_queue);
1210 if (!id) {
1215 if (!is_id_in_scope(SYM_TYPES, id)) {
1216 yyerror2("type %s is not within scope", id);
1217 free(id);
1220 t = hashtab_search(policydbp->p_types.table, id);
1222 yyerror2("unknown type %s", id);
1223 free(id);
1227 while ((id = queue_remove(id_queue))) {
1228 if (!is_id_in_scope(SYM_TYPES, id)) {
1229 yyerror2("attribute %s is not within scope", id);
1230 free(id);
1233 attr = hashtab_search(policydbp->p_types.table, id);
1236 yyerror2("attribute %s is not declared", id);
1237 free(id);
1242 yyerror2("%s is a type, not an attribute", id);
1243 free(id);
1247 if ((attr = get_local_type(id, attr->s.value, 1)) == NULL) {
1308 char *bounds, *id;
1311 while ((id = queue_remove(id_queue)))
1312 free(id);
1322 while ((id = queue_remove(id_queue))) {
1323 if (define_typebounds_helper(bounds, id))
1325 free(id);
1334 char *id;
1343 if ((id = queue_remove(id_queue))) {
1346 if ((delim = strrchr(id, '.'))
1347 && (bounds = strdup(id))) {
1348 bounds[(size_t)(delim - id)] = '\0';
1350 if (define_typebounds_helper(bounds, id))
1354 free(id);
1358 while ((id = queue_remove(id_queue)))
1359 free(id);
1362 while ((id = queue_remove(id_queue)))
1363 free(id);
1377 while ((id = queue_remove(id_queue))) {
1378 if (!is_id_in_scope(SYM_TYPES, id)) {
1379 yyerror2("attribute %s is not within scope", id);
1380 free(id);
1383 attr = hashtab_search(policydbp->p_types.table, id);
1386 yyerror2("attribute %s is not declared", id);
1391 yyerror2("%s is a type, not an attribute", id);
1395 if ((attr = get_local_type(id, attr->s.value, 1)) == NULL) {
1417 static int set_types(type_set_t * set, char *id, int *add, char starallowed)
1421 if (strcmp(id, "*") == 0) {
1428 free(id);
1433 if (strcmp(id, "~") == 0) {
1440 free(id);
1445 if (strcmp(id, "-") == 0) {
1447 free(id);
1451 if (!is_id_in_scope(SYM_TYPES, id)) {
1452 yyerror2("type %s is not within scope", id);
1453 free(id);
1456 t = hashtab_search(policydbp->p_types.table, id);
1458 yyerror2("unknown type %s", id);
1459 free(id);
1470 free(id);
1475 free(id);
1481 char *id;
1498 while ((id = queue_remove(id_queue))) {
1499 if (set_types(&avrule->stypes, id, &add, 0))
1503 while ((id = queue_remove(id_queue))) {
1504 if (set_types(&avrule->ttypes, id, &add, 0))
1512 id = (char *)queue_remove(id_queue);
1513 if (!id) {
1517 if (!is_id_in_scope(SYM_TYPES, id)) {
1518 yyerror2("type %s is not within scope", id);
1519 free(id);
1523 (hashtab_key_t) id);
1525 yyerror2("unknown type %s", id);
1556 char *id;
1560 while ((id = queue_remove(id_queue)))
1561 free(id);
1562 while ((id = queue_remove(id_queue)))
1563 free(id);
1564 while ((id = queue_remove(id_queue)))
1565 free(id);
1566 id = queue_remove(id_queue);
1567 free(id);
1580 char *id;
1584 while ((id = queue_remove(id_queue)))
1585 free(id);
1586 while ((id = queue_remove(id_queue)))
1587 free(id);
1588 while ((id = queue_remove(id_queue)))
1589 free(id);
1590 id = queue_remove(id_queue);
1591 free(id);
1603 char *id, *bool_value;
1609 while ((id = queue_remove(id_queue)))
1610 free(id);
1614 id = (char *)queue_remove(id_queue);
1615 if (!id) {
1619 if (id_has_dot(id)) {
1620 free(id);
1627 free(id);
1633 ret = declare_symbol(SYM_BOOLS, id
1640 yyerror2("duplicate declaration of boolean %s", id);
1660 free(id);
1667 cond_destroy_bool(id, datum, NULL);
1690 char *id;
1711 while ((id = queue_remove(id_queue))) {
1713 (&avrule->stypes, id, &add,
1720 while ((id = queue_remove(id_queue))) {
1721 if (strcmp(id, "self") == 0) {
1722 free(id);
1727 (&avrule->ttypes, id, &add,
1759 while ((id = queue_remove(id_queue))) {
1766 if (strcmp(id, "*") == 0) {
1772 if (strcmp(id, "~") == 0) {
1781 hashtab_search(cladatum->permissions.table, id);
1787 id);
1793 " for class %s", id,
1798 (id, policydbp->p_class_val_to_name[i])) {
1801 " not within scope", id,
1812 free(id);
1827 char *id;
1833 while ((id = queue_remove(id_queue)))
1834 free(id);
1847 char *id;
1853 while ((id = queue_remove(id_queue)))
1854 free(id);
1873 char *id;
1877 while ((id = queue_remove(id_queue)))
1878 free(id);
1882 id = (char *)queue_remove(id_queue);
1883 if (!id) {
1888 if (!is_id_in_scope(SYM_ROLES, id)) {
1889 yyerror2("role %s is not within scope", id);
1890 free(id);
1894 role = hashtab_search(policydbp->p_roles.table, id);
1896 yyerror2("unknown role %s", id);
1897 free(id);
1901 while ((id = queue_remove(id_queue))) {
1902 if (set_types(&role->types, id, &add, 0))
1925 char *id;
1929 while ((id = queue_remove(id_queue)))
1930 free(id);
1938 while ((id = queue_remove(id_queue))) {
1939 if (!is_id_in_scope(SYM_ROLES, id)) {
1940 yyerror2("attribute %s is not within scope", id);
1941 free(id);
1944 attr = hashtab_search(policydbp->p_roles.table, id);
1947 yyerror2("role attribute %s is not declared", id);
1948 free(id);
1953 yyerror2("%s is a regular role, not an attribute", id);
1954 free(id);
1958 if ((attr = get_local_role(id, attr->s.value, 1)) == NULL) {
1974 char *id;
1978 while ((id = queue_remove(id_queue)))
1979 free(id);
1983 id = (char *)queue_remove(id_queue);
1984 if (!id) {
1989 if (!is_id_in_scope(SYM_ROLES, id)) {
1990 yyerror2("role %s is not within scope", id);
1991 free(id);
1994 r = hashtab_search(policydbp->p_roles.table, id);
1997 yyerror2("unknown role %s", id);
1998 free(id);
2002 while ((id = queue_remove(id_queue))) {
2003 if (!is_id_in_scope(SYM_ROLES, id)) {
2004 yyerror2("attribute %s is not within scope", id);
2005 free(id);
2008 attr = hashtab_search(policydbp->p_roles.table, id);
2011 yyerror2("role attribute %s is not declared", id);
2012 free(id);
2017 yyerror2("%s is a regular role, not an attribute", id);
2018 free(id);
2022 if ((attr = get_local_role(id, attr->s.value, 1)) == NULL) {
2255 static int set_roles(role_set_t * set, char *id)
2259 if (strcmp(id, "*") == 0) {
2260 free(id);
2265 if (strcmp(id, "~") == 0) {
2266 free(id);
2270 if (!is_id_in_scope(SYM_ROLES, id)) {
2271 yyerror2("role %s is not within scope", id);
2272 free(id);
2275 r = hashtab_search(policydbp->p_roles.table, id);
2277 yyerror2("unknown role %s", id);
2278 free(id);
2284 free(id);
2287 free(id);
2293 char *id;
2306 while ((id = queue_remove(id_queue)))
2307 free(id);
2308 while ((id = queue_remove(id_queue)))
2309 free(id);
2311 while ((id = queue_remove(id_queue)))
2312 free(id);
2313 id = queue_remove(id_queue);
2314 free(id);
2324 while ((id = queue_remove(id_queue))) {
2325 if (set_roles(&roles, id))
2329 while ((id = queue_remove(id_queue))) {
2330 if (set_types(&types, id, &add, 0))
2352 id = (char *)queue_remove(id_queue);
2353 if (!id) {
2357 if (!is_id_in_scope(SYM_ROLES, id)) {
2358 yyerror2("role %s is not within scope", id);
2359 free(id);
2362 role = hashtab_search(policydbp->p_roles.table, id);
2364 yyerror2("unknown role %s used in transition definition", id);
2369 yyerror2("the new role %s must be a regular role", id);
2444 char *id;
2448 while ((id = queue_remove(id_queue)))
2449 free(id);
2450 while ((id = queue_remove(id_queue)))
2451 free(id);
2462 while ((id = queue_remove(id_queue))) {
2463 if (set_roles(&ra->roles, id)) {
2469 while ((id = queue_remove(id_queue))) {
2470 if (set_roles(&ra->new_roles, id)) {
2489 char *id, *name = NULL;
2503 while ((id = queue_remove(id_queue)))
2504 free(id);
2506 while ((id = queue_remove(id_queue)))
2507 free(id);
2509 while ((id = queue_remove(id_queue)))
2510 free(id);
2512 id = queue_remove(id_queue);
2513 free(id);
2515 id = queue_remove(id_queue);
2516 free(id);
2523 while ((id = queue_remove(id_queue))) {
2524 if (set_types(&stypes, id, &add, 0))
2530 while ((id = queue_remove(id_queue))) {
2531 if (set_types(&ttypes, id, &add, 0))
2539 id = (char *)queue_remove(id_queue);
2540 if (!id) {
2544 if (!is_id_in_scope(SYM_TYPES, id)) {
2545 yyerror2("type %s is not within scope", id);
2546 free(id);
2549 typdatum = hashtab_search(policydbp->p_types.table, id);
2551 yyerror2("unknown type %s used in transition definition", id);
2554 free(id);
2693 char *id;
2704 while ((id = queue_remove(id_queue)))
2705 free(id);
2706 while ((id = queue_remove(id_queue)))
2707 free(id);
2751 while ((id = queue_remove(id_queue))) {
2752 if (!is_id_in_scope(SYM_CLASSES, id)) {
2753 yyerror2("class %s is not within scope", id);
2754 free(id);
2759 (hashtab_key_t) id);
2761 yyerror2("class %s is not defined", id);
2763 free(id);
2769 free(id);
2794 free(id);
2797 while ((id = queue_remove(id_queue))) {
2808 id);
2818 id);
2822 " defined", id);
2823 free(id);
2832 free(id);
2843 char *id;
2851 while ((id = queue_remove(id_queue)))
2852 free(id);
2892 while ((id = queue_remove(id_queue))) {
2893 if (!is_id_in_scope(SYM_CLASSES, id)) {
2894 yyerror2("class %s is not within scope", id);
2895 free(id);
2900 (hashtab_key_t) id);
2902 yyerror2("class %s is not defined", id);
2904 free(id);
2910 free(id);
2931 free(id);
2945 char *id;
2951 while ((id = queue_remove(id_queue)))
2952 free(id);
3017 while ((id = (char *)queue_remove(id_queue))) {
3019 if (!is_id_in_scope(SYM_USERS, id)) {
3021 id);
3030 id);
3032 yyerror2("unknown user %s", id);
3038 if (!is_id_in_scope(SYM_ROLES, id)) {
3040 id);
3049 id);
3051 yyerror2("unknown role %s", id);
3057 if (set_types(expr->type_names, id, &add, 0)) {
3073 free(id);
3191 char *id;
3196 id = queue_remove(id_queue))) {
3197 free(id);
3262 id = (char *)queue_remove(id_queue);
3263 if (!id) {
3264 yyerror("bad conditional; expected boolean id");
3265 free(id);
3269 if (!is_id_in_scope(SYM_BOOLS, id)) {
3270 yyerror2("boolean %s is not within scope", id);
3271 free(id);
3278 (hashtab_key_t) id);
3281 id);
3283 free(id);
3287 free(id);
3296 static int set_user_roles(role_set_t * set, char *id)
3302 if (strcmp(id, "*") == 0) {
3303 free(id);
3308 if (strcmp(id, "~") == 0) {
3309 free(id);
3314 if (!is_id_in_scope(SYM_ROLES, id)) {
3315 yyerror2("role %s is not within scope", id);
3316 free(id);
3319 r = hashtab_search(policydbp->p_roles.table, id);
3321 yyerror2("unknown role %s", id);
3322 free(id);
3332 free(id);
3339 static int parse_categories(char *id, level_datum_t * levdatum, ebitmap_t * cats)
3344 if (id_has_dot(id)) {
3345 char *id_start = id;
3346 char *id_end = strchr(id, '.');
3372 (hashtab_key_t) id);
3374 yyerror2("unknown category %s", id);
3399 static int parse_semantic_categories(char *id, level_datum_t * levdatum,
3406 if (id_has_dot(id)) {
3407 char *id_start = id;
3408 char *id_end = strchr(id, '.');
3430 (hashtab_key_t) id);
3432 yyerror2("unknown category %s", id);
3456 char *id;
3462 while ((id = queue_remove(id_queue)))
3463 free(id);
3465 while ((id = queue_remove(id_queue)))
3466 free(id);
3467 id = queue_remove(id_queue);
3468 free(id);
3470 while ((id = queue_remove(id_queue))) {
3471 free(id);
3473 id = queue_remove(id_queue);
3474 if (!id)
3476 free(id);
3486 while ((id = queue_remove(id_queue))) {
3487 if (set_user_roles(&usrdatum->roles, id))
3492 id = queue_remove(id_queue);
3493 if (!id) {
3500 (hashtab_key_t) id);
3503 " level definition", id);
3504 free(id);
3507 free(id);
3511 while ((id = queue_remove(id_queue))) {
3512 if (parse_semantic_categories(id, levdatum,
3514 free(id);
3517 free(id);
3520 id = queue_remove(id_queue);
3525 (hashtab_key_t) id);
3528 " range definition", id);
3529 free(id);
3532 free(id);
3536 while ((id = queue_remove(id_queue))) {
3537 if (parse_semantic_categories(id, levdatum,
3539 free(id);
3542 free(id);
3545 id = queue_remove(id_queue);
3546 if (!id)
3563 char *id;
3571 id = queue_remove(id_queue);
3572 free(id); /* user */
3573 id = queue_remove(id_queue);
3574 free(id); /* role */
3575 id = queue_remove(id_queue);
3576 free(id); /* type */
3578 id = queue_remove(id_queue);
3579 free(id);
3581 while ((id = queue_remove(id_queue))) {
3582 free(id);
3584 id = queue_remove(id_queue);
3585 if (!id)
3587 free(id);
3602 id = queue_remove(id_queue);
3603 if (!id) {
3607 if (!is_id_in_scope(SYM_USERS, id)) {
3608 yyerror2("user %s is not within scope", id);
3609 free(id);
3613 (hashtab_key_t) id);
3615 yyerror2("user %s is not defined", id);
3616 free(id);
3622 free(id);
3625 id = (char *)queue_remove(id_queue);
3626 if (!id) {
3630 if (!is_id_in_scope(SYM_ROLES, id)) {
3631 yyerror2("role %s is not within scope", id);
3632 free(id);
3636 (hashtab_key_t) id);
3638 yyerror2("role %s is not defined", id);
3639 free(id);
3645 free(id);
3648 id = (char *)queue_remove(id_queue);
3649 if (!id) {
3653 if (!is_id_in_scope(SYM_TYPES, id)) {
3654 yyerror2("type %s is not within scope", id);
3655 free(id);
3659 (hashtab_key_t) id);
3661 yyerror2("type %s is not defined or is an attribute", id);
3662 free(id);
3668 free(id);
3672 id = (char *)queue_head(id_queue);
3673 if (!id) {
3679 id = (char *)queue_remove(id_queue);
3683 (hashtab_key_t) id);
3685 yyerror2("Sensitivity %s is not defined", id);
3686 free(id);
3689 free(id);
3693 while ((id = queue_remove(id_queue))) {
3694 if (parse_categories(id, levdatum,
3696 free(id);
3699 free(id);
3703 id = (char *)queue_remove(id_queue);
3704 if (!id)
3733 char *id;
3737 id = (char *)queue_remove(id_queue);
3738 free(id);
3743 id = (char *)queue_remove(id_queue);
3744 if (!id) {
3750 if (!strcmp(id, c->u.name))
3755 yyerror2("SID %s is not defined", id);
3756 free(id);
3760 yyerror2("The context for SID %s is multiply defined", id);
3761 free(id);
3765 free(id);
3837 char *id;
3845 id = (char *) queue_remove(id_queue);
3846 free(id);
3891 char *id;
3899 id = (char *)queue_remove(id_queue);
3900 free(id);
3955 char *id;
3963 id = (char *)queue_remove(id_queue);
3964 free(id);
4019 char *id;
4027 id = (char *) queue_remove(id_queue);
4028 free(id);
4075 char *id;
4083 id = (char *)queue_remove(id_queue);
4084 free(id);
4096 id = (char *)queue_remove(id_queue);
4097 if (!id) {
4101 if ((strcmp(id, "tcp") == 0) || (strcmp(id, "TCP") == 0)) {
4103 } else if ((strcmp(id, "udp") == 0) || (strcmp(id, "UDP") == 0)) {
4106 yyerror2("unrecognized protocol %s", id);
4137 yyerror2("duplicate portcon entry for %s %d-%d ", id,
4143 "entry for %d-%d", id, low, high, low2, high2);
4220 char *id;
4237 id = queue_remove(id_queue);
4238 if (!id) {
4244 rc = inet_pton(AF_INET, id, &addr);
4245 free(id);
4253 id = queue_remove(id_queue);
4254 if (!id) {
4260 rc = inet_pton(AF_INET, id, &mask);
4261 free(id);
4306 char *id;
4323 id = queue_remove(id_queue);
4324 if (!id) {
4330 rc = inet_pton(AF_INET6, id, &addr);
4331 free(id);
4339 id = queue_remove(id_queue);
4340 if (!id) {
4346 rc = inet_pton(AF_INET6, id, &mask);
4347 free(id);
4582 char *id;
4594 while ((id = queue_remove(id_queue)))
4595 free(id);
4596 while ((id = queue_remove(id_queue)))
4597 free(id);
4599 while ((id = queue_remove(id_queue)))
4600 free(id);
4601 id = queue_remove(id_queue);
4602 free(id);
4604 while ((id = queue_remove(id_queue))) {
4605 free(id);
4607 id = queue_remove(id_queue);
4608 if (!id)
4610 free(id);
4622 while ((id = queue_remove(id_queue))) {
4623 if (set_types(&rule->stypes, id, &add, 0))
4627 while ((id = queue_remove(id_queue))) {
4628 if (set_types(&rule->ttypes, id, &add, 0))
4647 id = (char *)queue_remove(id_queue);
4648 if (!id) {
4653 levdatum = hashtab_search(policydbp->p_levels.table, id);
4656 "definition", id);
4657 free(id);
4660 free(id);
4664 while ((id = queue_remove(id_queue))) {
4665 if (parse_semantic_categories(id, levdatum,
4667 free(id);
4670 free(id);
4673 id = (char *)queue_remove(id_queue);
4674 if (!id)