Using a more permanent ccache is potentially problematic when we're instantiating a new one. We might be operating under different creds than expected. Just use a MEMORY: ccache since we don't need it to last longer than the life of the upcall anyway. Signed-off-by: Jeff Layton <jlayton@xxxxxxxxx> --- cifs.upcall.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cifs.upcall.c b/cifs.upcall.c index e0d372408233..89563fd42adc 100644 --- a/cifs.upcall.c +++ b/cifs.upcall.c @@ -410,9 +410,9 @@ init_cc_from_keytab(const char *keytab_name, const char *user) goto icfk_cleanup; } - ret = krb5_cc_default(context, &cc); + ret = krb5_cc_resolve(context, "MEMORY:", &cc); if (ret) { - syslog(LOG_DEBUG, "krb5_cc_default: %d", (int)ret); + syslog(LOG_DEBUG, "krb5_cc_resolve: %d", (int)ret); goto icfk_cleanup; } -- 2.9.3 -- To unsubscribe from this list: send the line "unsubscribe linux-cifs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html