Re: [PATCH_V5 09/11] NFS RPC_AUTH_GSS unsupported on v4.1 back channel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Dec 20, 2010 at 04:04:46PM -0500, andros@xxxxxxxxxx wrote:
> From: Andy Adamson <andros@xxxxxxxxxx>
> 
> Signed-off-by: Andy Adamson <andros@xxxxxxxxxx>
> ---
>  fs/nfs/callback.c |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)
> 
> diff --git a/fs/nfs/callback.c b/fs/nfs/callback.c
> index 541be39..4a9c517 100644
> --- a/fs/nfs/callback.c
> +++ b/fs/nfs/callback.c
> @@ -368,6 +368,9 @@ static int check_gss_callback_principal(struct nfs_client *clp,
>  	struct rpc_clnt *r = clp->cl_rpcclient;
>  	char *p = svc_gss_principal(rqstp);
>  
> +	/* No RPC_AUTH_GSS on NFSv4.1 back channel yet */
> +	if (clp->cl_minorversion != 0)
> +		return SVC_DENIED;

May as well just drop in this case, actually, right?  You didn't ask for
gss in the create_session, so this would be an outright server bug.

--b.

>  	/*
>  	 * It might just be a normal user principal, in which case
>  	 * userspace won't bother to tell us the name at all.
> -- 
> 1.6.6
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux