diff options
author | Robert Haas | 2011-02-03 04:39:43 +0000 |
---|---|---|
committer | Robert Haas | 2011-02-03 04:39:43 +0000 |
commit | c7689ee73346d198177dee538501bb1148c8cebb (patch) | |
tree | 2c3a7ad0231a9f2156b6da8c41a2163ba70c56b8 /contrib/sepgsql/selinux.c | |
parent | 426227850be145b52cb610455000fc005df5ce4e (diff) |
Various sepgsql corrections.
KaiGai Kohei
Diffstat (limited to 'contrib/sepgsql/selinux.c')
-rw-r--r-- | contrib/sepgsql/selinux.c | 6 |
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))); /* |