From: Peter Staubach <staubach@redhat.com>
To: bc Wong <bcwalrus@gmail.com>
Cc: Chuck Lever <chuck.lever@oracle.com>,
trond.myklebust@fys.uio.no, linux-nfs@vger.kernel.org
Subject: Re: [PATCH] nfs-utils: Handle authentication flavour order properly
Date: Fri, 07 Mar 2008 13:27:01 -0500 [thread overview]
Message-ID: <47D188F5.9060005@redhat.com> (raw)
In-Reply-To: <f88853200803071011j3a70b0abka9142396d3275b10-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
bc Wong wrote:
> On Fri, Mar 7, 2008 at 8:16 AM, Chuck Lever <chuck.lever@oracle.com> wrote:
>
>> Hi BC-
>>
>>
>> On Mar 6, 2008, at 10:08 PM, bc Wong wrote:
>> > There were 2 things wrong with auth flavour ordering:
>> > - Mountd used to advertise AUTH_NULL as the first flavour on
>> > the list, which means that it prefers AUTH_NULL to anything
>> > else (as per RFC 2623 section 2.7).
>> > - Mount.nfs used to scan the returned list in reverse order,
>> > and stopping at the first AUTH_NULL or AUTH_SYS encountered.
>> > If a server advertises (AUTH_SYS, AUTH_NULL), it will by
>> > default choose AUTH_NULL and have degraded access.
>>
>> This patch addresses problems only in the legacy part of the user
>> space mount.nfs command. Since 2.6.24 NFS mount option parsing is
>> handled in the kernel instead.
>>
>> I don't think the new in-kernel mount client even supports receiving
>> a list of auth flavors from the server. Do you have an equivalent
>> patch for that? If you'd like help we can discuss it off-line.
>>
>
> Hi Chuck,
>
> Sorry I was totally unaware of the the migration of option parsing
> into the kernel. At first glance, it seems that the client will just
> insist on using whatever is specified in `sec=', even thought the
> server does not advertise it. The server would probably return an
> NFS RPC error, instead of a MOUNT error. I can look into fixing
> the kernel client as well.
>
> I'd still like the submitted patch to be considered. It's quite bad
> that mount.nfs would encounter (AUTH_SYS, AUTH_NULL) and
> pick the latter.
I don't think that the client can generate AUTH_NONE, can it? I thought
that the client generated AUTH_SYS even if the server specified AUTH_NONE?
If you make changes in this area, please ensure that the server exporting
AUTH_NONE still works.
Thanx...
ps
next prev parent reply other threads:[~2008-03-07 18:28 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-07 3:08 [PATCH] nfs-utils: Handle authentication flavour order properly bc Wong
[not found] ` <f88853200803061908y497164bdpdff7b9109567d8c0-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-03-07 16:16 ` Chuck Lever
2008-03-07 18:11 ` bc Wong
[not found] ` <f88853200803071011j3a70b0abka9142396d3275b10-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-03-07 18:27 ` Peter Staubach [this message]
2008-03-07 18:29 ` Peter Staubach
2008-03-07 18:59 ` bc Wong
[not found] ` <f88853200803071059yf523114wcabb12fdeee7b8d6-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-03-07 19:10 ` Peter Staubach
2008-03-07 19:38 ` bc Wong
[not found] ` <f88853200803071138n58d16ca6t4f4410d587141141-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-03-07 20:28 ` Peter Staubach
2008-03-11 19:28 ` bc Wong
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=47D188F5.9060005@redhat.com \
--to=staubach@redhat.com \
--cc=bcwalrus@gmail.com \
--cc=chuck.lever@oracle.com \
--cc=linux-nfs@vger.kernel.org \
--cc=trond.myklebust@fys.uio.no \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox