summaryrefslogtreecommitdiff
path: root/contrib/sepgsql/hooks.c
diff options
context:
space:
mode:
authorRobert Haas2011-02-03 04:39:43 +0000
committerRobert Haas2011-02-03 04:39:43 +0000
commitc7689ee73346d198177dee538501bb1148c8cebb (patch)
tree2c3a7ad0231a9f2156b6da8c41a2163ba70c56b8 /contrib/sepgsql/hooks.c
parent426227850be145b52cb610455000fc005df5ce4e (diff)
Various sepgsql corrections.
KaiGai Kohei
Diffstat (limited to 'contrib/sepgsql/hooks.c')
-rw-r--r--contrib/sepgsql/hooks.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/sepgsql/hooks.c b/contrib/sepgsql/hooks.c
index bc7ce51cf15..83a505ec18d 100644
--- a/contrib/sepgsql/hooks.c
+++ b/contrib/sepgsql/hooks.c
@@ -91,7 +91,7 @@ sepgsql_client_auth(Port *port, int status)
if (getpeercon_raw(port->sock, &context) < 0)
ereport(FATAL,
(errcode(ERRCODE_INTERNAL_ERROR),
- errmsg("SELinux: unable to get peer label")));
+ errmsg("SELinux: unable to get peer label: %m")));
sepgsql_set_client_label(context);
@@ -414,7 +414,7 @@ _PG_init(void)
if (getcon_raw(&context) < 0)
ereport(ERROR,
(errcode(ERRCODE_INTERNAL_ERROR),
- errmsg("SELinux: failed to get server security label")));
+ errmsg("SELinux: failed to get server security label: %m")));
sepgsql_set_client_label(context);
/* Security label provider hook */