Petr Lautrbach <plautrba@xxxxxxxxxx> writes: > Christian Göttsche <cgzones@xxxxxxxxxxxxxx> writes: > >> When a permission for a constraint statement cannot be found also >> mention the related class name. >> >> Signed-off-by: Christian Göttsche <cgzones@xxxxxxxxxxxxxx> > > Acked-by: Petr Lautrbach <plautrba@xxxxxxxxxx> > Merged, thanks! > >> --- >> checkpolicy/policy_define.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/checkpolicy/policy_define.c b/checkpolicy/policy_define.c >> index 16b78346..a4c24115 100644 >> --- a/checkpolicy/policy_define.c >> +++ b/checkpolicy/policy_define.c >> @@ -3627,7 +3627,7 @@ int define_constraint(constraint_expr_t * expr) >> } >> if (!perdatum) { >> yyerror2("permission %s is not" >> - " defined", id); >> + " defined for class %s", id, policydbp->p_class_val_to_name[i]); >> free(id); >> ebitmap_destroy(&classmap); >> return -1; >> -- >> 2.36.0