audit2allow: make error message more helpful
PATCH 1/1 audit2allow: make error message more helpful
Signed-off-by Kalevi Kolttonen <[email protected]>
--- python/audit2allow/sepolgen-ifgen-attr-helper.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
python/audit2allow/sepolgen-ifgen-attr-helper.c +2 -1
@@ -212,7 +212,8 @@ static policydb_t *load_policy(const char *filename) ret =policydb_read (policydb, &pf,1 );if (ret) {fprintf (stderr, -"error(s) encountered while parsing configuration\n" ); +"error(s) encountered while parsing configuration %s\n" , + filename);free (policydb);fclose (fp);return NULL ;
Signature · 1 line
2.54.0
Quoted 2 lines · Kalevi Kolttonen
Signed-off-by Kalevi Kolttonen <[email protected]>
Acked-by Stephen Smalley <[email protected]>
Quoted 22 lines
--- python/audit2allow/sepolgen-ifgen-attr-helper.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)python/audit2allow/sepolgen-ifgen-attr-helper.c +2
-2@@ -212,7 +212,8 @@ static policydb_t *load_policy(const char *filename) ret =policydb_read (policydb, &pf,1 );if (ret) {fprintf (stderr, -"error(s) encountered while parsing configuration\n" ); +"error(s) encountered while parsing configuration %s\n" , + filename);free (policydb);fclose (fp);return NULL ; --2.54.0