From d1e7ccccd9153d8cab1701a6396921ff7e57dd03 Mon Sep 17 00:00:00 2001 From: Timo Aaltonen Date: Thu, 13 Mar 2008 13:02:32 -0400 Subject: [PATCH] Turn down gssd's syslog verbosity Modified-by: Kevin Coffman Signed-off-by: Steve Dickson --- utils/gssd/gss_util.c | 5 ++++- utils/gssd/gssd_proc.c | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/utils/gssd/gss_util.c b/utils/gssd/gss_util.c index d316b4d..8a7bcaa 100644 --- a/utils/gssd/gss_util.c +++ b/utils/gssd/gss_util.c @@ -145,6 +145,7 @@ display_status_2(char *m, u_int32_t major, u_int32_t minor, const gss_OID mech) char maj_buf[30], min_buf[30]; char *maj, *min; u_int32_t msg_ctx = 0; + int msg_verbosity = 0; /* Get major status message */ maj_stat1 = gss_display_status(&min_stat1, major, @@ -168,7 +169,9 @@ display_status_2(char *m, u_int32_t major, u_int32_t minor, const gss_OID mech) min = min_gss_buf.value; } - printerr(0, "ERROR: GSS-API: error in %s(): %s - %s\n", + if (major == GSS_S_CREDENTIALS_EXPIRED) + msg_verbosity = 1; + printerr(msg_verbosity, "ERROR: GSS-API: error in %s(): %s - %s\n", m, maj, min); if (maj_gss_buf.length != 0) diff --git a/utils/gssd/gssd_proc.c b/utils/gssd/gssd_proc.c index 48880b6..6860cc8 100644 --- a/utils/gssd/gssd_proc.c +++ b/utils/gssd/gssd_proc.c @@ -464,7 +464,7 @@ do_error_downcall(int k5_fd, uid_t uid, int err) if (write(k5_fd, buf, p - buf) < p - buf) goto out_err; return 0; out_err: - printerr(0, "Failed to write error downcall!\n"); + printerr(1, "Failed to write error downcall!\n"); return -1; } -- 2.39.5