From c7689ee73346d198177dee538501bb1148c8cebb Mon Sep 17 00:00:00 2001 From: Robert Haas Date: Wed, 2 Feb 2011 23:39:43 -0500 Subject: Various sepgsql corrections. KaiGai Kohei --- contrib/sepgsql/selinux.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'contrib/sepgsql/selinux.c') diff --git a/contrib/sepgsql/selinux.c b/contrib/sepgsql/selinux.c index a67bd567112..03ba25cef08 100644 --- a/contrib/sepgsql/selinux.c +++ b/contrib/sepgsql/selinux.c @@ -396,7 +396,7 @@ sepgsql_audit_log(bool denied, appendStringInfo(&buf, " scontext=%s tcontext=%s tclass=%s", scontext, tcontext, class_name); if (audit_name) - appendStringInfo(&buf, " name=%s", audit_name); + appendStringInfo(&buf, " name=\"%s\"", audit_name); ereport(LOG, (errmsg("SELinux: %s", buf.data))); } @@ -459,7 +459,7 @@ sepgsql_compute_avd(const char *scontext, ereport(ERROR, (errcode(ERRCODE_INTERNAL_ERROR), errmsg("SELinux could not compute av_decision: " - "scontext=%s tcontext=%s tclass=%s", + "scontext=%s tcontext=%s tclass=%s: %m", scontext, tcontext, tclass_name))); /* @@ -545,7 +545,7 @@ sepgsql_compute_create(const char *scontext, ereport(ERROR, (errcode(ERRCODE_INTERNAL_ERROR), errmsg("SELinux could not compute a new context: " - "scontext=%s tcontext=%s tclass=%s", + "scontext=%s tcontext=%s tclass=%s: %m", scontext, tcontext, tclass_name))); /* -- cgit v1.2.3