diff options
author | Kevin Coffman <kwc@citi.umich.edu> | 2009-01-05 14:07:05 -0500 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2009-01-05 14:07:05 -0500 |
commit | 09c7ad1cd9c5ca2fc46631a0057d47309abc8706 (patch) | |
tree | 905ba6be74ed2305c930aa08d216b3f85a025060 /utils/gssd/gssd_proc.c | |
parent | 6e3f696e788a56f30b5b3f8250647fe4cd63c884 (diff) | |
download | nfs-utils-09c7ad1cd9c5ca2fc46631a0057d47309abc8706.tar.gz nfs-utils-09c7ad1cd9c5ca2fc46631a0057d47309abc8706.tar.xz nfs-utils-09c7ad1cd9c5ca2fc46631a0057d47309abc8706.zip |
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 <apollock@google.com>.
Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
Signed-off-by: Steve Dickson <steved@redhat.com>
CC: Andrew Pollock <apollock@google.com>
Diffstat (limited to 'utils/gssd/gssd_proc.c')
-rw-r--r-- | utils/gssd/gssd_proc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/utils/gssd/gssd_proc.c b/utils/gssd/gssd_proc.c index cb14d45..91fc8d2 100644 --- a/utils/gssd/gssd_proc.c +++ b/utils/gssd/gssd_proc.c @@ -448,7 +448,7 @@ do_downcall(int k5_fd, uid_t uid, struct authgss_private_data *pd, return 0; out_err: if (buf) free(buf); - printerr(0, "Failed to write downcall!\n"); + printerr(1, "Failed to write downcall!\n"); return -1; } @@ -741,14 +741,14 @@ handle_krb5_upcall(struct clnt_info *clp) } gssd_free_krb5_machine_cred_list(credlist); if (!success) { - printerr(0, "WARNING: Failed to create krb5 context " + printerr(1, "WARNING: Failed to create krb5 context " "for user with uid %d with any " "credentials cache for server %s\n", uid, clp->servername); goto out_return_error; } } else { - printerr(0, "WARNING: Failed to create krb5 context " + printerr(1, "WARNING: Failed to create krb5 context " "for user with uid %d for server %s\n", uid, clp->servername); goto out_return_error; @@ -756,7 +756,7 @@ handle_krb5_upcall(struct clnt_info *clp) } if (!authgss_get_private_data(auth, &pd)) { - printerr(0, "WARNING: Failed to obtain authentication " + printerr(1, "WARNING: Failed to obtain authentication " "data for user with uid %d for server %s\n", uid, clp->servername); goto out_return_error; |