All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jiri Horky <jiri.horky@gmail.com>
To: "linux-nfs@vger.kernel.org" <linux-nfs@vger.kernel.org>
Cc: chuck.lever@oracle.com
Subject: Kerberos security flavors not tried in SETCLIENTID_CONFIRM client requests
Date: Thu, 25 Apr 2013 14:38:42 +0200	[thread overview]
Message-ID: <517923D2.2000002@gmail.com> (raw)

Hello all,

(everything described below is from a client with 3.6.11-gentoo kernel).

When I mount a filesystem that is exported as follows:

/exports 
*(sec=krb5:krb5i:krb5p,rw,fsid=0,sync,no_subtree_check,no_root_squash,insecure,crossmnt)

without specifiying a security flavour on client, the mount will work. 
 From the tcpdump I can tell that the client tries AUTH_UNIX and 
AUTH_NULL flavours before succeeding with RPCSES_GSS. When I do a "ls" 
command in the mounted directory it works fine as well - this time 
clients uses RPCSES_GSS authentication right away.

The problems comes with "cat" command on a file, when the client calls 
SETCLIENID with AUTH_UNIX credentials and AUTH_NULL verifier, which 
successes but then call SETCLIENTID_CONFIRM again with just 
AUTH_UNIX/AUTH_NULL which results in NFS4ERR_WRONGSEC. The client tries 
to all the SETCLIENTID_CONFIRM multiple times, but it does not try 
Kerberos authentication. The WRONGSEC error is then propagated as EIO to 
the application.

I noticed patches from Chuck Level on 03/16/2013 which fix problems with 
security flavours handling but I am not sure whether they are supposed 
to fix thix particular problem as well. It would take me considerable 
amount of time to test it so I would appreciate if you could comment on 
that.

Regards
Jiri Horky



             reply	other threads:[~2013-04-25 12:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-25 12:38 Jiri Horky [this message]
2013-04-25 12:59 ` Kerberos security flavors not tried in SETCLIENTID_CONFIRM client requests Myklebust, Trond

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=517923D2.2000002@gmail.com \
    --to=jiri.horky@gmail.com \
    --cc=chuck.lever@oracle.com \
    --cc=linux-nfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.