public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Let NFS3 krb5 mounts survive a krb5 ticket expiration
@ 2004-09-23  7:18 Mark Goodman
  2004-09-23 13:19 ` J. Bruce Fields
  0 siblings, 1 reply; 2+ messages in thread
From: Mark Goodman @ 2004-09-23  7:18 UTC (permalink / raw)
  To: Trond Myklebust; +Cc: linux-kernel

In my environment, this patch lets NFS3 krb5 mounts survive a krb5 
ticket expiration. It applies to 2.6.9-rc2. Please consider applying.

Signed-off-by: Mark Goodman <mgoodman@csua.berkeley.edu>

--- linux-2.6.9-rc2/net/sunrpc/auth_gss/auth_gss.c.orig    2004-09-23 
00:07:28.891626224 -0700
+++ linux-2.6.9-rc2/net/sunrpc/auth_gss/auth_gss.c    2004-09-23 
00:06:56.159602248 -0700
@@ -742,6 +742,9 @@ gss_marshal(struct rpc_task *task, u32 *
                    &verf_buf, &mic);
     if(maj_stat != 0){
         printk("gss_marshal: gss_get_mic FAILED (%d)\n", maj_stat);
+        if (maj_stat == GSS_S_CONTEXT_EXPIRED) {
+            cred->cr_flags |= RPCAUTH_CRED_DEAD;
+        }
         goto out_put_ctx;
     }
     p = xdr_encode_opaque(p, NULL, mic.len);


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Let NFS3 krb5 mounts survive a krb5 ticket expiration
  2004-09-23  7:18 [PATCH] Let NFS3 krb5 mounts survive a krb5 ticket expiration Mark Goodman
@ 2004-09-23 13:19 ` J. Bruce Fields
  0 siblings, 0 replies; 2+ messages in thread
From: J. Bruce Fields @ 2004-09-23 13:19 UTC (permalink / raw)
  To: Mark Goodman; +Cc: Trond Myklebust, linux-kernel

On Thu, Sep 23, 2004 at 12:18:39AM -0700, Mark Goodman wrote:
> In my environment, this patch lets NFS3 krb5 mounts survive a krb5 
> ticket expiration. It applies to 2.6.9-rc2. Please consider applying.

See patches 2, 3, and 4 at
http://www.citi.umich.edu/projects/nfsv4/linux/kernel-patches/2.6.9-rc2-1/
which should make it to mainline soon.

--Bruce Fields

> Signed-off-by: Mark Goodman <mgoodman@csua.berkeley.edu>
> 
> --- linux-2.6.9-rc2/net/sunrpc/auth_gss/auth_gss.c.orig    2004-09-23 
> 00:07:28.891626224 -0700
> +++ linux-2.6.9-rc2/net/sunrpc/auth_gss/auth_gss.c    2004-09-23 
> 00:06:56.159602248 -0700
> @@ -742,6 +742,9 @@ gss_marshal(struct rpc_task *task, u32 *
>                    &verf_buf, &mic);
>     if(maj_stat != 0){
>         printk("gss_marshal: gss_get_mic FAILED (%d)\n", maj_stat);
> +        if (maj_stat == GSS_S_CONTEXT_EXPIRED) {
> +            cred->cr_flags |= RPCAUTH_CRED_DEAD;
> +        }
>         goto out_put_ctx;
>     }
>     p = xdr_encode_opaque(p, NULL, mic.len);
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-09-23 13:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-23  7:18 [PATCH] Let NFS3 krb5 mounts survive a krb5 ticket expiration Mark Goodman
2004-09-23 13:19 ` J. Bruce Fields

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox