checkpolicy: update error diagnostic
I am not sure what "hoge" supposed to mean; use a message similar to other diagnostics. Signed-off-by: Christian Göttsche <cgzones@googlemail.com> Acked-by: James Carter <jwcart2@gmail.com>
This commit is contained in:
parent
9f2f9e2847
commit
a39e474fc6
|
@ -1426,7 +1426,7 @@ static int define_typebounds_helper(const char *bounds_id, const char *type_id)
|
||||||
|
|
||||||
bounds = hashtab_search(policydbp->p_types.table, bounds_id);
|
bounds = hashtab_search(policydbp->p_types.table, bounds_id);
|
||||||
if (!bounds || bounds->flavor == TYPE_ATTRIB) {
|
if (!bounds || bounds->flavor == TYPE_ATTRIB) {
|
||||||
yyerror2("hoge unknown type %s", bounds_id);
|
yyerror2("type %s is not declared", bounds_id);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue