summaryrefslogtreecommitdiff
path: root/contrib/sepgsql/selinux.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/sepgsql/selinux.c')
-rw-r--r--contrib/sepgsql/selinux.c6
1 files changed, 3 insertions, 3 deletions
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)));
/*