2013-10-29 16:27:51

by Weston Andros Adamson

[permalink] [raw]
Subject: [PATCH] nfs.man: add description of multiple sec= options

The client now supports multiple sec= options as a colon delimited list.

Signed-off-by: Weston Andros Adamson <[email protected]>
---
utils/mount/nfs.man | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/utils/mount/nfs.man b/utils/mount/nfs.man
index 2a42b93..17b8d88 100644
--- a/utils/mount/nfs.man
+++ b/utils/mount/nfs.man
@@ -380,9 +380,10 @@ If a value of zero is specified, the
.BR mount (8)
command exits immediately after the first failure.
.TP 1.5i
-.BI sec= flavor
-The security flavor to use for accessing files on this mount point.
-If the server does not support this flavor, the mount operation fails.
+.BI sec= flavors
+A colon-delimited list of security flavors to use for accessing files on
+this mount point. If the server does not support any of these flavors,
+the mount operation fails.
If
.B sec=
is not specified, the client attempts to find
--
1.8.3.1 (Apple Git-46)



2013-10-29 16:40:54

by Weston Andros Adamson

[permalink] [raw]
Subject: Re: [PATCH] nfs.man: add description of multiple sec= options


On Oct 29, 2013, at 12:30 PM, Chuck Lever <[email protected]> wrote:

>
> On Oct 29, 2013, at 12:27 PM, Weston Andros Adamson <[email protected]> wrote:
>
>> The client now supports multiple sec= options as a colon delimited list.
>>
>> Signed-off-by: Weston Andros Adamson <[email protected]>
>> ---
>> utils/mount/nfs.man | 7 ++++---
>> 1 file changed, 4 insertions(+), 3 deletions(-)
>>
>> diff --git a/utils/mount/nfs.man b/utils/mount/nfs.man
>> index 2a42b93..17b8d88 100644
>> --- a/utils/mount/nfs.man
>> +++ b/utils/mount/nfs.man
>> @@ -380,9 +380,10 @@ If a value of zero is specified, the
>> .BR mount (8)
>> command exits immediately after the first failure.
>> .TP 1.5i
>> -.BI sec= flavor
>> -The security flavor to use for accessing files on this mount point.
>> -If the server does not support this flavor, the mount operation fails.
>> +.BI sec= flavors
>> +A colon-delimited list of security flavors to use for accessing files on
>> +this mount point. If the server does not support any of these flavors,
>> +the mount operation fails.
>
> Just a nit: The new text kind of suggests that the colons are required. "sec=single flavor" is also still supported. Typically man page language is careful to show both.

Good point.

Should there be separate sections or should we do something like:

sec=flavor(s)

The security flavor or flavors to use for accessing files on this
mount point. Multiple security flavors may be specified as a
colon-delimited list. If the server does not support any of these flavors
the mount operation fails.

...

-dros

>
>
>> If
>> .B sec=
>> is not specified, the client attempts to find
>> --
>> 1.8.3.1 (Apple Git-46)
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
>> the body of a message to [email protected]
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
> --
> Chuck Lever
> chuck[dot]lever[at]oracle[dot]com


2013-10-29 16:40:29

by Chuck Lever

[permalink] [raw]
Subject: Re: [PATCH] nfs.man: add description of multiple sec= options


On Oct 29, 2013, at 12:36 PM, "Myklebust, Trond" <[email protected]> wrote:

