Index: libsepol/src/expand.c =================================================================== --- libsepol/src/expand.c (revision 2950) +++ libsepol/src/expand.c (working copy) @@ -90,6 +90,8 @@ } if (!is_id_enabled(id, state->base, SYM_TYPES)) { /* identifier's scope is not enabled */ + INFO(state->handle, "type %s is skipped (s.value=%u primary=%u)", + (char *)key, type->s.value, type->primary); return 0; } @@ -516,6 +518,14 @@ new_alias->flags = alias->flags; + if (!new_alias->s.value) { + INFO(state->handle, "strange alias type : " + "%s (a.value=%u, primary=%u, flavor=%u)" + " => (a.value=%u, primary=%u, flavor=%u)", + (char *) key, alias->s.value, alias->primary, alias->flavor, + new_alias->s.value, new_alias->primary, new_alias->flavor); + } + ret = hashtab_insert(state->out->p_types.table, (hashtab_key_t) new_id, (hashtab_datum_t) new_alias); Index: libsepol/src/write.c =================================================================== --- libsepol/src/write.c (revision 2950) +++ libsepol/src/write.c (working copy) @@ -952,6 +952,12 @@ typdatum = (type_datum_t *) datum; + if (!typdatum->s.value) { + printf("%s: strange type %s (s.value=%u, primary=%u, flavor=%u)\n", + __FUNCTION__, (char *)key, typdatum->s.value, + typdatum->primary, typdatum->flavor); + } + len = strlen(key); items = 0; buf[items++] = cpu_to_le32(len);