From: "J. Bruce Fields" <bfields@fieldses.org>
To: Chuck Lever <chuck.lever@oracle.com>
Cc: linux-nfs@vger.kernel.org
Subject: Re: NFS: Treat NFS4ERR_CLID_INUSE as a fatal error
Date: Thu, 9 Aug 2012 15:37:43 -0400 [thread overview]
Message-ID: <20120809193743.GD10591@fieldses.org> (raw)
In-Reply-To: <53272628-CC34-4279-AA69-CD31B86672D5@oracle.com>
On Thu, Aug 09, 2012 at 03:06:00PM -0400, Chuck Lever wrote:
>
> On Aug 9, 2012, at 2:35 PM, J. Bruce Fields wrote:
>
> > Sorry not to notice this before--the below causes a regression against
> > the Linux server; something like:
> >
> > # mount -osec=krb5i pip1:/exports /mnt/
> > # echo "test" >/mnt/test
> > # umount /mnt/
> > # mount -osec=krb5 pip1:/exports /mnt/
> > # echo "test" >/mnt/test
> > bash: /mnt/test: Operation not permitted
> >
> > This fails after the below commit on the client, but not before, thanks
> > to the server rejecting the second setclientid with CLID_INUSE due to a
> > different security flavor.
>
> This was part of a series where the last few patches got dropped for other problems. Testing with this patch by itself was never done since it was part of a series of patches that implement a particular feature.
>
> One thought is to put the authentication flavor name back into nfs_client_id4.id string temporarily until we have worked through the issues with full UCS support. That would prevent the regression, but we'd still have clients who use multiple authentication flavors maintaining multiple leases.
That should work.
> > I haven't really thought through who's at fault here. The second
> > setclientid does lack some level of security that the former had, so I
> > think the server's within its rights to complain.
>
> I don't think the second _lacks_ a level of security: I think the second is using a _different_ security flavor with the same nfs_client_id4.id string. NFS4ERR_CLID_INUSE is the correct server response in this case.
OK.
--b.
next prev parent reply other threads:[~2012-08-09 19:37 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-09 18:35 NFS: Treat NFS4ERR_CLID_INUSE as a fatal error J. Bruce Fields
2012-08-09 19:06 ` Chuck Lever
2012-08-09 19:37 ` J. Bruce Fields [this message]
2012-08-09 20:38 ` J. Bruce Fields
2012-08-09 20:46 ` Chuck Lever
2012-08-09 20:52 ` Chuck Lever
2012-08-09 21:13 ` J. Bruce Fields
2012-08-09 21:29 ` Chuck Lever
2012-08-09 21:38 ` J. Bruce Fields
2012-08-10 19:38 ` Chuck Lever
2012-08-10 20:13 ` J. Bruce Fields
2012-08-10 20:33 ` Chuck Lever
2012-08-10 20:39 ` J. Bruce Fields
2012-08-10 20:53 ` J. Bruce Fields
2012-08-10 21:22 ` Chuck Lever
2012-08-21 18:24 ` J. Bruce Fields
2012-08-21 18:57 ` Chuck Lever
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=20120809193743.GD10591@fieldses.org \
--to=bfields@fieldses.org \
--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.