From faeccd0360044fc03b5ef15fcfd6cf0b87c33914 Mon Sep 17 00:00:00 2001 From: Chris PeBenito Date: Thu, 4 Feb 2016 09:44:39 -0500 Subject: [PATCH] libqpol: stop processing types when building type attribute map Fix originally from Richard Haines. --- libqpol/policy_extend.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libqpol/policy_extend.c b/libqpol/policy_extend.c index 519c844..bccb647 100644 --- a/libqpol/policy_extend.c +++ b/libqpol/policy_extend.c @@ -213,6 +213,10 @@ static int qpol_policy_build_attrs_from_map(qpol_policy_t * policy) if (count == 0) { continue; } + + if (db->type_val_to_struct[i]->flavor == TYPE_TYPE) + continue; + /* first create a new type_datum_t for the attribute, * with the attribute's type_list consisting of types * with this attribute */