From 09c7ad1cd9c5ca2fc46631a0057d47309abc8706 Mon Sep 17 00:00:00 2001 From: Kevin Coffman Date: Mon, 5 Jan 2009 14:07:05 -0500 Subject: gssd: By default, don't spam syslog when users' credentials expire Change the priority of "common" log messages so that syslog doesn't get slammed/spammed when users' credentials expire, or there is another common problem which would cause error messages for all context creation requests. Note that this will now require that gssd or svcgssd option "-v" is used to debug these common cases. Original patch from Andrew Pollock . Signed-off-by: Kevin Coffman Signed-off-by: Steve Dickson CC: Andrew Pollock --- utils/gssd/svcgssd_proc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'utils/gssd/svcgssd_proc.c') diff --git a/utils/gssd/svcgssd_proc.c b/utils/gssd/svcgssd_proc.c index f162152..1d13532 100644 --- a/utils/gssd/svcgssd_proc.c +++ b/utils/gssd/svcgssd_proc.c @@ -108,7 +108,7 @@ do_svc_downcall(gss_buffer_desc *out_handle, struct svc_cred *cred, fclose(f); return err; out_err: - printerr(0, "WARNING: downcall failed\n"); + printerr(1, "WARNING: downcall failed\n"); return -1; } @@ -247,7 +247,7 @@ get_ids(gss_name_t client_name, gss_OID mech, struct svc_cred *cred) res = 0; goto out_free; } - printerr(0, "WARNING: get_ids: failed to map name '%s' " + printerr(1, "WARNING: get_ids: failed to map name '%s' " "to uid/gid: %s\n", sname, strerror(-res)); goto out_free; } @@ -380,7 +380,7 @@ handle_nullreq(FILE *f) { goto continue_needed; } else if (maj_stat != GSS_S_COMPLETE) { - printerr(0, "WARNING: gss_accept_sec_context failed\n"); + printerr(1, "WARNING: gss_accept_sec_context failed\n"); pgsserr("handle_nullreq: gss_accept_sec_context", maj_stat, min_stat, mech); goto out_err; -- cgit