>> -----Original Message-----
>> From: [email protected] [mailto:linux-nfs-
>> [email protected]] On Behalf Of Chuck Lever
>> Sent: Tuesday, October 29, 2013 12:30 PM
>> To: Weston Andros Adamson
>> Cc: [email protected]; [email protected]
>> Subject: Re: [PATCH] nfs.man: add description of multiple sec= options
>>
>>
>> On Oct 29, 2013, at 12:27 PM, Weston Andros Adamson <[email protected]>
>> wrote:
>>
>>> The client now supports multiple sec= options as a colon delimited list.
>>>
>>> Signed-off-by: Weston Andros Adamson <[email protected]>
>>> ---
>>> utils/mount/nfs.man | 7 ++++---
>>> 1 file changed, 4 insertions(+), 3 deletions(-)
>>>
>>> diff --git a/utils/mount/nfs.man b/utils/mount/nfs.man index
>>> 2a42b93..17b8d88 100644
>>> --- a/utils/mount/nfs.man
>>> +++ b/utils/mount/nfs.man
>>> @@ -380,9 +380,10 @@ If a value of zero is specified, the .BR mount
>>> (8) command exits immediately after the first failure.
>>> .TP 1.5i
>>> -.BI sec= flavor
>>> -The security flavor to use for accessing files on this mount point.
>>> -If the server does not support this flavor, the mount operation fails.
>>> +.BI sec= flavors
>>> +A colon-delimited list of security flavors to use for accessing files
>>> +on this mount point. If the server does not support any of these
>>> +flavors, the mount operation fails.
>>
>> Just a nit: The new text kind of suggests that the colons are required.
>> "sec=single flavor" is also still supported. Typically man page language is
>> careful to show both.
>
> How about "colon-separated list of one or more security flavours"? That's less ambiguous than "colon-delimited"...

Maybe Dros could also update the EXAMPLES section with one of each. Just a thought.

--
Chuck Lever
chuck[dot]lever[at]oracle[dot]com





2013-10-29 16:30:22

by Chuck Lever

[permalink] [raw]
Subject: Re: [PATCH] nfs.man: add description of multiple sec= options


On Oct 29, 2013, at 12:27 PM, Weston Andros Adamson <[email protected]> wrote:

> The client now supports multiple sec= options as a colon delimited list.
>
> Signed-off-by: Weston Andros Adamson <[email protected]>
> ---
> utils/mount/nfs.man | 7 ++++---
> 1 file changed, 4 insertions(+), 3 deletions(-)
>
> diff --git a/utils/mount/nfs.man b/utils/mount/nfs.man
> index 2a42b93..17b8d88 100644
> --- a/utils/mount/nfs.man
> +++ b/utils/mount/nfs.man
> @@ -380,9 +380,10 @@ If a value of zero is specified, the
> .BR mount (8)
> command exits immediately after the first failure.
> .TP 1.5i
> -.BI sec= flavor
> -The security flavor to use for accessing files on this mount point.
> -If the server does not support this flavor, the mount operation fails.
> +.BI sec= flavors
> +A colon-delimited list of security flavors to use for accessing files on
> +this mount point. If the server does not support any of these flavors,
> +the mount operation fails.

Just a nit: The new text kind of suggests that the colons are required. "sec=single flavor" is also still supported. Typically man page language is careful to show both.


> If
> .B sec=
> is not specified, the client attempts to find
> --
> 1.8.3.1 (Apple Git-46)
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html

--
Chuck Lever
chuck[dot]lever[at]oracle[dot]com





2013-10-29 17:01:05

by Chuck Lever

[permalink] [raw]
Subject: Re: [PATCH] nfs.man: add description of multiple sec= options


On Oct 29, 2013, at 12:40 PM, Weston Andros Adamson <[email protected]> wrote:

>
> On Oct 29, 2013, at 12:30 PM, Chuck Lever <[email protected]> wrote:
>
>>
>> On Oct 29, 2013, at 12:27 PM, Weston Andros Adamson <[email protected]> wrote:
>>
>>> The client now supports multiple sec= options as a colon delimited list.
>>>
>>> Signed-off-by: Weston Andros Adamson <[email protected]>
>>> ---
>>> utils/mount/nfs.man | 7 ++++---
>>> 1 file changed, 4 insertions(+), 3 deletions(-)
>>>
>>> diff --git a/utils/mount/nfs.man b/utils/mount/nfs.man
>>> index 2a42b93..17b8d88 100644
>>> --- a/utils/mount/nfs.man
>>> +++ b/utils/mount/nfs.man
>>> @@ -380,9 +380,10 @@ If a value of zero is specified, the
>>> .BR mount (8)
>>> command exits immediately after the first failure.
>>> .TP 1.5i
>>> -.BI sec= flavor
>>> -The security flavor to use for accessing files on this mount point.
>>> -If the server does not support this flavor, the mount operation fails.
>>> +.BI sec= flavors
>>> +A colon-delimited list of security flavors to use for accessing files on
>>> +this mount point. If the server does not support any of these flavors,
>>> +the mount operation fails.
>>
>> Just a nit: The new text kind of suggests that the colons are required. "sec=single flavor" is also still supported. Typically man page language is careful to show both.
>
> Good point.
>
> Should there be separate sections or should we do something like:
>
> sec=flavor(s)
>
> The security flavor or flavors to use for accessing files on this
> mount point. Multiple security flavors may be specified as a
> colon-delimited list. If the server does not support any of these flavors
> the mount operation fails.

