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:
Christian Göttsche 2024-03-30 14:35:02 +01:00 committed by James Carter
parent 9f2f9e2847
commit a39e474fc6
1 changed files with 1 additions and 1 deletions

View File

@ -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);
if (!bounds || bounds->flavor == TYPE_ATTRIB) {
yyerror2("hoge unknown type %s", bounds_id);
yyerror2("type %s is not declared", bounds_id);
return -1;
}