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/hooks.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'contrib/sepgsql/hooks.c') 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 */ -- cgit v1.2.3