The current text is:

sec=flavor The security flavor to use for accessing files on this mount
point. If the server does not support this flavor, the mount
operation fails. If sec= is not specified, the client attempts
to find a security flavor that both the client and the server
supports. Valid flavors are none, sys, krb5, krb5i, and krb5p.
Refer to the SECURITY CONSIDERATIONS section for details.

You might consider:

> sec=flavorlist
>
> The security flavor or flavors to use when accessing files on this mount point. Multiple flavors are specified as a colon-delimited list. If sec= is not specified, the mount's security flavor list contains all security flavors the client supports.
>
> The client chooses the strongest flavor on this list that is supported by the export's security policy. If the server does not support any of these flavors, the mount operation fails.
>
> Valid flavors are ....


I think my description of the negotiation strategy could be made more accurate, and you should mention how (whether?) flavor list ordering works. Do you feel this is too much for a single section? Some detail can be moved to SECURITY CONSIDERATIONS.

--
Chuck Lever
chuck[dot]lever[at]oracle[dot]com





2013-10-29 16:36:43

by Myklebust, Trond

[permalink] [raw]
Subject: RE: [PATCH] nfs.man: add description of multiple sec= options

> -----Original Message-----
> From: [email protected] [mailto:linux-nfs-
> [email protected]] On Behalf Of Chuck Lever
> Sent: Tuesday, October 29, 2013 12:30 PM
> To: Weston Andros Adamson
> Cc: [email protected]; [email protected]
> Subject: Re: [PATCH] nfs.man: add description of multiple sec= options
>
>
> On Oct 29, 2013, at 12:27 PM, Weston Andros Adamson <[email protected]>
> wrote:
>
> > The client now supports multiple sec= options as a colon delimited list.
> >
> > Signed-off-by: Weston Andros Adamson <[email protected]>
> > ---
> > utils/mount/nfs.man | 7 ++++---
> > 1 file changed, 4 insertions(+), 3 deletions(-)
> >
> > diff --git a/utils/mount/nfs.man b/utils/mount/nfs.man index
> > 2a42b93..17b8d88 100644
> > --- a/utils/mount/nfs.man
> > +++ b/utils/mount/nfs.man
> > @@ -380,9 +380,10 @@ If a value of zero is specified, the .BR mount
> > (8) command exits immediately after the first failure.
> > .TP 1.5i
> > -.BI sec= flavor
> > -The security flavor to use for accessing files on this mount point.
> > -If the server does not support this flavor, the mount operation fails.
> > +.BI sec= flavors
> > +A colon-delimited list of security flavors to use for accessing files
> > +on this mount point. If the server does not support any of these
> > +flavors, the mount operation fails.
>
> Just a nit: The new text kind of suggests that the colons are required.
> "sec=single flavor" is also still supported. Typically man page language is
> careful to show both.

How about "colon-separated list of one or more security flavours"? That's less ambiguous than "colon-delimited"...

Cheers
Trond

2013-10-29 16:54:37

by Weston Andros Adamson

[permalink] [raw]
Subject: Re: [PATCH] nfs.man: add description of multiple sec= options

DQpPbiBPY3QgMjksIDIwMTMsIGF0IDEyOjM2IFBNLCBNeWtsZWJ1c3QsIFRyb25kIDxUcm9uZC5N
eWtsZWJ1c3RAbmV0YXBwLmNvbT4gd3JvdGU6DQoNCj4+IC0tLS0tT3JpZ2luYWwgTWVzc2FnZS0t
LS0tDQo+PiBGcm9tOiBsaW51eC1uZnMtb3du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