From owner-nfsv4-wg@sunroof.eng.sun.com  Mon Feb  3 11:29:19 2003
Received: from kathmandu.sun.com (kathmandu.sun.com [192.18.98.36])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id LAA12320
	for <nfsv4-archive@lists.ietf.org>; Mon, 3 Feb 2003 11:29:18 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by kathmandu.sun.com (8.9.3+Sun/8.9.3) with ESMTP id JAA28129;
	Mon, 3 Feb 2003 09:28:16 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h13GRNVL018128;
	Mon, 3 Feb 2003 08:27:23 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h13GRBQb006639
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Mon, 3 Feb 2003 08:27:12 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h13GRBeS006637
	for nfsv4-wg-dist; Mon, 3 Feb 2003 08:27:11 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail2sun.Eng.Sun.COM (engmail2sun [129.144.134.19])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h13GR9Qb006630
	for <nfsv4-wg@sunroof.eng.sun.com>; Mon, 3 Feb 2003 08:27:10 -0800 (PST)
Received: from lukla.Sun.COM (lukla.Central.Sun.COM [129.147.5.31])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h13GRIVL018092
	for <nfsv4-wg@sunroof.eng.sun.com>; Mon, 3 Feb 2003 08:27:18 -0800 (PST)
Received: from malmo.trab.se (malmo.kicore.net [131.115.48.10])
	by lukla.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id JAA03171;
	Mon, 3 Feb 2003 09:27:10 -0700 (MST)
Received: from terra (terra.malmo.kicore.net [217.212.0.22]) by malmo.trab.se (8.10.1/TRAB-primary-2) with SMTP id h13GR7n13942; Mon, 3 Feb 2003 17:27:08 +0100 (MET)
Message-Id: <200302031627.h13GR7n13942@malmo.trab.se>
Date: Mon, 3 Feb 2003 17:29:58 +0100 (CET)
From: Dan Oscarsson <Dan.Oscarsson@kiconsulting.se>
Reply-To: Dan Oscarsson <Dan.Oscarsson@kiconsulting.se>
Subject: Re: [Dan.Oscarsson@kiconsulting.se: Comments on NFSv4 rfc3010bis-05 draft]
To: Nicolas.Williams@sun.com
Cc: nfsv4-wg@sunroof.eng.sun.com
MIME-Version: 1.0
Content-Type: TEXT/plain; charset=us-ascii
Content-MD5: HvqdzlXFkBDfRVdosOPw3A==
X-Mailer: dtmail 1.3.0 @(#)CDE Version 1.5 SunOS 5.9 sun4u sparc 
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

>happy (my security instincts say that nonetheless the server should
>enforce a normalization form, but I can't yet find a convincing security
>argument).

Well, as many programs will not check for unnormalised or different
normalisations and instead expect the code to be form C, there can be
names that the display device happen to show as the same to the user
but for the program are different, that can result in security
problems.

In all other areas I have seen working with text/UCS, they want one
normalisation and one form to avoid more than one representation
for the same thing. This because of security matters and to make things
much simpler to handle.


>> Even if I switched to UTF-8 as my local character set it will fail, if
>> the UTF-8 encoded text is not normalised form C. No other form
>> is acceptible to use due to things like invalid semantics, to
>> much data space and complex and CPU consuming handling of that format.
>
>User-level code will have to be able to cope with unnormalized Unicode
>text [by normalizing as necessary], with or w/o NFSv4.

Not at all. Most user and os kernel code need only handle UTF-8 in form C.
At least in the Unix/Linux world. That is the standard format used there.

>
>> You cannot expect systems to switch to unnormalised UTF-8 in their
>> file system to help NFSv4. It will break most applications.
>
>The C runtime environment will have to do as much normalization as is
>necessary under the hood, yes.

Not at all. The C runtime will read the file names through the kernal
system calls and expect/deliver UTF-8 form C (or legacy encoding).
Unnormalised or form D will break the applications.
There is no reason to allow unnormalised or form D text as that will
just require more memory, complexer code and more CPU power.

If we get NFSv4 code into the kernel that do not return the file names
as UCS form C (or legacy encoding), we will definitely get problems.


>Pages 572 and 573 of the same book mentioned above make it very clear to
>me that composites added after Unicode 3.0 are disalloed in text
>normalized to form C.  The book references Unicode Annex #15.
>

Yes, that is to make in unnecessary for form C to have new precomposed
characters being added later. But as each revision comes along, new
characters will be included in form C too.

Regards,

   Dan



From owner-nfsv4-wg@sunroof.eng.sun.com  Wed Feb  5 00:37:29 2003
Received: from nwkea-mail-1.sun.com (nwkea-mail-1.sun.com [192.18.42.13])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id AAA16536
	for <nfsv4-archive@lists.ietf.org>; Wed, 5 Feb 2003 00:37:28 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by nwkea-mail-1.sun.com (8.9.3+Sun/8.9.3) with ESMTP id VAA28140;
	Tue, 4 Feb 2003 21:33:35 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h155WeVL026363;
	Tue, 4 Feb 2003 21:32:40 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h155WTQb021507
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Tue, 4 Feb 2003 21:32:29 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h155WTmP021506
	for nfsv4-wg-dist; Tue, 4 Feb 2003 21:32:29 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from centralmail1brm.Central.Sun.COM (centralmail1brm.Central.Sun.COM [129.147.62.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h155WRQb021499
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 4 Feb 2003 21:32:27 -0800 (PST)
Received: from binky.central.sun.com (binky.Central.Sun.COM [129.153.128.104])
	by centralmail1brm.Central.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h155WY7L027563;
	Tue, 4 Feb 2003 22:32:34 -0700 (MST)
Received: from binky.central.sun.com (localhost [127.0.0.1])
	by binky.central.sun.com (8.12.5+Sun/8.12.3) with ESMTP id h155UqQx022623;
	Tue, 4 Feb 2003 21:30:52 -0800 (PST)
Received: (from nw141292@localhost)
	by binky.central.sun.com (8.12.5+Sun/8.12.3/Submit) id h155Up4n022622;
	Tue, 4 Feb 2003 23:30:51 -0600 (CST)
Date: Tue, 4 Feb 2003 23:30:51 -0600
From: Nicolas Williams <Nicolas.Williams@sun.com>
To: Dan Oscarsson <Dan.Oscarsson@kiconsulting.se>
Cc: nfsv4-wg@sunroof.eng.sun.com
Subject: Re: [Dan.Oscarsson@kiconsulting.se: Comments on NFSv4 rfc3010bis-05 draft]
Message-ID: <20030204233051.A18728@binky.central.sun.com>
References: <200302031627.h13GR7n13942@malmo.trab.se>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <200302031627.h13GR7n13942@malmo.trab.se>; from Dan.Oscarsson@kiconsulting.se on Mon, Feb 03, 2003 at 05:29:58PM +0100
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

On Mon, Feb 03, 2003 at 05:29:58PM +0100, Dan Oscarsson wrote:
> >happy (my security instincts say that nonetheless the server should
> >enforce a normalization form, but I can't yet find a convincing security
> >argument).
> 
> Well, as many programs will not check for unnormalised or different
> normalisations and instead expect the code to be form C, there can be
> names that the display device happen to show as the same to the user
> but for the program are different, that can result in security
> problems.

I was thinking along those lines, and along the lines of covert channels
(could a filename which cannot be referenced by most clients be a covert
channel?)  But then, this problem exists today - most users may not even
notice a file named " ", say.  So I don't think a new problem is
introduced by not requiring that the server enforce a normalization
form.

> In all other areas I have seen working with text/UCS, they want one
> normalisation and one form to avoid more than one representation
> for the same thing. This because of security matters and to make things
> much simpler to handle.

Yes, but here we're not talking about naming security entities, as in
Kerberos, or domain labels, in DNS/IDN.  So the security implications
of not enforcing a normalization form are different from those in
Kerberos, DNS, PKI, or what have you.

> 
> >> Even if I switched to UTF-8 as my local character set it will fail, if
> >> the UTF-8 encoded text is not normalised form C. No other form
> >> is acceptible to use due to things like invalid semantics, to
> >> much data space and complex and CPU consuming handling of that format.
> >
> >User-level code will have to be able to cope with unnormalized Unicode
> >text [by normalizing as necessary], with or w/o NFSv4.
> 
> Not at all. Most user and os kernel code need only handle UTF-8 in form C.
> At least in the Unix/Linux world. That is the standard format used there.

What I was getting at is that if the server does not enforce a
normalization form for filenames then the clients had better use one
normalization form to avoid interop problems, and if the client does the
normalization then that task can be moved to user-level, as in libc.

> >
> >> You cannot expect systems to switch to unnormalised UTF-8 in their
> >> file system to help NFSv4. It will break most applications.
> >
> >The C runtime environment will have to do as much normalization as is
> >necessary under the hood, yes.
> 
> Not at all. The C runtime will read the file names through the kernal
> system calls and expect/deliver UTF-8 form C (or legacy encoding).
> Unnormalised or form D will break the applications.

I'm talking about where codeset conversions and/or normalization of
filename arguments to system calls should take place - in the library
stubs? or in the kernel?  This is an implementation detail, of course.

> >Pages 572 and 573 of the same book mentioned above make it very clear to
> >me that composites added after Unicode 3.0 are disalloed in text
> >normalized to form C.  The book references Unicode Annex #15.
> >
> 
> Yes, that is to make in unnecessary for form C to have new precomposed
> characters being added later. But as each revision comes along, new
> characters will be included in form C too.

New pre-composed characters can and have been added to the Unicode
repertorire, but not to normalization form C; you could say that over
time normalization form C will asymptotically approach form D :)

Cheers,

Nico
-- 


From owner-nfsv4-wg@sunroof.eng.sun.com  Thu Feb  6 11:47:49 2003
Received: from kathmandu.sun.com (kathmandu.sun.com [192.18.98.36])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id LAA25416
	for <nfsv4-archive@lists.ietf.org>; Thu, 6 Feb 2003 11:47:49 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by kathmandu.sun.com (8.9.3+Sun/8.9.3) with ESMTP id JAA09181;
	Thu, 6 Feb 2003 09:46:48 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h16GjvVL020769;
	Thu, 6 Feb 2003 08:45:57 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h16GjjQb002527
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Thu, 6 Feb 2003 08:45:45 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h16GjjCu002526
	for nfsv4-wg-dist; Thu, 6 Feb 2003 08:45:45 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail2sun.Eng.Sun.COM (engmail2sun [129.144.134.19])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h16GjhQb002519
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 6 Feb 2003 08:45:43 -0800 (PST)
Received: from nwkea-mail-1.sun.com ([192.18.42.13])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h16GjqVL020733
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 6 Feb 2003 08:45:52 -0800 (PST)
Received: from malmo.trab.se (malmo.kicore.net [131.115.48.10])
	by nwkea-mail-1.sun.com (8.9.3+Sun/8.9.3) with ESMTP id IAA23843;
	Thu, 6 Feb 2003 08:45:42 -0800 (PST)
Received: from terra (terra.malmo.kicore.net [217.212.0.22]) by malmo.trab.se (8.10.1/TRAB-primary-2) with SMTP id h16Gjen06372; Thu, 6 Feb 2003 17:45:40 +0100 (MET)
Message-Id: <200302061645.h16Gjen06372@malmo.trab.se>
Date: Thu, 6 Feb 2003 17:48:32 +0100 (CET)
From: Dan Oscarsson <Dan.Oscarsson@kiconsulting.se>
Reply-To: Dan Oscarsson <Dan.Oscarsson@kiconsulting.se>
Subject: Re: [Dan.Oscarsson@kiconsulting.se: Comments on NFSv4 rfc3010bis-05 draft]
To: Nicolas.Williams@sun.com
Cc: nfsv4-wg@sunroof.eng.sun.com
MIME-Version: 1.0
Content-Type: TEXT/plain; charset=us-ascii
Content-MD5: ErEpHC7LlzvqwZB/cwoV6A==
X-Mailer: dtmail 1.3.0 @(#)CDE Version 1.5 SunOS 5.9 sun4u sparc 
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

>What I was getting at is that if the server does not enforce a
>normalization form for filenames then the clients had better use one
>normalization form to avoid interop problems, and if the client does the
>normalization then that task can be moved to user-level, as in libc.
>

Yes, and because of that I think the protocol must mandate
normalisation form C. Then the server (kernel) code kan assume the
format to be that and do not need to do any normalisation. If a client
sends text in another form and thereby violates the protocol strange
things may happen and bad answers. That is ok, that should happen if
you do not follow the protocol. The whole meaning of defining a protocol
is to agree on what "language" to speak and the meaning of the "words".
If the protocol says UCS form C encoded using UTF-8 and somebody
transmitts UCS-2 you violates the protocol.
If we define the normalisation form to be "undefined", we get a protocol
where the "words" are loosly defined. I see no reason to allow more than
one form of a "word". Why complicate the world? By selecting the most
favoured normalisation form many systems can directely send text over
the protocol without change. Both the Unix community and the World Wide Web
have selected form C to be used. I am sure there are many more.


   Dan



From owner-nfsv4-wg@sunroof.eng.sun.com  Thu Feb  6 11:57:23 2003
Received: from nwkea-mail-1.sun.com (nwkea-mail-1.sun.com [192.18.42.13])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id LAA25681
	for <nfsv4-archive@lists.ietf.org>; Thu, 6 Feb 2003 11:57:22 -0500 (EST)
Received: from engmail1mpk.Eng.Sun.COM ([129.146.1.45])
	by nwkea-mail-1.sun.com (8.9.3+Sun/8.9.3) with ESMTP id IAA00513;
	Thu, 6 Feb 2003 08:53:46 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h16GqwVK004634;
	Thu, 6 Feb 2003 08:52:58 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h16GqkQb002555
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Thu, 6 Feb 2003 08:52:46 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h16Gqjdt002554
	for nfsv4-wg-dist; Thu, 6 Feb 2003 08:52:45 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from centralmail1brm.Central.Sun.COM (centralmail1brm.Central.Sun.COM [129.147.62.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h16GqhQb002547
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 6 Feb 2003 08:52:44 -0800 (PST)
Received: from binky.central.sun.com (binky.Central.Sun.COM [129.153.128.104])
	by centralmail1brm.Central.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h16Gqq7L002545;
	Thu, 6 Feb 2003 09:52:52 -0700 (MST)
Received: from binky.central.sun.com (localhost [127.0.0.1])
	by binky.central.sun.com (8.12.5+Sun/8.12.3) with ESMTP id h16Gp9Qx023799;
	Thu, 6 Feb 2003 08:51:09 -0800 (PST)
Received: (from nw141292@localhost)
	by binky.central.sun.com (8.12.5+Sun/8.12.3/Submit) id h16Gp9wA023798;
	Thu, 6 Feb 2003 10:51:09 -0600 (CST)
Date: Thu, 6 Feb 2003 10:51:09 -0600
From: Nicolas Williams <Nicolas.Williams@sun.com>
To: Dan Oscarsson <Dan.Oscarsson@kiconsulting.se>
Cc: nfsv4-wg@sunroof.eng.sun.com
Subject: Re: [Dan.Oscarsson@kiconsulting.se: Comments on NFSv4 rfc3010bis-05 draft]
Message-ID: <20030206105109.Y18728@binky.central.sun.com>
References: <200302061645.h16Gjen06372@malmo.trab.se>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <200302061645.h16Gjen06372@malmo.trab.se>; from Dan.Oscarsson@kiconsulting.se on Thu, Feb 06, 2003 at 05:48:32PM +0100
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

On Thu, Feb 06, 2003 at 05:48:32PM +0100, Dan Oscarsson wrote:
> >What I was getting at is that if the server does not enforce a
> >normalization form for filenames then the clients had better use one
> >normalization form to avoid interop problems, and if the client does the
> >normalization then that task can be moved to user-level, as in libc.
> >
> 
> Yes, and because of that I think the protocol must mandate
> normalisation form C. Then the server (kernel) code kan assume the
> format to be that and do not need to do any normalisation. If a client
> sends text in another form and thereby violates the protocol strange
> things may happen and bad answers. That is ok, that should happen if
> you do not follow the protocol. The whole meaning of defining a protocol
> is to agree on what "language" to speak and the meaning of the "words".
> If the protocol says UCS form C encoded using UTF-8 and somebody
> transmitts UCS-2 you violates the protocol.

I agree, with the caveat that the server MUST check that the filenames contain
only valid UTF-8 encodings (this is fairly simple, though,
unfortunately, not very efficient, but much, much more efficient than
enforcing a normalization).

I think we may end up drafting something to this end as a separate
document.

> If we define the normalisation form to be "undefined", we get a protocol
> where the "words" are loosly defined. I see no reason to allow more than
> one form of a "word". Why complicate the world? By selecting the most
> favoured normalisation form many systems can directely send text over
> the protocol without change. Both the Unix community and the World Wide Web
> have selected form C to be used. I am sure there are many more.

If normalization has to be done on the server, then I favor form D, if
it can be pushed to the client, then I favor whatever form is most
common amongst clients (which is likely to be C).

Cheers,

Nico
-- 


From owner-nfsv4-wg@sunroof.eng.sun.com  Thu Feb  6 12:08:47 2003
Received: from patan.sun.com (patan.Sun.COM [192.18.98.43])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA26157
	for <nfsv4-archive@lists.ietf.org>; Thu, 6 Feb 2003 12:08:46 -0500 (EST)
Received: from engmail1mpk.Eng.Sun.COM ([129.146.1.45])
	by patan.sun.com (8.9.3+Sun/8.9.3) with ESMTP id KAA14816;
	Thu, 6 Feb 2003 10:09:38 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h16H8xVK009544;
	Thu, 6 Feb 2003 09:08:59 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h16H8lQb002597
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Thu, 6 Feb 2003 09:08:47 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h16H8lAf002596
	for nfsv4-wg-dist; Thu, 6 Feb 2003 09:08:47 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail1mpk.Eng.Sun.COM (engmail1mpk [129.146.1.45])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h16H8iQb002588
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 6 Feb 2003 09:08:44 -0800 (PST)
Received: from lukla.Sun.COM (lukla.Central.Sun.COM [129.147.5.31])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h16H8rVK009487
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 6 Feb 2003 09:08:53 -0800 (PST)
Received: from citi.umich.edu (citi.umich.edu [141.211.92.141])
	by lukla.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id KAA20767
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 6 Feb 2003 10:08:46 -0700 (MST)
Received: from citi.umich.edu (dumaguete.citi.umich.edu [141.211.92.168])
	by citi.umich.edu (Postfix) with ESMTP id 1BCCF207F7
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu,  6 Feb 2003 12:08:37 -0500 (EST)
Subject: Re: [Dan.Oscarsson@kiconsulting.se: Comments on NFSv4 rfc3010bis-05 draft] 
To: nfsv4-wg@sunroof.eng.sun.com
From: Jim Rees <rees@umich.edu>
In-Reply-To: Nicolas Williams, Thu, 06 Feb 2003 10:51:09 CST
Date: Thu, 06 Feb 2003 12:08:37 -0500
Message-Id: <20030206170837.1BCCF207F7@citi.umich.edu>
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

I would be opposed to requiring the server to check file names for valid
UTF-8 form C.  Is this really necessary?  Unix (and nfs) file systems have
never checked file names for validity in the past.  This can result in some
suprising behavior if the application (or client) misbehave, but I would
vote for sticking with tradition on this one.


From owner-nfsv4-wg@sunroof.eng.sun.com  Thu Feb  6 12:20:31 2003
Received: from patan.sun.com (patan.Sun.COM [192.18.98.43])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA26653
	for <nfsv4-archive@lists.ietf.org>; Thu, 6 Feb 2003 12:20:30 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by patan.sun.com (8.9.3+Sun/8.9.3) with ESMTP id KAA23870;
	Thu, 6 Feb 2003 10:21:45 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h16HLPVL002485;
	Thu, 6 Feb 2003 09:21:25 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h16HLDQb002627
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Thu, 6 Feb 2003 09:21:13 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h16HLDdb002626
	for nfsv4-wg-dist; Thu, 6 Feb 2003 09:21:13 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from centralmail1brm.Central.Sun.COM (centralmail1brm.Central.Sun.COM [129.147.62.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h16HLBQb002619
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 6 Feb 2003 09:21:11 -0800 (PST)
Received: from Sun.COM (jetsun.Central.Sun.COM [129.153.128.60])
	by centralmail1brm.Central.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h16HLK7L014283
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 6 Feb 2003 10:21:21 -0700 (MST)
Message-ID: <3E429990.2050705@Sun.COM>
Date: Thu, 06 Feb 2003 11:21:20 -0600
From: David Robinson <David.Robinson@sun.com>
Reply-To: David.Robinson@sun.com
Organization: Sun Microsystems, Inc.
User-Agent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.1) Gecko/20020827
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: nfsv4-wg@sunroof.eng.sun.com
Subject: Re: [Dan.Oscarsson@kiconsulting.se: Comments on NFSv4 rfc3010bis-05
 draft]
References: <200302061645.h16Gjen06372@malmo.trab.se>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>
Content-Transfer-Encoding: 7bit

Dan Oscarsson wrote:
>>What I was getting at is that if the server does not enforce a
>>normalization form for filenames then the clients had better use one
>>normalization form to avoid interop problems, and if the client does the
>>normalization then that task can be moved to user-level, as in libc.
>>
> 
> 
> Yes, and because of that I think the protocol must mandate
> normalisation form C. Then the server (kernel) code kan assume the
> format to be that and do not need to do any normalisation. If a client
> sends text in another form and thereby violates the protocol strange
> things may happen and bad answers. That is ok, that should happen if
> you do not follow the protocol. The whole meaning of defining a protocol
> is to agree on what "language" to speak and the meaning of the "words".
> If the protocol says UCS form C encoded using UTF-8 and somebody
> transmitts UCS-2 you violates the protocol.
> If we define the normalisation form to be "undefined", we get a protocol
> where the "words" are loosly defined. I see no reason to allow more than
> one form of a "word". Why complicate the world? By selecting the most
> favoured normalisation form many systems can directely send text over
> the protocol without change. Both the Unix community and the World Wide Web
> have selected form C to be used. I am sure there are many more.

I am far from an expert on normalization, but in following this thread
it seem to boil down to the question of "who makes it right" and what
"right" is. For the latter, I am going to defer to the normalization
experts to determine what is the best "form".

Traditionally NFS has had a philosophy of dumb servers and smart clients
which has allowed development of high performance low impact servers.
The client was the party that was responsible for mapping its semantics
on to the protocol definition.  Based on this and my understanding
of Unicode, at most the server should be limited to validating that
the utf8 string it receives is actually a valid encoding, the server
should not perform the complex process of normalization.

If we follow this approach, two clients that use different encoding
schemes may send different utf8 strings to access the same file, one
or both may fail depending on the form the server stored the name in.
Again for simplicity the server is just doing a bitwise comparision.
Some files may be inaccessible by certain clients, but as Nico says
above, we already have this today and it doesn't seem to be a problem.

To help this problem we can either mandate a normalization form on
the wire, "MUST use form XYZ" or we can recommend that clients
use a common normalization form, "SHOULD use form XYZ". I would
tend to favor the latter as it allows clients in a homogenous
environment to not pay the price of normalizing to an unfavorable
encoding. It is also useful to note that if a filename uses
an encoding that is not the preferred encoding, the client can
still access it by simply performing a READDIR and returning the
bits acquired in a subsequent LOOKUP. What is presented to the
application need not be what the server returns, as long as the
client performs the mapping function.

So the interesting options are:

	1) Server performs normalization
	2) Protocol specifies wire standard normalization
	3) Client uses recommended common normalization

Given where we are in the IETF process, I suggest #3 and
the WG publish the recommended normalization form. Over time,
(in a minor version?) we could migrate to option #2.

	-David




From owner-nfsv4-wg@sunroof.eng.sun.com  Thu Feb  6 12:30:05 2003
Received: from patan.sun.com (patan.Sun.COM [192.18.98.43])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA27047
	for <nfsv4-archive@lists.ietf.org>; Thu, 6 Feb 2003 12:30:04 -0500 (EST)
Received: from engmail1mpk.Eng.Sun.COM ([129.146.1.45])
	by patan.sun.com (8.9.3+Sun/8.9.3) with ESMTP id KAA00730;
	Thu, 6 Feb 2003 10:31:10 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h16HUUVK016710;
	Thu, 6 Feb 2003 09:30:30 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h16HUIQb002652
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Thu, 6 Feb 2003 09:30:18 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h16HUIHk002651
	for nfsv4-wg-dist; Thu, 6 Feb 2003 09:30:18 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail2sun.Eng.Sun.COM (engmail2sun [129.144.134.19])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h16HUGQb002644
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 6 Feb 2003 09:30:16 -0800 (PST)
Received: from patan.sun.com (patan.Central.Sun.COM [129.147.5.43])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h16HUPVL005863
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 6 Feb 2003 09:30:25 -0800 (PST)
Received: from mx01.netapp.com (mx01.netapp.com [198.95.226.53])
	by patan.sun.com (8.9.3+Sun/8.9.3) with ESMTP id KAA00052
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 6 Feb 2003 10:30:19 -0700 (MST)
Received: from frejya.corp.netapp.com (frejya [10.10.20.91])
	by mx01.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h16HUJYW015560;
	Thu, 6 Feb 2003 09:30:19 -0800 (PST)
Received: from svlexc01.hq.netapp.com (svlexc01.corp.netapp.com [10.10.22.171])
	by frejya.corp.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h16HUJv6016944;
	Thu, 6 Feb 2003 09:30:19 -0800 (PST)
content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Subject: RE: [Dan.Oscarsson@kiconsulting.se: Comments on NFSv4 rfc3010bis-05 draft] 
X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3
Date: Thu, 6 Feb 2003 09:30:08 -0800
Message-ID: <C8CF60CFC4D8A74E9945E32CF096548A072A89@SILVER.nane.netapp.com>
Thread-Topic: [Dan.Oscarsson@kiconsulting.se: Comments on NFSv4 rfc3010bis-05 draft] 
Thread-Index: AcLOAo/O+lG64KBfRdemcAQWW4kroQAAGnpg
From: "Noveck, Dave" <Dave.Noveck@netapp.com>
To: "Jim Rees" <rees@umich.edu>, <nfsv4-wg@sunroof.eng.sun.com>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by sunroof.eng.sun.com id h16HUGQb002645
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>
Content-Transfer-Encoding: 8bit

I want to separate the two issues.  Checking UTF-8 and
checking form C.

It's my impression that the spec already requires that 
you check stuff that supposed to be utf-8 and reject it
if it isn't valid utf-8.  I can't quote a specific statement
to that effect but when it says that that's what's valid, my 
conclusion is that anything else is invalid.  In fact,
on my bug list (way down, to be sure) is a problem that
Peter Astrand's test suite complains that I don't reject 
a *tag* that doesn't consist of valid UTF-8.

As to checking form C, it really doesn't make much difference
to me whether the spec requires the server to check it.  Saying 
that the client has to produce correct form C, but that the 
server doesn't have to check it, with the client getting "weird" 
results if he uses the wrong form, is not something that I
would be prepared to live with.  I would wind up checking
the normalization rather than having to wonder, in any 
internationalization situation in which something wierd 
happened, whether a client with bad normalization was involved.

I'm assuming that checking for valid normalization form C
is simpler than actually doing the normalization.  I'm hoping
that for most actual strings processed the execution time
will be roughly comparable to just checking UTF-8, even though
there will obviously be examples that are considerably more 
expensive to process.

-----Original Message-----
From: Jim Rees [mailto:rees@umich.edu]
Sent: Thursday, February 06, 2003 12:09 PM
To: nfsv4-wg@sunroof.eng.sun.com
Subject: Re: [Dan.Oscarsson@kiconsulting.se: Comments on NFSv4
rfc3010bis-05 draft] 


I would be opposed to requiring the server to check file names for valid
UTF-8 form C.  Is this really necessary?  Unix (and nfs) file systems have
never checked file names for validity in the past.  This can result in some
suprising behavior if the application (or client) misbehave, but I would
vote for sticking with tradition on this one.



From owner-nfsv4-wg@sunroof.eng.sun.com  Thu Feb  6 12:35:12 2003
Received: from kathmandu.sun.com (kathmandu.sun.com [192.18.98.36])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA27262
	for <nfsv4-archive@lists.ietf.org>; Thu, 6 Feb 2003 12:35:12 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by kathmandu.sun.com (8.9.3+Sun/8.9.3) with ESMTP id KAA14123;
	Thu, 6 Feb 2003 10:36:29 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h16HZlVL007872;
	Thu, 6 Feb 2003 09:35:47 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h16HZZQb002683
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Thu, 6 Feb 2003 09:35:35 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h16HZZSr002682
	for nfsv4-wg-dist; Thu, 6 Feb 2003 09:35:35 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail2sun.Eng.Sun.COM (engmail2sun [129.144.134.19])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h16HZXQb002675
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 6 Feb 2003 09:35:33 -0800 (PST)
Received: from pheriche.sun.com (pheriche.Central.Sun.COM [129.147.5.34])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h16HZgVL007804
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 6 Feb 2003 09:35:42 -0800 (PST)
Received: from malmo.trab.se (malmo.kicore.net [131.115.48.10])
	by pheriche.sun.com (8.9.3+Sun/8.9.3) with ESMTP id KAA21891
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 6 Feb 2003 10:35:36 -0700 (MST)
Received: from terra (terra.malmo.kicore.net [217.212.0.22]) by malmo.trab.se (8.10.1/TRAB-primary-2) with SMTP id h16HZYn09779 for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 6 Feb 2003 18:35:34 +0100 (MET)
Message-Id: <200302061735.h16HZYn09779@malmo.trab.se>
Date: Thu, 6 Feb 2003 18:38:27 +0100 (CET)
From: Dan Oscarsson <Dan.Oscarsson@kiconsulting.se>
Reply-To: Dan Oscarsson <Dan.Oscarsson@kiconsulting.se>
Subject: Re: [Dan.Oscarsson@kiconsulting.se: Comments on NFSv4 rfc3010bis-05 draft]
To: nfsv4-wg@sunroof.eng.sun.com
MIME-Version: 1.0
Content-Type: TEXT/plain; charset=us-ascii
Content-MD5: yi2WDNgKJN1muWC06/5uag==
X-Mailer: dtmail 1.3.0 @(#)CDE Version 1.5 SunOS 5.9 sun4u sparc 
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

David Robinson wrote:

>If we follow this approach, two clients that use different encoding
>schemes may send different utf8 strings to access the same file, one
>or both may fail depending on the form the server stored the name in.
>Again for simplicity the server is just doing a bitwise comparision.
>Some files may be inaccessible by certain clients, but as Nico says
>above, we already have this today and it doesn't seem to be a problem.

Yes, we have that problem today. And it is a VERY BIG problem.
Not for you who use ASCII, but for us who use letters outside ASCII.

NFS as it is today is unusable the moment you need more than ASCII
and use systems with different encodings. I have had this problem
for many years. The only working file sharing code I have had is
the open source file sharing code I have fixed to use the same
format on the wire. I hoped that NFSv4 finally should allow me to mount
file systems between systems of different type, and get a working
file sharing. If the protocol do not mandate format to use, I am sure
I will have the same problems with NFSv4 as with previous version.

    Dan



From owner-nfsv4-wg@sunroof.eng.sun.com  Thu Feb  6 12:43:08 2003
Received: from nwkea-mail-1.sun.com (nwkea-mail-1.sun.com [192.18.42.13])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA27534
	for <nfsv4-archive@lists.ietf.org>; Thu, 6 Feb 2003 12:43:07 -0500 (EST)
Received: from engmail1mpk.Eng.Sun.COM ([129.146.1.45])
	by nwkea-mail-1.sun.com (8.9.3+Sun/8.9.3) with ESMTP id JAA08185;
	Thu, 6 Feb 2003 09:39:45 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h16HcvVK019553;
	Thu, 6 Feb 2003 09:38:57 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h16HciQb002695
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Thu, 6 Feb 2003 09:38:44 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h16Hcibv002694
	for nfsv4-wg-dist; Thu, 6 Feb 2003 09:38:44 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from centralmail2brm.Central.Sun.COM (centralmail2brm.Central.Sun.COM [129.147.62.14])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h16HcgQb002686
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 6 Feb 2003 09:38:42 -0800 (PST)
Received: from binky.central.sun.com (binky.Central.Sun.COM [129.153.128.104])
	by centralmail2brm.Central.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h16Hcpln017731;
	Thu, 6 Feb 2003 10:38:51 -0700 (MST)
Received: from binky.central.sun.com (localhost [127.0.0.1])
	by binky.central.sun.com (8.12.5+Sun/8.12.3) with ESMTP id h16Hb8Qx023814;
	Thu, 6 Feb 2003 09:37:08 -0800 (PST)
Received: (from nw141292@localhost)
	by binky.central.sun.com (8.12.5+Sun/8.12.3/Submit) id h16Hb7TV023813;
	Thu, 6 Feb 2003 11:37:07 -0600 (CST)
Date: Thu, 6 Feb 2003 11:37:07 -0600
From: Nicolas Williams <Nicolas.Williams@sun.com>
To: "Noveck, Dave" <Dave.Noveck@netapp.com>
Cc: Jim Rees <rees@umich.edu>, nfsv4-wg@sunroof.eng.sun.com
Subject: Re: [Dan.Oscarsson@kiconsulting.se: Comments on NFSv4 rfc3010bis-05 draft]
Message-ID: <20030206113707.Z18728@binky.central.sun.com>
References: <C8CF60CFC4D8A74E9945E32CF096548A072A89@SILVER.nane.netapp.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <C8CF60CFC4D8A74E9945E32CF096548A072A89@SILVER.nane.netapp.com>; from Dave.Noveck@netapp.com on Thu, Feb 06, 2003 at 09:30:08AM -0800
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

On Thu, Feb 06, 2003 at 09:30:08AM -0800, Noveck, Dave wrote:
> I want to separate the two issues.  Checking UTF-8 and
> checking form C.

These two are, in fact, distinct.

> It's my impression that the spec already requires that 
> you check stuff that supposed to be utf-8 and reject it
> if it isn't valid utf-8.  I can't quote a specific statement
> to that effect but when it says that that's what's valid, my 
> conclusion is that anything else is invalid.  In fact,
> on my bug list (way down, to be sure) is a problem that
> Peter Astrand's test suite complains that I don't reject 
> a *tag* that doesn't consist of valid UTF-8.

The spec speaks of UTF-8 throughout - I don't see how it could be
construed as correct behaviour to allow non-UTF-8 encodings or invalid
UTF-8 encodings (e.g., overlong sequences).

> As to checking form C, it really doesn't make much difference
> to me whether the spec requires the server to check it.  Saying 
> that the client has to produce correct form C, but that the 
> server doesn't have to check it, with the client getting "weird" 
> results if he uses the wrong form, is not something that I
> would be prepared to live with.  I would wind up checking
> the normalization rather than having to wonder, in any 
> internationalization situation in which something wierd 
> happened, whether a client with bad normalization was involved.

It would be useful to have benchamrks of Unicode normalization.

> I'm assuming that checking for valid normalization form C
> is simpler than actually doing the normalization.  I'm hoping
> that for most actual strings processed the execution time
> will be roughly comparable to just checking UTF-8, even though
> there will obviously be examples that are considerably more 
> expensive to process.

Your assumption is correct.  I don't know about the perf aspect, but
users of mostly-ASCII filenames would likely not notice any impact.

Cheers,

Nico
-- 


From owner-nfsv4-wg@sunroof.eng.sun.com  Thu Feb  6 12:46:55 2003
Received: from nwkea-mail-1.sun.com (nwkea-mail-1.sun.com [192.18.42.13])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA27615
	for <nfsv4-archive@lists.ietf.org>; Thu, 6 Feb 2003 12:46:54 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by nwkea-mail-1.sun.com (8.9.3+Sun/8.9.3) with ESMTP id JAA11483;
	Thu, 6 Feb 2003 09:43:12 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h16HgNVL010230;
	Thu, 6 Feb 2003 09:42:23 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h16HgAQb002771
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Thu, 6 Feb 2003 09:42:11 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h16HgAm8002770
	for nfsv4-wg-dist; Thu, 6 Feb 2003 09:42:10 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from centralmail1brm.Central.Sun.COM (centralmail1brm.Central.Sun.COM [129.147.62.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h16Hg8Qb002763
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 6 Feb 2003 09:42:09 -0800 (PST)
Received: from binky.central.sun.com (binky.Central.Sun.COM [129.153.128.104])
	by centralmail1brm.Central.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h16HgH7L023132;
	Thu, 6 Feb 2003 10:42:17 -0700 (MST)
Received: from binky.central.sun.com (localhost [127.0.0.1])
	by binky.central.sun.com (8.12.5+Sun/8.12.3) with ESMTP id h16HeYQx023821;
	Thu, 6 Feb 2003 09:40:34 -0800 (PST)
Received: (from nw141292@localhost)
	by binky.central.sun.com (8.12.5+Sun/8.12.3/Submit) id h16HeYSm023820;
	Thu, 6 Feb 2003 11:40:34 -0600 (CST)
Date: Thu, 6 Feb 2003 11:40:34 -0600
From: Nicolas Williams <Nicolas.Williams@sun.com>
To: Dan Oscarsson <Dan.Oscarsson@kiconsulting.se>
Cc: nfsv4-wg@sunroof.eng.sun.com
Subject: Re: [Dan.Oscarsson@kiconsulting.se: Comments on NFSv4 rfc3010bis-05 draft]
Message-ID: <20030206114034.A18728@binky.central.sun.com>
References: <200302061735.h16HZYn09779@malmo.trab.se>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <200302061735.h16HZYn09779@malmo.trab.se>; from Dan.Oscarsson@kiconsulting.se on Thu, Feb 06, 2003 at 06:38:27PM +0100
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

On Thu, Feb 06, 2003 at 06:38:27PM +0100, Dan Oscarsson wrote:
> David Robinson wrote:
> 
> >If we follow this approach, two clients that use different encoding
> >schemes may send different utf8 strings to access the same file, one
> >or both may fail depending on the form the server stored the name in.
> >Again for simplicity the server is just doing a bitwise comparision.
> >Some files may be inaccessible by certain clients, but as Nico says
> >above, we already have this today and it doesn't seem to be a problem.
> 
> Yes, we have that problem today. And it is a VERY BIG problem.
> Not for you who use ASCII, but for us who use letters outside ASCII.
> 
> NFS as it is today is unusable the moment you need more than ASCII
> and use systems with different encodings. I have had this problem
> for many years. The only working file sharing code I have had is
> the open source file sharing code I have fixed to use the same
> format on the wire. I hoped that NFSv4 finally should allow me to mount
> file systems between systems of different type, and get a working
> file sharing. If the protocol do not mandate format to use, I am sure
> I will have the same problems with NFSv4 as with previous version.

As NFSv4 stands the client can make it right, so the protocol is OK.
It'll be less painful if we at least recommend a normalization form to
use for filenames when they are created.

Let me repeat, NFSv4 is not broken here wrt normalization forms - at
worst it is sub-optimal.

Cheers,

Nico
-- 


From owner-nfsv4-wg@sunroof.eng.sun.com  Thu Feb  6 12:49:01 2003
Received: from nwkea-mail-1.sun.com (nwkea-mail-1.sun.com [192.18.42.13])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA27713
	for <nfsv4-archive@lists.ietf.org>; Thu, 6 Feb 2003 12:49:00 -0500 (EST)
Received: from engmail1mpk.Eng.Sun.COM ([129.146.1.45])
	by nwkea-mail-1.sun.com (8.9.3+Sun/8.9.3) with ESMTP id JAA13700;
	Thu, 6 Feb 2003 09:46:03 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h16HjEVK021943;
	Thu, 6 Feb 2003 09:45:14 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h16Hj2Qb002783
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Thu, 6 Feb 2003 09:45:02 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h16Hj2Kg002782
	for nfsv4-wg-dist; Thu, 6 Feb 2003 09:45:02 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail2sun.Eng.Sun.COM (engmail2sun [129.144.134.19])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h16Hj0Qb002775
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 6 Feb 2003 09:45:00 -0800 (PST)
Received: from patan.sun.com (patan.Central.Sun.COM [129.147.5.43])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h16Hj9VL010988
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 6 Feb 2003 09:45:09 -0800 (PST)
Received: from mx01.netapp.com (mx01.netapp.com [198.95.226.53])
	by patan.sun.com (8.9.3+Sun/8.9.3) with ESMTP id KAA11469;
	Thu, 6 Feb 2003 10:45:04 -0700 (MST)
Received: from frejya.corp.netapp.com (frejya [10.10.20.91])
	by mx01.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h16Hj3YW016739;
	Thu, 6 Feb 2003 09:45:03 -0800 (PST)
Received: from ussvlexc01.corp.netapp.com (ussvlexc01.corp.netapp.com [10.10.22.169])
	by frejya.corp.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h16Hj1v6020295;
	Thu, 6 Feb 2003 09:45:03 -0800 (PST)
Received: by ussvlexc01.corp.netapp.com with Internet Mail Service (5.5.2653.19)
	id <CTK0DMKL>; Thu, 6 Feb 2003 09:45:01 -0800
Message-ID: <C8CF60CFC4D8A74E9945E32CF096548A379128@SILVER.nane.netapp.com>
From: "Noveck, Dave" <Dave.Noveck@netapp.com>
To: "'Nicolas Williams'" <Nicolas.Williams@sun.com>
Cc: Jim Rees <rees@umich.edu>, nfsv4-wg@sunroof.eng.sun.com
Subject: RE: [Dan.Oscarsson@kiconsulting.se: Comments on NFSv4 rfc3010bis-
	05 draft]
Date: Thu, 6 Feb 2003 09:44:57 -0800 
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

> >  In fact,
> > on my bug list (way down, to be sure) is a problem that
> > Peter Astrand's test suite complains that I don't reject 
> > a *tag* that doesn't consist of valid UTF-8.
> 
> The spec speaks of UTF-8 throughout - I don't see how it could be
> construed as correct behaviour to allow non-UTF-8 encodings or invalid
> UTF-8 encodings (e.g., overlong sequences).

Damn! Another guy bothering me about fixing that stinking problem
with non-UTF-8 tags.  It never lets up, does it? :-)


From owner-nfsv4-wg@sunroof.eng.sun.com  Thu Feb  6 12:58:17 2003
Received: from patan.sun.com (patan.Sun.COM [192.18.98.43])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA28194
	for <nfsv4-archive@lists.ietf.org>; Thu, 6 Feb 2003 12:58:16 -0500 (EST)
Received: from engmail1mpk.Eng.Sun.COM ([129.146.1.45])
	by patan.sun.com (8.9.3+Sun/8.9.3) with ESMTP id KAA21837;
	Thu, 6 Feb 2003 10:59:31 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h16HweVK026364;
	Thu, 6 Feb 2003 09:58:40 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h16HwRQb002971
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Thu, 6 Feb 2003 09:58:28 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h16HwRAM002970
	for nfsv4-wg-dist; Thu, 6 Feb 2003 09:58:27 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from centralmail2brm.Central.Sun.COM (centralmail2brm.Central.Sun.COM [129.147.62.14])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h16HwPQb002963
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 6 Feb 2003 09:58:26 -0800 (PST)
Received: from binky.central.sun.com (binky.Central.Sun.COM [129.153.128.104])
	by centralmail2brm.Central.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h16HwXln025583;
	Thu, 6 Feb 2003 10:58:33 -0700 (MST)
Received: from binky.central.sun.com (localhost [127.0.0.1])
	by binky.central.sun.com (8.12.5+Sun/8.12.3) with ESMTP id h16HuoQx023833;
	Thu, 6 Feb 2003 09:56:50 -0800 (PST)
Received: (from nw141292@localhost)
	by binky.central.sun.com (8.12.5+Sun/8.12.3/Submit) id h16Huoxr023832;
	Thu, 6 Feb 2003 11:56:50 -0600 (CST)
Date: Thu, 6 Feb 2003 11:56:50 -0600
From: Nicolas Williams <Nicolas.Williams@sun.com>
To: "Noveck, Dave" <Dave.Noveck@netapp.com>
Cc: Jim Rees <rees@umich.edu>, nfsv4-wg@sunroof.eng.sun.com
Subject: Re: [Dan.Oscarsson@kiconsulting.se: Comments on NFSv4 rfc3010bis-05 draft]
Message-ID: <20030206115650.B18728@binky.central.sun.com>
References: <C8CF60CFC4D8A74E9945E32CF096548A072A89@SILVER.nane.netapp.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <C8CF60CFC4D8A74E9945E32CF096548A072A89@SILVER.nane.netapp.com>; from Dave.Noveck@netapp.com on Thu, Feb 06, 2003 at 09:30:08AM -0800
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

Perhaps there is a neat compromise:

 - RECOMMEND a normalization form to clients that they are responsible
   for using and converting to/from

 - RECOMMEND that the server enforce a normalization form ONLY for new
   filenames (creates/renames/links)

This way the server can guarantee that the filesystem will contain only
filenames with the proper normalization without having to perform
normalization very often (only when files are created/renamed/linked
with non-ASCII names), thus limiting the perf impact of doing
normalization on the server, and the client is responsible for
normalizing before doing LOOKUPs.

(Multi-protocol servers may have to deal with normalization more
generally, but that's a function of the protocols in question).

Section 11.4 of the draft already specifies an error to make this
possible.  All that'd be needed is an I-D that hands down the two
recommendations.

Cheers,

Nico

On Thu, Feb 06, 2003 at 09:30:08AM -0800, Noveck, Dave wrote:
...
> As to checking form C, it really doesn't make much difference
> to me whether the spec requires the server to check it.  Saying 
> that the client has to produce correct form C, but that the 
> server doesn't have to check it, with the client getting "weird" 
> results if he uses the wrong form, is not something that I
> would be prepared to live with.  I would wind up checking
> the normalization rather than having to wonder, in any 
> internationalization situation in which something wierd 
> happened, whether a client with bad normalization was involved.
...


From owner-nfsv4-wg@sunroof.eng.sun.com  Thu Feb  6 13:44:50 2003
Received: from nwkea-mail-2.sun.com (nwkea-mail-2.sun.com [192.18.42.14])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA29901
	for <nfsv4-archive@lists.ietf.org>; Thu, 6 Feb 2003 13:44:49 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by nwkea-mail-2.sun.com (8.9.3+Sun/8.9.3) with ESMTP id KAA10502;
	Thu, 6 Feb 2003 10:41:30 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h16IeoVL000028;
	Thu, 6 Feb 2003 10:40:50 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h16IecQb003057
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Thu, 6 Feb 2003 10:40:38 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h16IecOn003056
	for nfsv4-wg-dist; Thu, 6 Feb 2003 10:40:38 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail2sun.Eng.Sun.COM (engmail2sun [129.144.134.19])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h16IeaQb003049
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 6 Feb 2003 10:40:36 -0800 (PST)
Received: from nwkea-mail-1.sun.com ([192.18.42.13])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h16IejVL029989
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 6 Feb 2003 10:40:45 -0800 (PST)
Received: from e35.co.us.ibm.com (e35.co.us.ibm.com [32.97.110.133])
	by nwkea-mail-1.sun.com (8.9.3+Sun/8.9.3) with ESMTP id KAA26484
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 6 Feb 2003 10:40:40 -0800 (PST)
Received: from westrelay02.boulder.ibm.com (westrelay02.boulder.ibm.com [9.17.194.23])
	by e35.co.us.ibm.com (8.12.7/8.12.2) with ESMTP id h16IedJE040344
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 6 Feb 2003 13:40:39 -0500
Received: from d03nm113.boulder.ibm.com (d03av02.boulder.ibm.com [9.17.193.82])
	by westrelay02.boulder.ibm.com (8.12.3/NCO/VER6.5) with ESMTP id h16IecxM063606
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 6 Feb 2003 11:40:39 -0700
Subject: Minor Versions
To: nfsv4-wg@sunroof.eng.sun.com
X-Mailer: Lotus Notes Release 5.0.7  March 21, 2001
Message-ID: <OFCF8D67FF.B768C04E-ON88256CC5.006382AE@us.ibm.com>
From: Stevan Steve Allen <scallen@us.ibm.com>
Date: Thu, 6 Feb 2003 10:40:01 -0800
X-MIMETrack: Serialize by Router on D03NM113/03/M/IBM(Release 6.0 [IBM]|December 16, 2002) at
 02/06/2003 11:40:39
MIME-Version: 1.0
Content-type: text/plain; charset=US-ASCII
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>





Attributes are currently available for minor versioning.  Is there a need
to add open rflags to minor versioning for cases where file attributes may
not be the proper location or sequence if events?

A coding guideline used in my circle - if a process can not complete, it is
cleaner to prevent the process from starting.  Mid process termination may
lead to unknown results (debug) & wasted system resources.  This guideline
may use early indicators such as open rflags or file attributes to
determine ability to complete.



From owner-nfsv4-wg@sunroof.eng.sun.com  Thu Feb  6 13:53:11 2003
Received: from patan.sun.com (patan.Sun.COM [192.18.98.43])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA00138
	for <nfsv4-archive@lists.ietf.org>; Thu, 6 Feb 2003 13:53:10 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by patan.sun.com (8.9.3+Sun/8.9.3) with ESMTP id LAA04484;
	Thu, 6 Feb 2003 11:54:20 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h16IrAVL004884;
	Thu, 6 Feb 2003 10:53:11 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h16IqwQb003186
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Thu, 6 Feb 2003 10:52:58 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h16Iqwco003185
	for nfsv4-wg-dist; Thu, 6 Feb 2003 10:52:58 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail1mpk.Eng.Sun.COM (engmail1mpk [129.146.1.45])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h16IquQb003178
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 6 Feb 2003 10:52:56 -0800 (PST)
Received: from kathmandu.sun.com (kathmandu.Central.Sun.COM [129.147.5.36])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h16Ir6VK015542
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 6 Feb 2003 10:53:06 -0800 (PST)
Received: from mx01.netapp.com (mx01.netapp.com [198.95.226.53])
	by kathmandu.sun.com (8.9.3+Sun/8.9.3) with ESMTP id LAA07971
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 6 Feb 2003 11:53:00 -0700 (MST)
Received: from frejya.corp.netapp.com (frejya [10.10.20.91])
	by mx01.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h16Ir0YW021813;
	Thu, 6 Feb 2003 10:53:00 -0800 (PST)
Received: from ussvlexc01.corp.netapp.com (ussvlexc01.corp.netapp.com [10.10.22.169])
	by frejya.corp.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h16Iqxv6006652;
	Thu, 6 Feb 2003 10:52:59 -0800 (PST)
Received: by ussvlexc01.corp.netapp.com with Internet Mail Service (5.5.2653.19)
	id <CTK0DN1M>; Thu, 6 Feb 2003 10:52:59 -0800
Message-ID: <C8CF60CFC4D8A74E9945E32CF096548A37912B@SILVER.nane.netapp.com>
From: "Noveck, Dave" <Dave.Noveck@netapp.com>
To: "'Stevan Steve Allen'" <scallen@us.ibm.com>, nfsv4-wg@sunroof.eng.sun.com
Subject: RE: Minor Versions
Date: Thu, 6 Feb 2003 10:52:43 -0800 
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>
 

> Attributes are currently available for minor versioning.  

Attributes can be added in a minor version.  Attributes cannot
be officially deleted in a minor version, but they can be made
mandatory to not implement which serves the practical purpose
pretty well.

> Is there a need
> to add open rflags to minor versioning for cases where file attributes may
> not be the proper location or sequence if events?

You can add new flags to fields like the open rflags in a minor
version.  I'm not clear what kind of situation you think needs to
be represented in a new rflags bit.

> A coding guideline used in my circle - if a process can not complete, it is
> cleaner to prevent the process from starting.  

That's great if you can know that.

> Mid process termination may
> lead to unknown results (debug) & wasted system resources.  

Sure, but in lots of cases you can't predict.

> This guideline
> may use early indicators such as open rflags or file attributes to
> determine ability to complete.

You might but wouldn't that be application-specific?  What new attributes
or rflags could you propose that would shed light on this issue, in a
general way?



From owner-nfsv4-wg@sunroof.eng.sun.com  Thu Feb  6 14:28:43 2003
Received: from pheriche.sun.com (pheriche.sun.com [192.18.98.34])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA01151
	for <nfsv4-archive@lists.ietf.org>; Thu, 6 Feb 2003 14:28:42 -0500 (EST)
Received: from engmail1mpk.Eng.Sun.COM ([129.146.1.45])
	by pheriche.sun.com (8.9.3+Sun/8.9.3) with ESMTP id MAA13611;
	Thu, 6 Feb 2003 12:29:57 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h16JTIVK028021;
	Thu, 6 Feb 2003 11:29:18 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h16JT6Qb003846
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Thu, 6 Feb 2003 11:29:06 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h16JT64K003845
	for nfsv4-wg-dist; Thu, 6 Feb 2003 11:29:06 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail1mpk.Eng.Sun.COM (engmail1mpk [129.146.1.45])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h16JT4Qb003838
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 6 Feb 2003 11:29:04 -0800 (PST)
Received: from lukla.Sun.COM (lukla.Central.Sun.COM [129.147.5.31])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h16JTDVK027960
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 6 Feb 2003 11:29:13 -0800 (PST)
Received: from e31.co.us.ibm.com (e31.co.us.ibm.com [32.97.110.129])
	by lukla.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id MAA04397
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 6 Feb 2003 12:28:56 -0700 (MST)
Received: from westrelay02.boulder.ibm.com (westrelay02.boulder.ibm.com [9.17.194.23])
	by e31.co.us.ibm.com (8.12.7/8.12.2) with ESMTP id h16JSril060076
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 6 Feb 2003 14:28:53 -0500
Received: from d03nm113.boulder.ibm.com (d03av02.boulder.ibm.com [9.17.193.82])
	by westrelay02.boulder.ibm.com (8.12.3/NCO/VER6.5) with ESMTP id h16JSpxM214784
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 6 Feb 2003 12:28:52 -0700
Subject: RE: Minor Versions
To: nfsv4-wg@sunroof.eng.sun.com
X-Mailer: Lotus Notes Release 5.0.7  March 21, 2001
Message-ID: <OFC79C40F7.72A4150D-ON87256CC5.00690332@us.ibm.com>
From: Stevan Steve Allen <scallen@us.ibm.com>
Date: Thu, 6 Feb 2003 11:28:10 -0800
X-MIMETrack: Serialize by Router on D03NM113/03/M/IBM(Release 6.0 [IBM]|December 16, 2002) at
 02/06/2003 12:28:51
MIME-Version: 1.0
Content-type: text/plain; charset=US-ASCII
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>




An existing example is rflag OPEN4_RESULT_LOCKTYPE_POSIX.  A client may use
this to prevent midstream failures (e.g. appl locking successful during
delegation, fails after recall because the server may not support partial
subrange locks).  Is there a reason this posix indicator is in rflags
opposed to an attribute?


<Dave.Noveck wrote>
> You can add new flags to fields like the open rflags in
> a minor version.

My mistake, I did not find rflags in chpt 10 Minor Versioning.  I read only
attributes & compound are available for minor versions.




From owner-nfsv4-wg@sunroof.eng.sun.com  Fri Feb  7 16:21:18 2003
Received: from patan.sun.com (patan.Sun.COM [192.18.98.43])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA21769
	for <nfsv4-archive@lists.ietf.org>; Fri, 7 Feb 2003 16:21:18 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by patan.sun.com (8.9.3+Sun/8.9.3) with ESMTP id OAA10113;
	Fri, 7 Feb 2003 14:22:14 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h17LLWVL015596;
	Fri, 7 Feb 2003 13:21:32 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h17LLIQb012438
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Fri, 7 Feb 2003 13:21:18 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h17LLI6T012437
	for nfsv4-wg-dist; Fri, 7 Feb 2003 13:21:18 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail1mpk.Eng.Sun.COM (engmail1mpk [129.146.1.45])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h17LLGQb012428
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 7 Feb 2003 13:21:16 -0800 (PST)
Received: from nwkea-mail-1.sun.com ([192.18.42.13])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h17LLPVK010105
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 7 Feb 2003 13:21:25 -0800 (PST)
Received: from mxic1.corp.emc.com ([128.222.32.10])
	by nwkea-mail-1.sun.com (8.9.3+Sun/8.9.3) with ESMTP id NAA01742
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 7 Feb 2003 13:21:19 -0800 (PST)
From: Dai_Peng@emc.com
Received: by mxic1.corp.emc.com with Internet Mail Service (5.5.2653.19)
	id <1KDYNM2V>; Fri, 7 Feb 2003 16:21:19 -0500
Message-ID: <6335CBB2F69AD411AD3100D0B7BA38E30CF0BF65@CORPUSMX2>
To: nfsv4-wg@sunroof.eng.sun.com
Subject: LOOKUPP and NFS4ERR_WRONGSEC
Date: Fri, 7 Feb 2003 16:20:44 -0500 
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

As far as I understand, NFS4ERR_WRONGSEC is returned to the client
when a compound request crosses into an export with incompatible security
requirements. For example, in the following scenario, putfh [/foo/bar];
lookup "baz"
will cause the error to be returned.

  /foo  <-- auth_unix
   |
  /foo/bar
   |
  /foo/bar/baz  <-- krb5

Using the same example, it seems that going the opposite direction using
LOOKUPP would have the same problem. However, the spec did not include
NFS4ERR_WRONGSEC as a possible error code for LOOKUPP. Is this an
oversight or did I miss something?

Thanks
Peng


From owner-nfsv4-wg@sunroof.eng.sun.com  Fri Feb  7 16:26:13 2003
Received: from pheriche.sun.com (pheriche.sun.com [192.18.98.34])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA21872
	for <nfsv4-archive@lists.ietf.org>; Fri, 7 Feb 2003 16:26:12 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by pheriche.sun.com (8.9.3+Sun/8.9.3) with ESMTP id OAA22675;
	Fri, 7 Feb 2003 14:26:59 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h17LQeVL017071;
	Fri, 7 Feb 2003 13:26:40 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h17LQSQb012466
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Fri, 7 Feb 2003 13:26:28 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h17LQSOL012465
	for nfsv4-wg-dist; Fri, 7 Feb 2003 13:26:28 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from centralmail2brm.Central.Sun.COM (centralmail2brm.Central.Sun.COM [129.147.62.14])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h17LQQQb012458
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 7 Feb 2003 13:26:26 -0800 (PST)
Received: from dhcp-uaus08-128-228.Central.Sun.COM (dhcp-uaus08-128-228.Central.Sun.COM [129.153.128.228])
	by centralmail2brm.Central.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h17LQYln009238
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 7 Feb 2003 14:26:35 -0700 (MST)
Received: from dhcp-uaus08-128-228.Central.Sun.COM (localhost [127.0.0.1])
	by dhcp-uaus08-128-228.Central.Sun.COM (8.12.7+Sun/8.12.7) with ESMTP id h17LOFfM100541
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 7 Feb 2003 15:24:15 -0600 (CST)
Received: (from shepler@localhost)
	by dhcp-uaus08-128-228.Central.Sun.COM (8.12.7+Sun/8.12.7/Submit) id h17LOF9I100540
	for nfsv4-wg@sunroof.eng.sun.com; Fri, 7 Feb 2003 15:24:15 -0600 (CST)
Date: Fri, 7 Feb 2003 15:24:15 -0600
From: Spencer Shepler <shepler@eng.sun.com>
To: nfsv4-wg@sunroof.eng.sun.com
Subject: Re: LOOKUPP and NFS4ERR_WRONGSEC
Message-ID: <20030207212415.GK100365@dhcp-uaus08-128-228.central.sun.com>
Reply-To: spencer.shepler@sun.com
Mail-Followup-To: Spencer Shepler <shepler@eng.sun.com>,
	nfsv4-wg@sunroof.eng.sun.com
References: <6335CBB2F69AD411AD3100D0B7BA38E30CF0BF65@CORPUSMX2>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <6335CBB2F69AD411AD3100D0B7BA38E30CF0BF65@CORPUSMX2>
User-Agent: Mutt/1.4i
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

On Fri, Dai_Peng@emc.com wrote:
> As far as I understand, NFS4ERR_WRONGSEC is returned to the client
> when a compound request crosses into an export with incompatible security
> requirements. For example, in the following scenario, putfh [/foo/bar];
> lookup "baz"
> will cause the error to be returned.
> 
>   /foo  <-- auth_unix
>    |
>   /foo/bar
>    |
>   /foo/bar/baz  <-- krb5
> 
> Using the same example, it seems that going the opposite direction using
> LOOKUPP would have the same problem. However, the spec did not include
> NFS4ERR_WRONGSEC as a possible error code for LOOKUPP. Is this an
> oversight or did I miss something?

Not an oversight.  The assumption is that if a object in the server's
namespace requires a particular security mechanism for access that all
ancestors of that object will accept the same security mechanism.
This allows a client to use a single security mechanism while
traversing the namespace to that node.  It also avoids the problem
that you thought might exist.

-- 
Spencer



From owner-nfsv4-wg@sunroof.eng.sun.com  Fri Feb  7 16:49:17 2003
Received: from nwkea-mail-1.sun.com (nwkea-mail-1.sun.com [192.18.42.13])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA22483
	for <nfsv4-archive@lists.ietf.org>; Fri, 7 Feb 2003 16:49:16 -0500 (EST)
Received: from engmail1mpk.Eng.Sun.COM ([129.146.1.45])
	by nwkea-mail-1.sun.com (8.9.3+Sun/8.9.3) with ESMTP id NAA18070;
	Fri, 7 Feb 2003 13:45:37 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h17LixVK017415;
	Fri, 7 Feb 2003 13:44:59 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h17LilQb012513
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Fri, 7 Feb 2003 13:44:47 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h17LilDI012512
	for nfsv4-wg-dist; Fri, 7 Feb 2003 13:44:47 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail2sun.Eng.Sun.COM (engmail2sun [129.144.134.19])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h17LiiQb012505
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 7 Feb 2003 13:44:44 -0800 (PST)
Received: from lukla.Sun.COM (lukla.Central.Sun.COM [129.147.5.31])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h17LirVL022440
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 7 Feb 2003 13:44:53 -0800 (PST)
Received: from tor01x3.hcl.com (torpsi.hcl.com [199.71.120.66])
	by lukla.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id OAA17801
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 7 Feb 2003 14:44:45 -0700 (MST)
Received: from av0012 (av0012.hcl.com [10.1.42.241]) by tor01x3.hcl.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13)
	id DC3AHD5B; Fri, 7 Feb 2003 16:44:41 -0500
Received: FROM mhoutside.hcl.com BY av0012 ; Fri Feb 07 16:45:07 2003 -0500
Received: from sergeylt (sergeylt.hcl.com [10.1.14.156])
	by mhoutside.hcl.com (8.11.2/8.11.2) with ESMTP id h17LilV00838;
	Fri, 7 Feb 2003 16:44:47 -0500 (EST)
From: "Sergey Klyushin" <sergey.klyushin@hummingbird.com>
To: <spencer.shepler@sun.com>, <nfsv4-wg@sunroof.eng.sun.com>
Subject: Definitions of utf8str_* in draft-ietf-nfsv4-rfc3010bis-05
Date: Fri, 7 Feb 2003 16:44:41 -0500
Message-ID: <002801c2cef2$1eefe180$9c0e010a@hcl.com>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook, Build 10.0.4510
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
In-Reply-To: <20030124151406.GA100497@shepler.eng.sun.com>
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>
Content-Transfer-Encoding: 7bit

Hello

Finally I've decided to update my nfs4_prot.h file from version 1.119 to
version 1.120 of nfs4_prot.x (http://www.nfsv4.org/nfs4_prot.x)
and http://www.ietf.org/internet-drafts/draft-ietf-nfsv4-rfc3010bis-05.txt

I was really surprised with definition of utf8str_cis, utf8str_cs and
utf8str_mixed.

draft-ietf-nfsv4-rfc3010bis-05.txt: Paragraph 2.1.  Basic Data Types

   utf8string      typedef opaque          utf8string<>;
                   UTF-8 encoding for strings

   utf8str_cis     typedef opaque          utf8str_cis<>;
                   Case-insensitive UTF-8 string

   utf8str_cs      typedef opaque          utf8str_cs<>;
                   Case-sensitive UTF-8 string

   utf8str_mixed   typedef opaque          utf8str_mixed<>;
                   UTF-8 strings with a case sensitive prefix and
                   a case insensitive suffix.

But later in Paragraph 18.  RPC definition file 
and in http://www.nfsv4.org/nfs4_prot.x:

   typedef opaque          utf8string<>;
   typedef utf8string      utf8str_cis<>;
   typedef utf8string      utf8str_cs<>;
   typedef utf8string      utf8str_mixed<>;

I believe that definitions in Paragraph 18 and in
http://www.nfsv4.org/nfs4_prot.x are wrong and MUST be
   typedef opaque      utf8string<>;
   typedef opaque      utf8str_cis<>;
   typedef opaque      utf8str_cs<>;
   typedef opaque      utf8str_mixed<>;
(or I really missed something)

I hope it's not "too late" to change draft-ietf-nfsv4-rfc3010bis-05.txt.

Thanks,
Sergey




From owner-nfsv4-wg@sunroof.eng.sun.com  Fri Feb  7 17:06:55 2003
Received: from pheriche.sun.com (pheriche.sun.com [192.18.98.34])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id RAA23016
	for <nfsv4-archive@lists.ietf.org>; Fri, 7 Feb 2003 17:06:55 -0500 (EST)
Received: from engmail1mpk.Eng.Sun.COM ([129.146.1.45])
	by pheriche.sun.com (8.9.3+Sun/8.9.3) with ESMTP id PAA17322;
	Fri, 7 Feb 2003 15:08:18 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h17M79VK024509;
	Fri, 7 Feb 2003 14:07:09 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h17M6vQb012553
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Fri, 7 Feb 2003 14:06:57 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h17M6v0K012552
	for nfsv4-wg-dist; Fri, 7 Feb 2003 14:06:57 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail2sun.Eng.Sun.COM (engmail2sun [129.144.134.19])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h17M6tQb012545
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 7 Feb 2003 14:06:55 -0800 (PST)
Received: from pheriche.sun.com (pheriche.Central.Sun.COM [129.147.5.34])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h17M74VL029334
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 7 Feb 2003 14:07:04 -0800 (PST)
Received: from mx01.netapp.com (mx01.netapp.com [198.95.226.53])
	by pheriche.sun.com (8.9.3+Sun/8.9.3) with ESMTP id PAA16661;
	Fri, 7 Feb 2003 15:06:58 -0700 (MST)
Received: from frejya.corp.netapp.com (frejya [10.10.20.91])
	by mx01.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h17M6vYW012650;
	Fri, 7 Feb 2003 14:06:57 -0800 (PST)
Received: from tahoe.corp.netapp.com (tahoe.corp.netapp.com [10.10.22.112])
	by frejya.corp.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h17M6vv6000149;
	Fri, 7 Feb 2003 14:06:57 -0800 (PST)
Received: from eisler.com (10.58.48.120 [10.58.48.120]) by tahoe.corp.netapp.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21)
	id 1JT75K0P; Fri, 7 Feb 2003 14:06:48 -0800
Message-ID: <3E442DF7.8080100@eisler.com>
Date: Fri, 07 Feb 2003 14:06:47 -0800
From: Mike Eisler <mike@eisler.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:0.9.4.1) Gecko/20020508 Netscape6/6.2.3
X-Accept-Language: en-us
MIME-Version: 1.0
To: Sergey Klyushin <sergey.klyushin@hummingbird.com>
CC: spencer.shepler@sun.com, nfsv4-wg@sunroof.eng.sun.com
Subject: Re: Definitions of utf8str_* in draft-ietf-nfsv4-rfc3010bis-05
References: <002801c2cef2$1eefe180$9c0e010a@hcl.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>
Content-Transfer-Encoding: 7bit

Sergey,

Yes the .x file is wrong.

Dave Noveck noticed this a week or so ago, and beepy gave IESG a heads up.
Either we will spin another i-d, or fix it when the RFC editor gives the 
authors the
final draft to review. Thx.

    -mre

Sergey Klyushin wrote:

>Hello
>
>Finally I've decided to update my nfs4_prot.h file from version 1.119 to
>version 1.120 of nfs4_prot.x (http://www.nfsv4.org/nfs4_prot.x)
>and http://www.ietf.org/internet-drafts/draft-ietf-nfsv4-rfc3010bis-05.txt
>
>I was really surprised with definition of utf8str_cis, utf8str_cs and
>utf8str_mixed.
>
>draft-ietf-nfsv4-rfc3010bis-05.txt: Paragraph 2.1.  Basic Data Types
>
>   utf8string      typedef opaque          utf8string<>;
>                   UTF-8 encoding for strings
>
>   utf8str_cis     typedef opaque          utf8str_cis<>;
>                   Case-insensitive UTF-8 string
>
>   utf8str_cs      typedef opaque          utf8str_cs<>;
>                   Case-sensitive UTF-8 string
>
>   utf8str_mixed   typedef opaque          utf8str_mixed<>;
>                   UTF-8 strings with a case sensitive prefix and
>                   a case insensitive suffix.
>
>But later in Paragraph 18.  RPC definition file 
>and in http://www.nfsv4.org/nfs4_prot.x:
>
>   typedef opaque          utf8string<>;
>   typedef utf8string      utf8str_cis<>;
>   typedef utf8string      utf8str_cs<>;
>   typedef utf8string      utf8str_mixed<>;
>
>I believe that definitions in Paragraph 18 and in
>http://www.nfsv4.org/nfs4_prot.x are wrong and MUST be
>   typedef opaque      utf8string<>;
>   typedef opaque      utf8str_cis<>;
>   typedef opaque      utf8str_cs<>;
>   typedef opaque      utf8str_mixed<>;
>(or I really missed something)
>
>I hope it's not "too late" to change draft-ietf-nfsv4-rfc3010bis-05.txt.
>
>Thanks,
>Sergey
>
>





From owner-nfsv4-wg@sunroof.eng.sun.com  Fri Feb  7 17:10:05 2003
Received: from nwkea-mail-2.sun.com (nwkea-mail-2.sun.com [192.18.42.14])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id RAA23112
	for <nfsv4-archive@lists.ietf.org>; Fri, 7 Feb 2003 17:10:04 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by nwkea-mail-2.sun.com (8.9.3+Sun/8.9.3) with ESMTP id OAA14218;
	Fri, 7 Feb 2003 14:05:25 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h17M4fVL028701;
	Fri, 7 Feb 2003 14:04:41 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h17M4UQb012539
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Fri, 7 Feb 2003 14:04:30 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h17M4U2A012538
	for nfsv4-wg-dist; Fri, 7 Feb 2003 14:04:30 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from centralmail1brm.Central.Sun.COM (centralmail1brm.Central.Sun.COM [129.147.62.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h17M4RQb012531
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 7 Feb 2003 14:04:27 -0800 (PST)
Received: from dhcp-uaus08-128-228.Central.Sun.COM (dhcp-uaus08-128-228.Central.Sun.COM [129.153.128.228])
	by centralmail1brm.Central.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h17M4a7L013344
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 7 Feb 2003 15:04:36 -0700 (MST)
Received: from dhcp-uaus08-128-228.Central.Sun.COM (localhost [127.0.0.1])
	by dhcp-uaus08-128-228.Central.Sun.COM (8.12.7+Sun/8.12.7) with ESMTP id h17M2GfM100597
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 7 Feb 2003 16:02:16 -0600 (CST)
Received: (from shepler@localhost)
	by dhcp-uaus08-128-228.Central.Sun.COM (8.12.7+Sun/8.12.7/Submit) id h17M2GKl100596
	for nfsv4-wg@sunroof.eng.sun.com; Fri, 7 Feb 2003 16:02:16 -0600 (CST)
Date: Fri, 7 Feb 2003 16:02:16 -0600
From: Spencer Shepler <shepler@eng.sun.com>
To: nfsv4-wg@sunroof.eng.sun.com
Subject: Re: Definitions of utf8str_* in draft-ietf-nfsv4-rfc3010bis-05
Message-ID: <20030207220216.GO100365@dhcp-uaus08-128-228.central.sun.com>
Reply-To: spencer.shepler@sun.com
Mail-Followup-To: Spencer Shepler <shepler@eng.sun.com>,
	nfsv4-wg@sunroof.eng.sun.com
References: <20030124151406.GA100497@shepler.eng.sun.com> <002801c2cef2$1eefe180$9c0e010a@hcl.com>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="2B/JsCI69OhZNC5r"
Content-Disposition: inline
In-Reply-To: <002801c2cef2$1eefe180$9c0e010a@hcl.com>
User-Agent: Mutt/1.4i
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

--2B/JsCI69OhZNC5r
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline


Sergey,
  Thanks for pointing this out.  Someone else recently raised this
issue as well in private mail and I have actually made updates such
that the I-D will be updated during the final comments period provided
by the RFC editor.
  For those that are interested, I have attached the updated
nfs4_prot.x.  Sorry about the spam but I want to make sure everyone
has a copy.

Spencer

On Fri, Sergey Klyushin wrote:
> Hello
> 
> Finally I've decided to update my nfs4_prot.h file from version 1.119 to
> version 1.120 of nfs4_prot.x (http://www.nfsv4.org/nfs4_prot.x)
> and http://www.ietf.org/internet-drafts/draft-ietf-nfsv4-rfc3010bis-05.txt
> 
> I was really surprised with definition of utf8str_cis, utf8str_cs and
> utf8str_mixed.
> 
> draft-ietf-nfsv4-rfc3010bis-05.txt: Paragraph 2.1.  Basic Data Types
> 
>    utf8string      typedef opaque          utf8string<>;
>                    UTF-8 encoding for strings
> 
>    utf8str_cis     typedef opaque          utf8str_cis<>;
>                    Case-insensitive UTF-8 string
> 
>    utf8str_cs      typedef opaque          utf8str_cs<>;
>                    Case-sensitive UTF-8 string
> 
>    utf8str_mixed   typedef opaque          utf8str_mixed<>;
>                    UTF-8 strings with a case sensitive prefix and
>                    a case insensitive suffix.
> 
> But later in Paragraph 18.  RPC definition file 
> and in http://www.nfsv4.org/nfs4_prot.x:
> 
>    typedef opaque          utf8string<>;
>    typedef utf8string      utf8str_cis<>;
>    typedef utf8string      utf8str_cs<>;
>    typedef utf8string      utf8str_mixed<>;
> 
> I believe that definitions in Paragraph 18 and in
> http://www.nfsv4.org/nfs4_prot.x are wrong and MUST be
>    typedef opaque      utf8string<>;
>    typedef opaque      utf8str_cis<>;
>    typedef opaque      utf8str_cs<>;
>    typedef opaque      utf8str_mixed<>;
> (or I really missed something)
> 
> I hope it's not "too late" to change draft-ietf-nfsv4-rfc3010bis-05.txt.
> 
> Thanks,
> Sergey
> 
> 

-- 
Spencer


--2B/JsCI69OhZNC5r
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="nfs4_prot.x"

/*
 *  Copyright (C) The Internet Society (1998-2003).
 *  All Rights Reserved.
 */

/*
 *	nfs4_prot.x
 *
 */

%#pragma ident	"@(#)nfs4_prot.x	1.122"

/*
 * Basic typedefs for RFC 1832 data type definitions
 */
typedef int		int32_t;
typedef unsigned int	uint32_t;
typedef hyper		int64_t;
typedef unsigned hyper	uint64_t;

/*
 * Sizes
 */
const NFS4_FHSIZE		= 128;
const NFS4_VERIFIER_SIZE	= 8;
const NFS4_OPAQUE_LIMIT		= 1024;

/*
 * File types
 */
enum nfs_ftype4 {
	NF4REG		= 1,	/* Regular File */
	NF4DIR		= 2,	/* Directory */
	NF4BLK		= 3,	/* Special File - block device */
	NF4CHR		= 4,	/* Special File - character device */
	NF4LNK		= 5,	/* Symbolic Link */
	NF4SOCK		= 6,	/* Special File - socket */
	NF4FIFO		= 7,	/* Special File - fifo */
	NF4ATTRDIR	= 8,	/* Attribute Directory */
	NF4NAMEDATTR	= 9	/* Named Attribute */
};

/*
 * Error status
 */
enum nfsstat4 {
	NFS4_OK			= 0,    /* everything is okay      */
	NFS4ERR_PERM		= 1,    /* caller not privileged   */
	NFS4ERR_NOENT		= 2,    /* no such file/directory  */
	NFS4ERR_IO		= 5,    /* hard I/O error          */
	NFS4ERR_NXIO		= 6,    /* no such device          */
	NFS4ERR_ACCESS		= 13,   /* access denied           */
	NFS4ERR_EXIST		= 17,   /* file already exists     */
	NFS4ERR_XDEV		= 18,   /* different filesystems   */
	/* Unused/reserved        19 */
	NFS4ERR_NOTDIR		= 20,   /* should be a directory   */
	NFS4ERR_ISDIR		= 21,   /* should not be directory */
	NFS4ERR_INVAL		= 22,   /* invalid argument        */
	NFS4ERR_FBIG		= 27,   /* file exceeds server max */
	NFS4ERR_NOSPC		= 28,   /* no space on filesystem  */
	NFS4ERR_ROFS		= 30,   /* read-only filesystem    */
	NFS4ERR_MLINK		= 31,   /* too many hard links     */
	NFS4ERR_NAMETOOLONG	= 63,   /* name exceeds server max */
	NFS4ERR_NOTEMPTY	= 66,   /* directory not empty     */
	NFS4ERR_DQUOT		= 69,   /* hard quota limit reached*/
	NFS4ERR_STALE		= 70,   /* file no longer exists   */
	NFS4ERR_BADHANDLE	= 10001,/* Illegal filehandle      */
	NFS4ERR_BAD_COOKIE	= 10003,/* READDIR cookie is stale */
	NFS4ERR_NOTSUPP		= 10004,/* operation not supported */
	NFS4ERR_TOOSMALL	= 10005,/* response limit exceeded */
	NFS4ERR_SERVERFAULT	= 10006,/* undefined server error  */
	NFS4ERR_BADTYPE		= 10007,/* type invalid for CREATE */
	NFS4ERR_DELAY		= 10008,/* file "busy" - retry     */
	NFS4ERR_SAME		= 10009,/* nverify says attrs same */
	NFS4ERR_DENIED		= 10010,/* lock unavailable	   */
	NFS4ERR_EXPIRED		= 10011,/* lock lease expired	   */
	NFS4ERR_LOCKED		= 10012,/* I/O failed due to lock  */
	NFS4ERR_GRACE		= 10013,/* in grace period	   */
	NFS4ERR_FHEXPIRED	= 10014,/* filehandle expired	   */
	NFS4ERR_SHARE_DENIED	= 10015,/* share reserve denied	   */
	NFS4ERR_WRONGSEC	= 10016,/* wrong security flavor   */
	NFS4ERR_CLID_INUSE	= 10017,/* clientid in use	   */
	NFS4ERR_RESOURCE	= 10018,/* resource exhaustion	   */
	NFS4ERR_MOVED		= 10019,/* filesystem relocated	   */
	NFS4ERR_NOFILEHANDLE	= 10020,/* current FH is not set   */
	NFS4ERR_MINOR_VERS_MISMATCH = 10021,/* minor vers not supp */
	NFS4ERR_STALE_CLIENTID	= 10022,/* server has rebooted     */
	NFS4ERR_STALE_STATEID	= 10023,/* server has rebooted     */
	NFS4ERR_OLD_STATEID	= 10024,/* state is out of sync    */
	NFS4ERR_BAD_STATEID	= 10025,/* incorrect stateid       */
	NFS4ERR_BAD_SEQID	= 10026,/* request is out of seq.  */
	NFS4ERR_NOT_SAME	= 10027,/* verify - attrs not same */
	NFS4ERR_LOCK_RANGE	= 10028,/* lock range not supported*/
	NFS4ERR_SYMLINK		= 10029,/* should be file/directory*/
	NFS4ERR_RESTOREFH	= 10030,/* no saved filehandle     */
	NFS4ERR_LEASE_MOVED	= 10031,/* some filesystem moved   */
	NFS4ERR_ATTRNOTSUPP	= 10032,/* recommended attr not sup*/
	NFS4ERR_NO_GRACE	= 10033,/* reclaim outside of grace*/
	NFS4ERR_RECLAIM_BAD	= 10034,/* reclaim error at server */
	NFS4ERR_RECLAIM_CONFLICT = 10035,/* conflict on reclaim    */
	NFS4ERR_BADXDR		= 10036,/* XDR decode failed       */
	NFS4ERR_LOCKS_HELD	= 10037,/* file locks held at CLOSE*/
	NFS4ERR_OPENMODE	= 10038,/* conflict in OPEN and I/O*/
	NFS4ERR_BADOWNER	= 10039,/* owner translation bad   */
	NFS4ERR_BADCHAR		= 10040,/* utf-8 char not supported*/
	NFS4ERR_BADNAME		= 10041,/* name not supported      */
	NFS4ERR_BAD_RANGE	= 10042,/* lock range not supported*/
	NFS4ERR_LOCK_NOTSUPP	= 10043,/* no atomic up/downgrade  */
	NFS4ERR_OP_ILLEGAL	= 10044,/* undefined operation     */
	NFS4ERR_DEADLOCK	= 10045,/* file locking deadlock   */
	NFS4ERR_FILE_OPEN	= 10046,/* open file blocks op.    */
	NFS4ERR_ADMIN_REVOKED	= 10047,/* lockowner state revoked */
	NFS4ERR_CB_PATH_DOWN    = 10048 /* callback path down      */
};

/*
 * Basic data types
 */
typedef uint32_t	bitmap4<>;
typedef uint64_t	offset4;
typedef uint32_t	count4;
typedef	uint64_t	length4;
typedef uint64_t	clientid4;
typedef uint32_t	seqid4;
typedef opaque		utf8string<>;
typedef utf8string	utf8str_cis;
typedef utf8string	utf8str_cs;
typedef utf8string	utf8str_mixed;
typedef utf8str_cs	component4;
typedef	component4	pathname4<>;
typedef uint64_t	nfs_lockid4;
typedef	uint64_t	nfs_cookie4;
typedef	utf8str_cs	linktext4;
typedef opaque		sec_oid4<>;
typedef uint32_t	qop4;
typedef	uint32_t	mode4;
typedef	uint64_t	changeid4;
typedef opaque		verifier4[NFS4_VERIFIER_SIZE];

/* 
 * Timeval
 */
struct nfstime4 {
	int64_t		seconds;
	uint32_t	nseconds;
};

enum time_how4 {
	SET_TO_SERVER_TIME4 = 0,
	SET_TO_CLIENT_TIME4 = 1
};

union settime4 switch (time_how4 set_it) {
 case SET_TO_CLIENT_TIME4:
	 nfstime4	time;
 default:
	 void;
};

/*
 * File access handle
 */
typedef	opaque	nfs_fh4<NFS4_FHSIZE>;


/*
 * File attribute definitions
 */

/*
 * FSID structure for major/minor
 */
struct fsid4 {
	uint64_t	major;
	uint64_t	minor;
};

/*
 * Filesystem locations attribute for relocation/migration
 */
struct fs_location4 {
	utf8str_cis	server<>;
	pathname4	rootpath;
};

struct fs_locations4 {
	pathname4	fs_root;
	fs_location4	locations<>;
};

/*
 * Various Access Control Entry definitions
 */

/*
 * Mask that indicates which Access Control Entries are supported.
 * Values for the fattr4_aclsupport attribute.
 */
const ACL4_SUPPORT_ALLOW_ACL	= 0x00000001;
const ACL4_SUPPORT_DENY_ACL	= 0x00000002;
const ACL4_SUPPORT_AUDIT_ACL	= 0x00000004;
const ACL4_SUPPORT_ALARM_ACL	= 0x00000008;


typedef	uint32_t	acetype4;

/*
 * acetype4 values, others can be added as needed.
 */
const ACE4_ACCESS_ALLOWED_ACE_TYPE	= 0x00000000;
const ACE4_ACCESS_DENIED_ACE_TYPE	= 0x00000001;
const ACE4_SYSTEM_AUDIT_ACE_TYPE	= 0x00000002;
const ACE4_SYSTEM_ALARM_ACE_TYPE	= 0x00000003;


/*
 * ACE flag
 */
typedef uint32_t aceflag4;

/*
 * ACE flag values
 */
const ACE4_FILE_INHERIT_ACE		= 0x00000001;
const ACE4_DIRECTORY_INHERIT_ACE	= 0x00000002;
const ACE4_NO_PROPAGATE_INHERIT_ACE	= 0x00000004;
const ACE4_INHERIT_ONLY_ACE		= 0x00000008;
const ACE4_SUCCESSFUL_ACCESS_ACE_FLAG	= 0x00000010;
const ACE4_FAILED_ACCESS_ACE_FLAG	= 0x00000020;
const ACE4_IDENTIFIER_GROUP		= 0x00000040;


/*
 * ACE mask
 */
typedef uint32_t	acemask4;

/*
 * ACE mask values
 */
const ACE4_READ_DATA		= 0x00000001;
const ACE4_LIST_DIRECTORY	= 0x00000001;
const ACE4_WRITE_DATA		= 0x00000002;
const ACE4_ADD_FILE		= 0x00000002;
const ACE4_APPEND_DATA		= 0x00000004;
const ACE4_ADD_SUBDIRECTORY	= 0x00000004;
const ACE4_READ_NAMED_ATTRS	= 0x00000008;
const ACE4_WRITE_NAMED_ATTRS	= 0x00000010;
const ACE4_EXECUTE		= 0x00000020;
const ACE4_DELETE_CHILD		= 0x00000040;
const ACE4_READ_ATTRIBUTES	= 0x00000080;
const ACE4_WRITE_ATTRIBUTES	= 0x00000100;

const ACE4_DELETE		= 0x00010000;
const ACE4_READ_ACL		= 0x00020000;
const ACE4_WRITE_ACL		= 0x00040000;
const ACE4_WRITE_OWNER		= 0x00080000;
const ACE4_SYNCHRONIZE		= 0x00100000;

/*
 * ACE4_GENERIC_READ -- defined as combination of
 *	ACE4_READ_ACL |
 *	ACE4_READ_DATA |
 *	ACE4_READ_ATTRIBUTES |
 *	ACE4_SYNCHRONIZE
 */

const ACE4_GENERIC_READ	= 0x00120081;

/*
 * ACE4_GENERIC_WRITE -- defined as combination of
 *	ACE4_READ_ACL |
 *	ACE4_WRITE_DATA |
 *	ACE4_WRITE_ATTRIBUTES |
 *	ACE4_WRITE_ACL |
 *	ACE4_APPEND_DATA |
 *	ACE4_SYNCHRONIZE
 */
const ACE4_GENERIC_WRITE = 0x00160106;


/*
 * ACE4_GENERIC_EXECUTE -- defined as combination of
 *	ACE4_READ_ACL
 *	ACE4_READ_ATTRIBUTES
 *	ACE4_EXECUTE
 *	ACE4_SYNCHRONIZE
 */
const ACE4_GENERIC_EXECUTE = 0x001200A0;


/*
 * Access Control Entry definition
 */
struct nfsace4 {
	acetype4	type;
	aceflag4	flag;
	acemask4	access_mask;
	utf8str_mixed	who;
};

/*
 * Field definitions for the fattr4_mode attribute
 */
const MODE4_SUID = 0x800;  /* set user id on execution */
const MODE4_SGID = 0x400;  /* set group id on execution */
const MODE4_SVTX = 0x200;  /* save text even after use */
const MODE4_RUSR = 0x100;  /* read permission: owner */
const MODE4_WUSR = 0x080;  /* write permission: owner */
const MODE4_XUSR = 0x040;  /* execute permission: owner */
const MODE4_RGRP = 0x020;  /* read permission: group */
const MODE4_WGRP = 0x010;  /* write permission: group */
const MODE4_XGRP = 0x008;  /* execute permission: group */
const MODE4_ROTH = 0x004;  /* read permission: other */
const MODE4_WOTH = 0x002;  /* write permission: other */
const MODE4_XOTH = 0x001;  /* execute permission: other */

/*
 * Special data/attribute associated with
 * file types NF4BLK and NF4CHR.
 */
struct specdata4 {
	uint32_t	specdata1;	/* major device number */
	uint32_t	specdata2;	/* minor device number */
};

/*
 * Values for fattr4_fh_expire_type
 */
const	FH4_PERSISTENT		= 0x00000000;
const	FH4_NOEXPIRE_WITH_OPEN	= 0x00000001;
const	FH4_VOLATILE_ANY	= 0x00000002;
const	FH4_VOL_MIGRATION	= 0x00000004;
const	FH4_VOL_RENAME		= 0x00000008;


typedef bitmap4		fattr4_supported_attrs;
typedef nfs_ftype4	fattr4_type;
typedef	uint32_t	fattr4_fh_expire_type;
typedef	changeid4	fattr4_change;
typedef uint64_t	fattr4_size;
typedef	bool		fattr4_link_support;
typedef	bool		fattr4_symlink_support;
typedef bool		fattr4_named_attr;
typedef fsid4		fattr4_fsid;
typedef	bool		fattr4_unique_handles;
typedef uint32_t	fattr4_lease_time;
typedef	nfsstat4	fattr4_rdattr_error;

typedef nfsace4		fattr4_acl<>;
typedef uint32_t	fattr4_aclsupport;
typedef	bool		fattr4_archive;
typedef	bool		fattr4_cansettime;
typedef	bool		fattr4_case_insensitive;
typedef	bool		fattr4_case_preserving;
typedef	bool		fattr4_chown_restricted;
typedef uint64_t	fattr4_fileid;
typedef uint64_t	fattr4_files_avail;
typedef nfs_fh4		fattr4_filehandle;
typedef uint64_t	fattr4_files_free;
typedef uint64_t	fattr4_files_total;
typedef fs_locations4	fattr4_fs_locations;
typedef bool		fattr4_hidden;
typedef bool		fattr4_homogeneous;
typedef uint64_t	fattr4_maxfilesize;
typedef uint32_t	fattr4_maxlink;
typedef uint32_t	fattr4_maxname;
typedef uint64_t	fattr4_maxread;
typedef uint64_t	fattr4_maxwrite;
typedef	utf8str_cs	fattr4_mimetype;
typedef mode4		fattr4_mode;
typedef uint64_t	fattr4_mounted_on_fileid;
typedef	bool		fattr4_no_trunc;
typedef	uint32_t	fattr4_numlinks;
typedef	utf8str_mixed	fattr4_owner;
typedef	utf8str_mixed	fattr4_owner_group;
typedef uint64_t	fattr4_quota_avail_hard;
typedef uint64_t	fattr4_quota_avail_soft;
typedef uint64_t	fattr4_quota_used;
typedef specdata4	fattr4_rawdev;
typedef uint64_t	fattr4_space_avail;
typedef uint64_t	fattr4_space_free;
typedef uint64_t	fattr4_space_total;
typedef uint64_t	fattr4_space_used;
typedef bool		fattr4_system;
typedef nfstime4	fattr4_time_access;
typedef settime4	fattr4_time_access_set;
typedef nfstime4	fattr4_time_backup;
typedef nfstime4	fattr4_time_create;
typedef nfstime4	fattr4_time_delta;
typedef nfstime4	fattr4_time_metadata;
typedef nfstime4	fattr4_time_modify;
typedef settime4	fattr4_time_modify_set;


/*
 * Mandatory Attributes
 */
const FATTR4_SUPPORTED_ATTRS	= 0;
const FATTR4_TYPE		= 1;
const FATTR4_FH_EXPIRE_TYPE	= 2;
const FATTR4_CHANGE		= 3;
const FATTR4_SIZE		= 4;
const FATTR4_LINK_SUPPORT	= 5;
const FATTR4_SYMLINK_SUPPORT	= 6;
const FATTR4_NAMED_ATTR		= 7;
const FATTR4_FSID		= 8;
const FATTR4_UNIQUE_HANDLES	= 9;
const FATTR4_LEASE_TIME		= 10;
const FATTR4_RDATTR_ERROR	= 11;
const FATTR4_FILEHANDLE		= 19;

/*
 * Recommended Attributes
 */
const FATTR4_ACL		= 12;
const FATTR4_ACLSUPPORT		= 13;
const FATTR4_ARCHIVE		= 14;
const FATTR4_CANSETTIME		= 15;
const FATTR4_CASE_INSENSITIVE	= 16;
const FATTR4_CASE_PRESERVING	= 17;
const FATTR4_CHOWN_RESTRICTED	= 18;
const FATTR4_FILEID		= 20;
const FATTR4_FILES_AVAIL	= 21;
const FATTR4_FILES_FREE		= 22;
const FATTR4_FILES_TOTAL	= 23;
const FATTR4_FS_LOCATIONS	= 24;
const FATTR4_HIDDEN		= 25;
const FATTR4_HOMOGENEOUS	= 26;
const FATTR4_MAXFILESIZE	= 27;
const FATTR4_MAXLINK		= 28;
const FATTR4_MAXNAME		= 29;
const FATTR4_MAXREAD		= 30;
const FATTR4_MAXWRITE		= 31;
const FATTR4_MIMETYPE		= 32;
const FATTR4_MODE		= 33;
const FATTR4_NO_TRUNC		= 34;
const FATTR4_NUMLINKS		= 35;
const FATTR4_OWNER		= 36;
const FATTR4_OWNER_GROUP	= 37;
const FATTR4_QUOTA_AVAIL_HARD	= 38;
const FATTR4_QUOTA_AVAIL_SOFT	= 39;
const FATTR4_QUOTA_USED		= 40;
const FATTR4_RAWDEV		= 41;
const FATTR4_SPACE_AVAIL	= 42;
const FATTR4_SPACE_FREE		= 43;
const FATTR4_SPACE_TOTAL	= 44;
const FATTR4_SPACE_USED		= 45;
const FATTR4_SYSTEM		= 46;
const FATTR4_TIME_ACCESS	= 47;
const FATTR4_TIME_ACCESS_SET	= 48;
const FATTR4_TIME_BACKUP	= 49;
const FATTR4_TIME_CREATE	= 50;
const FATTR4_TIME_DELTA		= 51;
const FATTR4_TIME_METADATA	= 52;
const FATTR4_TIME_MODIFY	= 53;
const FATTR4_TIME_MODIFY_SET	= 54;
const FATTR4_MOUNTED_ON_FILEID	= 55;

typedef	opaque	attrlist4<>;

/*
 * File attribute container
 */
struct fattr4 {
	bitmap4		attrmask;
	attrlist4	attr_vals;
};

/*
 * Change info for the client
 */
struct change_info4 {
	bool		atomic;
	changeid4	before;
	changeid4	after;
};

struct clientaddr4 {
	/* see struct rpcb in RFC 1833 */
	string r_netid<>;		/* network id */
	string r_addr<>;		/* universal address */
};

/*
 * Callback program info as provided by the client
 */
struct cb_client4 {
	uint32_t	cb_program;
	clientaddr4	cb_location;
};

/*
 * Stateid
 */
struct stateid4 {
	uint32_t	seqid;
	opaque		other[12];
};

/*
 * Client ID
 */
struct nfs_client_id4 {
	verifier4	verifier;
	opaque		id<NFS4_OPAQUE_LIMIT>;
};

struct open_owner4 {
	clientid4	clientid;
	opaque		owner<NFS4_OPAQUE_LIMIT>;
};

struct lock_owner4 {
	clientid4	clientid;
	opaque		owner<NFS4_OPAQUE_LIMIT>;
};

enum nfs_lock_type4 {
	READ_LT		= 1,
	WRITE_LT	= 2,
	READW_LT	= 3,	/* blocking read */
	WRITEW_LT	= 4	/* blocking write */
};

/*
 * ACCESS: Check access permission
 */
const ACCESS4_READ	= 0x00000001;
const ACCESS4_LOOKUP	= 0x00000002;
const ACCESS4_MODIFY	= 0x00000004;
const ACCESS4_EXTEND	= 0x00000008;
const ACCESS4_DELETE	= 0x00000010;
const ACCESS4_EXECUTE	= 0x00000020;

struct ACCESS4args {
	/* CURRENT_FH: object */
	uint32_t	access;
};

struct ACCESS4resok {
	uint32_t	supported;
	uint32_t	access;
};

union ACCESS4res switch (nfsstat4 status) {
 case NFS4_OK:
	 ACCESS4resok	resok4;
 default:
	 void;
};

/*
 * CLOSE: Close a file and release share reservations
 */
struct CLOSE4args {
	/* CURRENT_FH: object */
	seqid4		seqid;
	stateid4	open_stateid;
};

union CLOSE4res switch (nfsstat4 status) {
 case NFS4_OK:
	 stateid4	open_stateid;
 default:
	 void;
};

/*
 * COMMIT: Commit cached data on server to stable storage
 */
struct COMMIT4args {
	/* CURRENT_FH: file */
	offset4		offset;
	count4		count;
};

struct COMMIT4resok {
	verifier4	writeverf;
};


union COMMIT4res switch (nfsstat4 status) {
 case NFS4_OK:
	 COMMIT4resok	resok4;
 default:
	 void;
};

/*
 * CREATE: Create a non-regular file
 */
union createtype4 switch (nfs_ftype4 type) {
 case NF4LNK:
	 linktext4	linkdata;
 case NF4BLK:
 case NF4CHR:
	 specdata4	devdata;
 case NF4SOCK:
 case NF4FIFO:
 case NF4DIR:
	 void;
 default:
	 void;		/* server should return NFS4ERR_BADTYPE */
};

struct CREATE4args {
	/* CURRENT_FH: directory for creation */
	createtype4	objtype;
	component4	objname;
	fattr4		createattrs;
};

struct CREATE4resok {
	change_info4	cinfo;
	bitmap4		attrset;	/* attributes set */
};

union CREATE4res switch (nfsstat4 status) {
 case NFS4_OK:
	 CREATE4resok resok4;
 default:
	 void;
};

/*
 * DELEGPURGE: Purge Delegations Awaiting Recovery
 */
struct DELEGPURGE4args {
	clientid4	clientid;
};

struct DELEGPURGE4res {
	nfsstat4	status;
};

/*
 * DELEGRETURN: Return a delegation
 */
struct DELEGRETURN4args {
	/* CURRENT_FH: delegated file */
	stateid4	deleg_stateid;
};

struct DELEGRETURN4res {
	nfsstat4	status;
};

/*
 * GETATTR: Get file attributes
 */
struct GETATTR4args {
	/* CURRENT_FH: directory or file */
	bitmap4		attr_request;
};

struct GETATTR4resok {
	fattr4		obj_attributes;
};

union GETATTR4res switch (nfsstat4 status) {
 case NFS4_OK:
	 GETATTR4resok	resok4;
 default:
	 void;
};

/*
 * GETFH: Get current filehandle
 */
struct GETFH4resok {
	nfs_fh4		object;
};

union GETFH4res switch (nfsstat4 status) {
 case NFS4_OK:
	GETFH4resok	resok4;
 default:
	void;
};

/*
 * LINK: Create link to an object
 */
struct LINK4args {
	/* SAVED_FH: source object */
	/* CURRENT_FH: target directory */
	component4	newname;
};

struct LINK4resok {
	change_info4	cinfo;
};

union LINK4res switch (nfsstat4 status) {
 case NFS4_OK:
	 LINK4resok resok4;
 default:
	 void;
};

/*
 * For LOCK, transition from open_owner to new lock_owner
 */
struct open_to_lock_owner4 {
	seqid4		open_seqid;
	stateid4	open_stateid;
	seqid4		lock_seqid;
	lock_owner4	lock_owner;
};
	
/*
 * For LOCK, existing lock_owner continues to request file locks
 */
struct exist_lock_owner4 {
	stateid4	lock_stateid;
	seqid4		lock_seqid;
};

union locker4 switch (bool new_lock_owner) {
 case TRUE:
	open_to_lock_owner4	open_owner;
 case FALSE:
	exist_lock_owner4	lock_owner;
};

/*
 * LOCK/LOCKT/LOCKU: Record lock management
 */
struct LOCK4args {
	/* CURRENT_FH: file */
	nfs_lock_type4	locktype;
	bool		reclaim;
	offset4		offset;
	length4		length;
	locker4		locker;
};

struct LOCK4denied {
	offset4		offset;
	length4		length;
	nfs_lock_type4	locktype;
	lock_owner4	owner;
};

struct LOCK4resok {
	stateid4	lock_stateid;
};

union LOCK4res switch (nfsstat4 status) {
 case NFS4_OK:
	 LOCK4resok	resok4;
 case NFS4ERR_DENIED:
	 LOCK4denied	denied;
 default:
	 void;
};

struct LOCKT4args {
	/* CURRENT_FH: file */
	nfs_lock_type4	locktype;
	offset4		offset;
	length4		length;
	lock_owner4	owner;
};

union LOCKT4res switch (nfsstat4 status) {
 case NFS4ERR_DENIED:
	 LOCK4denied	denied;
 case NFS4_OK:
	 void;
 default:
	 void;
};

struct LOCKU4args {
	/* CURRENT_FH: file */
	nfs_lock_type4	locktype;
	seqid4		seqid;
	stateid4	lock_stateid;
	offset4		offset;
	length4		length;
};

union LOCKU4res switch (nfsstat4 status) {
 case	NFS4_OK:
	 stateid4	lock_stateid;
 default:
	 void;
};

/*
 * LOOKUP: Lookup filename
 */
struct LOOKUP4args {
	/* CURRENT_FH: directory */
	component4	objname;
};

struct LOOKUP4res {
	/* CURRENT_FH: object */
	nfsstat4	status;
};

/*
 * LOOKUPP: Lookup parent directory
 */
struct LOOKUPP4res {
	/* CURRENT_FH: directory */
	nfsstat4	status;
};

/*
 * NVERIFY: Verify attributes different
 */
struct NVERIFY4args {
	/* CURRENT_FH: object */
	fattr4		obj_attributes;
};

struct NVERIFY4res {
	nfsstat4	status;
};

/*
 * Various definitions for OPEN
 */
enum createmode4 {
	UNCHECKED4	= 0,
	GUARDED4	= 1,
	EXCLUSIVE4	= 2
};

union createhow4 switch (createmode4 mode) {
 case UNCHECKED4:
 case GUARDED4:
	 fattr4		createattrs;
 case EXCLUSIVE4:
	 verifier4	createverf;
};

enum opentype4 {
	OPEN4_NOCREATE	= 0,
	OPEN4_CREATE	= 1
};

union openflag4 switch (opentype4 opentype) {
 case OPEN4_CREATE:
	 createhow4	how;
 default:
	 void;
};

/* Next definitions used for OPEN delegation */
enum limit_by4 {
	NFS_LIMIT_SIZE		= 1,
	NFS_LIMIT_BLOCKS	= 2
	/* others as needed */
};

struct nfs_modified_limit4 {
	uint32_t	num_blocks;
	uint32_t	bytes_per_block;
};

union nfs_space_limit4 switch (limit_by4 limitby) {
 /* limit specified as file size */
 case NFS_LIMIT_SIZE:
	 uint64_t		filesize;
 /* limit specified by number of blocks */
 case NFS_LIMIT_BLOCKS:
	 nfs_modified_limit4	mod_blocks;
} ;

/*
 * Share Access and Deny constants for open argument
 */
const OPEN4_SHARE_ACCESS_READ	= 0x00000001;
const OPEN4_SHARE_ACCESS_WRITE	= 0x00000002;
const OPEN4_SHARE_ACCESS_BOTH	= 0x00000003;

const OPEN4_SHARE_DENY_NONE	= 0x00000000;
const OPEN4_SHARE_DENY_READ	= 0x00000001;
const OPEN4_SHARE_DENY_WRITE	= 0x00000002;
const OPEN4_SHARE_DENY_BOTH	= 0x00000003;

enum open_delegation_type4 {
	OPEN_DELEGATE_NONE	= 0,
	OPEN_DELEGATE_READ	= 1,
	OPEN_DELEGATE_WRITE	= 2
};
 
enum open_claim_type4 {
	CLAIM_NULL		= 0,
	CLAIM_PREVIOUS		= 1,
	CLAIM_DELEGATE_CUR	= 2,
	CLAIM_DELEGATE_PREV	= 3
};
 
struct open_claim_delegate_cur4 {
	stateid4	delegate_stateid;
	component4	file;
};

union open_claim4 switch (open_claim_type4 claim) {
 /*
  * No special rights to file. Ordinary OPEN of the specified file.
  */
 case CLAIM_NULL:
	/* CURRENT_FH: directory */
	component4	file;

 /*
  * Right to the file established by an open previous to server
  * reboot.  File identified by filehandle obtained at that time
  * rather than by name.
  */
 case CLAIM_PREVIOUS:
	/* CURRENT_FH: file being reclaimed */
	open_delegation_type4	delegate_type;

 /*
  * Right to file based on a delegation granted by the server.
  * File is specified by name.
  */
 case CLAIM_DELEGATE_CUR:
	/* CURRENT_FH: directory */
	open_claim_delegate_cur4	delegate_cur_info;
 
 /* Right to file based on a delegation granted to a previous boot
  * instance of the client.  File is specified by name.
  */
 case CLAIM_DELEGATE_PREV:
	 /* CURRENT_FH: directory */
	component4	file_delegate_prev;
};

/*
 * OPEN: Open a file, potentially receiving an open delegation
 */
struct OPEN4args {
	seqid4		seqid;
	uint32_t	share_access;
	uint32_t	share_deny;
	open_owner4	owner;
	openflag4	openhow;
	open_claim4	claim;
};

struct open_read_delegation4 {
	stateid4	stateid;	/* Stateid for delegation*/
	bool		recall;		/* Pre-recalled flag for
					   delegations obtained
					   by reclaim
					   (CLAIM_PREVIOUS) */
	nfsace4		permissions;	/* Defines users who don't
					   need an ACCESS call to
					   open for read */
};

struct open_write_delegation4 {
	stateid4	stateid;	/* Stateid for delegation */
	bool		recall;		/* Pre-recalled flag for
					   delegations obtained
					   by reclaim
					   (CLAIM_PREVIOUS) */
	nfs_space_limit4 space_limit;	/* Defines condition that
					   the client must check to
					   determine whether the
					   file needs to be flushed
					   to the server on close.
					   */
	nfsace4		permissions;	/* Defines users who don't
					   need an ACCESS call as
					   part of a delegated
					   open. */
};

union open_delegation4
switch (open_delegation_type4 delegation_type) {
	case OPEN_DELEGATE_NONE:
		void;
	case OPEN_DELEGATE_READ:
		open_read_delegation4 read;
	case OPEN_DELEGATE_WRITE:
		open_write_delegation4 write;
};

/*
 * Result flags
 */
/* Client must confirm open */
const OPEN4_RESULT_CONFIRM	= 0x00000002;
/* Type of file locking behavior at the server */
const OPEN4_RESULT_LOCKTYPE_POSIX = 0x00000004;

struct OPEN4resok {
	stateid4	stateid;	/* Stateid for open */
	change_info4	cinfo;		/* Directory Change Info */
	uint32_t	rflags;		/* Result flags */
	bitmap4		attrset;	/* attribute set for create*/
	open_delegation4 delegation;	/* Info on any open
					   delegation */
};

union OPEN4res switch (nfsstat4 status) {
 case NFS4_OK:
	/* CURRENT_FH: opened file */
	OPEN4resok	resok4;
 default:
	void;
};	

/*
 * OPENATTR: open named attributes directory
 */
struct OPENATTR4args {
	/* CURRENT_FH: object */
	bool	createdir;
};

struct OPENATTR4res {
	/* CURRENT_FH: named attr directory */
	nfsstat4	status;
};

/*
 * OPEN_CONFIRM: confirm the open
 */
struct OPEN_CONFIRM4args {
	/* CURRENT_FH: opened file */
	stateid4	open_stateid;
	seqid4		seqid;
};

struct OPEN_CONFIRM4resok {
	stateid4	open_stateid;
};

union OPEN_CONFIRM4res switch (nfsstat4 status) {
 case NFS4_OK:
	 OPEN_CONFIRM4resok	resok4;
 default:
	 void;
};

/*
 * OPEN_DOWNGRADE: downgrade the access/deny for a file
 */
struct OPEN_DOWNGRADE4args {
	/* CURRENT_FH: opened file */
	stateid4	open_stateid;
	seqid4		seqid;
	uint32_t	share_access;
	uint32_t	share_deny;
};

struct OPEN_DOWNGRADE4resok {
	stateid4	open_stateid;
};

union OPEN_DOWNGRADE4res switch(nfsstat4 status) {
 case NFS4_OK:
	OPEN_DOWNGRADE4resok	resok4;
 default:
	 void;
};

/*
 * PUTFH: Set current filehandle
 */
struct PUTFH4args {
	nfs_fh4		object;
};

struct PUTFH4res {
	/* CURRENT_FH: */
	nfsstat4	status;
};

/*
 * PUTPUBFH: Set public filehandle
 */
struct PUTPUBFH4res {
	/* CURRENT_FH: public fh */
	nfsstat4	status;
};

/*
 * PUTROOTFH: Set root filehandle
 */
struct PUTROOTFH4res {
	/* CURRENT_FH: root fh */
	nfsstat4	status;
};

/*
 * READ: Read from file
 */
struct READ4args {
	/* CURRENT_FH: file */
	stateid4	stateid;
	offset4		offset;
	count4		count;
};

struct READ4resok {
	bool		eof;
	opaque		data<>;
};

union READ4res switch (nfsstat4 status) {
 case NFS4_OK:
	 READ4resok	resok4;
 default:
	 void;
};

/*
 * READDIR: Read directory
 */
struct READDIR4args {
	/* CURRENT_FH: directory */
	nfs_cookie4	cookie;
	verifier4	cookieverf;
	count4		dircount;
	count4		maxcount;
	bitmap4		attr_request;
};

struct entry4 {
	nfs_cookie4	cookie;
	component4	name;
	fattr4		attrs;
	entry4		*nextentry;
};

struct dirlist4 {
	entry4		*entries;
	bool		eof;
};

struct READDIR4resok {
	verifier4	cookieverf;
	dirlist4	reply;
};


union READDIR4res switch (nfsstat4 status) {
 case NFS4_OK:
	 READDIR4resok	resok4;
 default:
	 void;
};


/*
 * READLINK: Read symbolic link
 */
struct READLINK4resok {
	linktext4	link;
};

union READLINK4res switch (nfsstat4 status) {
 case NFS4_OK:
	 READLINK4resok	resok4;
 default:
	 void;
};

/*
 * REMOVE: Remove filesystem object
 */
struct REMOVE4args {
	/* CURRENT_FH: directory */
	component4	target;
};

struct REMOVE4resok {
	change_info4	cinfo;
};

union REMOVE4res switch (nfsstat4 status) {
 case NFS4_OK:
	 REMOVE4resok	resok4;
 default:
	 void;
};

/*
 * RENAME: Rename directory entry
 */
struct RENAME4args {
	/* SAVED_FH: source directory */
	component4	oldname;
	/* CURRENT_FH: target directory */
	component4	newname;
};

struct RENAME4resok {
	change_info4	source_cinfo;
	change_info4	target_cinfo;
};

union RENAME4res switch (nfsstat4 status) {
 case NFS4_OK:
	RENAME4resok	resok4;
 default:
	void;
};

/*
 * RENEW: Renew a Lease
 */
struct RENEW4args {
	clientid4	clientid;
};

struct RENEW4res {
	nfsstat4	status;
};
	
/*
 * RESTOREFH: Restore saved filehandle
 */

struct RESTOREFH4res {
	/* CURRENT_FH: value of saved fh */
	nfsstat4	status;
};

/*
 * SAVEFH: Save current filehandle
 */
struct SAVEFH4res {
	/* SAVED_FH: value of current fh */
	nfsstat4	status;
};

/*
 * SECINFO: Obtain Available Security Mechanisms
 */
struct SECINFO4args {
	/* CURRENT_FH: directory */
	component4	name;
};

/*
 * From RFC 2203
 */
enum rpc_gss_svc_t {
	RPC_GSS_SVC_NONE	= 1,
	RPC_GSS_SVC_INTEGRITY	= 2,
	RPC_GSS_SVC_PRIVACY	= 3
};

struct rpcsec_gss_info {
	sec_oid4	oid;   
	qop4		qop;
	rpc_gss_svc_t	service;
};  
 
/* RPCSEC_GSS has a value of '6' - See RFC 2203 */
union secinfo4 switch (uint32_t flavor) {
 case RPCSEC_GSS:
	 rpcsec_gss_info	flavor_info;
 default:
	 void;
};

typedef secinfo4 SECINFO4resok<>;

union SECINFO4res switch (nfsstat4 status) {
 case NFS4_OK:
	 SECINFO4resok resok4;
 default:
	 void;
};  

/*
 * SETATTR: Set attributes
 */
struct SETATTR4args {
	/* CURRENT_FH: target object */
	stateid4	stateid;
	fattr4		obj_attributes;
};

struct SETATTR4res {
	nfsstat4	status;
	bitmap4		attrsset;
};

/*
 * SETCLIENTID
 */
struct SETCLIENTID4args {
	nfs_client_id4	client;
	cb_client4	callback;
	uint32_t	callback_ident;
};	

struct SETCLIENTID4resok {
	clientid4	clientid;
	verifier4	setclientid_confirm;
};

union SETCLIENTID4res switch (nfsstat4 status) {
 case NFS4_OK:
	 SETCLIENTID4resok	resok4;
 case NFS4ERR_CLID_INUSE:
	 clientaddr4	client_using;
 default:
	 void;
};

struct SETCLIENTID_CONFIRM4args {
	clientid4	clientid;
	verifier4	setclientid_confirm;
};

struct SETCLIENTID_CONFIRM4res {
	nfsstat4	status;
};

/*
 * VERIFY: Verify attributes same
 */
struct VERIFY4args {
	/* CURRENT_FH: object */
	fattr4		obj_attributes;
};

struct VERIFY4res {
	nfsstat4	status;
};

/*
 * WRITE: Write to file
 */
enum stable_how4 {
	UNSTABLE4	= 0,
	DATA_SYNC4	= 1,
	FILE_SYNC4	= 2
};

struct WRITE4args {
	/* CURRENT_FH: file */
	stateid4	stateid;
	offset4		offset;
	stable_how4	stable;
	opaque		data<>;
};

struct WRITE4resok {
	count4		count;
	stable_how4	committed;
	verifier4	writeverf;
};

union WRITE4res switch (nfsstat4 status) {
 case NFS4_OK:
	 WRITE4resok	resok4;
 default:
	 void;
};

/*
 * RELEASE_LOCKOWNER: Notify server to release lockowner
 */
struct RELEASE_LOCKOWNER4args {
	lock_owner4	lock_owner;
};

struct RELEASE_LOCKOWNER4res {
	nfsstat4	status;
};

/*
 * ILLEGAL: Response for illegal operation numbers
 */
struct ILLEGAL4res {
	nfsstat4        status;
};

/*
 * Operation arrays
 */

enum nfs_opnum4 {
	OP_ACCESS		= 3,
	OP_CLOSE		= 4,
	OP_COMMIT		= 5,
	OP_CREATE		= 6, 
	OP_DELEGPURGE		= 7, 
	OP_DELEGRETURN		= 8, 
	OP_GETATTR		= 9, 
	OP_GETFH		= 10,
	OP_LINK			= 11,
	OP_LOCK			= 12,
	OP_LOCKT		= 13,
	OP_LOCKU		= 14,
	OP_LOOKUP		= 15,
	OP_LOOKUPP		= 16,
	OP_NVERIFY		= 17,
	OP_OPEN			= 18,
	OP_OPENATTR		= 19,
	OP_OPEN_CONFIRM		= 20,
	OP_OPEN_DOWNGRADE	= 21,
	OP_PUTFH		= 22,
	OP_PUTPUBFH		= 23,
	OP_PUTROOTFH		= 24,
	OP_READ			= 25,
	OP_READDIR		= 26,
	OP_READLINK		= 27,
	OP_REMOVE		= 28,
	OP_RENAME		= 29,
	OP_RENEW		= 30,
	OP_RESTOREFH		= 31,
	OP_SAVEFH		= 32,
	OP_SECINFO		= 33,
	OP_SETATTR		= 34,
	OP_SETCLIENTID		= 35,
	OP_SETCLIENTID_CONFIRM	= 36,
	OP_VERIFY		= 37,
	OP_WRITE		= 38,
	OP_RELEASE_LOCKOWNER	= 39,
	OP_ILLEGAL		= 10044
};

union nfs_argop4 switch (nfs_opnum4 argop) {
 case OP_ACCESS:	ACCESS4args opaccess;
 case OP_CLOSE:		CLOSE4args opclose;
 case OP_COMMIT:	COMMIT4args opcommit;
 case OP_CREATE:	CREATE4args opcreate;
 case OP_DELEGPURGE:	DELEGPURGE4args opdelegpurge;
 case OP_DELEGRETURN:	DELEGRETURN4args opdelegreturn;
 case OP_GETATTR:	GETATTR4args opgetattr;
 case OP_GETFH:		void;
 case OP_LINK:		LINK4args oplink;
 case OP_LOCK:		LOCK4args oplock;
 case OP_LOCKT:		LOCKT4args oplockt;
 case OP_LOCKU:		LOCKU4args oplocku;
 case OP_LOOKUP:	LOOKUP4args oplookup;
 case OP_LOOKUPP:	void;
 case OP_NVERIFY:	NVERIFY4args opnverify;
 case OP_OPEN:		OPEN4args opopen;
 case OP_OPENATTR:	OPENATTR4args opopenattr;
 case OP_OPEN_CONFIRM:	OPEN_CONFIRM4args opopen_confirm;
 case OP_OPEN_DOWNGRADE:	OPEN_DOWNGRADE4args opopen_downgrade;
 case OP_PUTFH:		PUTFH4args opputfh;
 case OP_PUTPUBFH:	void;
 case OP_PUTROOTFH:	void;
 case OP_READ:		READ4args opread;
 case OP_READDIR:	READDIR4args opreaddir;
 case OP_READLINK:	void;
 case OP_REMOVE:	REMOVE4args opremove;
 case OP_RENAME:	RENAME4args oprename;
 case OP_RENEW:		RENEW4args oprenew;
 case OP_RESTOREFH:	void;
 case OP_SAVEFH:	void;
 case OP_SECINFO:	SECINFO4args opsecinfo;
 case OP_SETATTR:	SETATTR4args opsetattr;
 case OP_SETCLIENTID:	SETCLIENTID4args opsetclientid;
 case OP_SETCLIENTID_CONFIRM:	SETCLIENTID_CONFIRM4args
					opsetclientid_confirm;
 case OP_VERIFY:	VERIFY4args opverify;
 case OP_WRITE:		WRITE4args opwrite;
 case OP_RELEASE_LOCKOWNER:	RELEASE_LOCKOWNER4args
				    oprelease_lockowner;
 case OP_ILLEGAL:	void;
};

union nfs_resop4 switch (nfs_opnum4 resop){
 case OP_ACCESS:	ACCESS4res opaccess;
 case OP_CLOSE:		CLOSE4res opclose;
 case OP_COMMIT:	COMMIT4res opcommit;
 case OP_CREATE:	CREATE4res opcreate;
 case OP_DELEGPURGE:	DELEGPURGE4res opdelegpurge;
 case OP_DELEGRETURN:	DELEGRETURN4res opdelegreturn;
 case OP_GETATTR:	GETATTR4res opgetattr;
 case OP_GETFH:		GETFH4res opgetfh;
 case OP_LINK:		LINK4res oplink;
 case OP_LOCK:		LOCK4res oplock;
 case OP_LOCKT:		LOCKT4res oplockt;
 case OP_LOCKU:		LOCKU4res oplocku;
 case OP_LOOKUP:	LOOKUP4res oplookup;
 case OP_LOOKUPP:	LOOKUPP4res oplookupp;
 case OP_NVERIFY:	NVERIFY4res opnverify;
 case OP_OPEN:		OPEN4res opopen;
 case OP_OPENATTR:	OPENATTR4res opopenattr;
 case OP_OPEN_CONFIRM:	OPEN_CONFIRM4res opopen_confirm;
 case OP_OPEN_DOWNGRADE:	OPEN_DOWNGRADE4res opopen_downgrade;
 case OP_PUTFH:		PUTFH4res opputfh;
 case OP_PUTPUBFH:	PUTPUBFH4res opputpubfh;
 case OP_PUTROOTFH:	PUTROOTFH4res opputrootfh;
 case OP_READ:		READ4res opread;
 case OP_READDIR:	READDIR4res opreaddir;
 case OP_READLINK:	READLINK4res opreadlink;
 case OP_REMOVE:	REMOVE4res opremove;
 case OP_RENAME:	RENAME4res oprename;
 case OP_RENEW:		RENEW4res oprenew;
 case OP_RESTOREFH:	RESTOREFH4res oprestorefh;
 case OP_SAVEFH:	SAVEFH4res opsavefh;
 case OP_SECINFO:	SECINFO4res opsecinfo;
 case OP_SETATTR:	SETATTR4res opsetattr;
 case OP_SETCLIENTID:	SETCLIENTID4res opsetclientid;
 case OP_SETCLIENTID_CONFIRM:	SETCLIENTID_CONFIRM4res
					opsetclientid_confirm;
 case OP_VERIFY:	VERIFY4res opverify;
 case OP_WRITE:		WRITE4res opwrite;
 case OP_RELEASE_LOCKOWNER:	RELEASE_LOCKOWNER4res
				    oprelease_lockowner;
 case OP_ILLEGAL:	ILLEGAL4res opillegal;
};

struct COMPOUND4args {
	utf8str_cs	tag;
	uint32_t	minorversion;
	nfs_argop4	argarray<>;
};

struct COMPOUND4res {
	nfsstat4 status;
	utf8str_cs	tag;
	nfs_resop4	resarray<>;
};

/*
 * Remote file service routines
 */
program NFS4_PROGRAM {
	version NFS_V4 {
		void 
			NFSPROC4_NULL(void) = 0;

		COMPOUND4res
			NFSPROC4_COMPOUND(COMPOUND4args) = 1;

	} = 4;
} = 100003;



/*
 * NFS4 Callback Procedure Definitions and Program
 */

/*
 * CB_GETATTR: Get Current Attributes
 */
struct CB_GETATTR4args {
	nfs_fh4	fh;
	bitmap4	attr_request;
};

struct CB_GETATTR4resok {
	fattr4	obj_attributes;
};

union CB_GETATTR4res switch (nfsstat4 status) {
 case NFS4_OK:
	 CB_GETATTR4resok	resok4;
 default:
	 void;
};

/*
 * CB_RECALL: Recall an Open Delegation
 */
struct CB_RECALL4args {
	stateid4	stateid;
	bool		truncate;
	nfs_fh4		fh;
};

struct CB_RECALL4res {
	nfsstat4	status;
};

/*
 * CB_ILLEGAL: Response for illegal operation numbers
 */
struct CB_ILLEGAL4res {
	nfsstat4        status;
};

/*
 * Various definitions for CB_COMPOUND
 */
enum nfs_cb_opnum4 {
	OP_CB_GETATTR		= 3,
	OP_CB_RECALL		= 4,
	OP_CB_ILLEGAL		= 10044
};

union nfs_cb_argop4 switch (unsigned argop) {
 case OP_CB_GETATTR:	CB_GETATTR4args opcbgetattr;
 case OP_CB_RECALL:	CB_RECALL4args	opcbrecall;
 case OP_CB_ILLEGAL:	void;
};

union nfs_cb_resop4 switch (unsigned resop){
 case OP_CB_GETATTR:	CB_GETATTR4res	opcbgetattr;
 case OP_CB_RECALL:	CB_RECALL4res	opcbrecall;
 case OP_CB_ILLEGAL:	CB_ILLEGAL4res	opcbillegal;
};

struct CB_COMPOUND4args {
	utf8str_cs	tag;
	uint32_t	minorversion;
	uint32_t	callback_ident;
	nfs_cb_argop4	argarray<>;
};

struct CB_COMPOUND4res {
	nfsstat4 status;
	utf8str_cs	tag;
	nfs_cb_resop4	resarray<>;
};


/*
 * Program number is in the transient range since the client
 * will assign the exact transient program number and provide
 * that to the server via the SETCLIENTID operation.
 */
program NFS4_CALLBACK {
	version NFS_CB {
		void
			CB_NULL(void) = 0;
		CB_COMPOUND4res
			CB_COMPOUND(CB_COMPOUND4args) = 1;
	} = 1;
} = 0x40000000;

--2B/JsCI69OhZNC5r--


From owner-nfsv4-wg@sunroof.eng.sun.com  Fri Feb  7 17:20:45 2003
Received: from nwkea-mail-1.sun.com (nwkea-mail-1.sun.com [192.18.42.13])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id RAA23309
	for <nfsv4-archive@lists.ietf.org>; Fri, 7 Feb 2003 17:20:45 -0500 (EST)
Received: from engmail1mpk.Eng.Sun.COM ([129.146.1.45])
	by nwkea-mail-1.sun.com (8.9.3+Sun/8.9.3) with ESMTP id OAA07696;
	Fri, 7 Feb 2003 14:16:28 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h17MFoVK027195;
	Fri, 7 Feb 2003 14:15:50 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h17MFcQb012579
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Fri, 7 Feb 2003 14:15:38 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h17MFclJ012578
	for nfsv4-wg-dist; Fri, 7 Feb 2003 14:15:38 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail2sun.Eng.Sun.COM (engmail2sun [129.144.134.19])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h17MFbQb012571
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 7 Feb 2003 14:15:37 -0800 (PST)
Received: from kathmandu.sun.com (kathmandu.Central.Sun.COM [129.147.5.36])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h17MFjVL002062
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 7 Feb 2003 14:15:45 -0800 (PST)
Received: from maho3msx2.corp.emc.com (maho3msx2.corp.emc.com [128.221.11.32])
	by kathmandu.sun.com (8.9.3+Sun/8.9.3) with ESMTP id PAA18279
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 7 Feb 2003 15:15:40 -0700 (MST)
From: Dai_Peng@emc.com
Received: by maho3msx2.corp.emc.com with Internet Mail Service (5.5.2653.19)
	id <1PRJ38GN>; Fri, 7 Feb 2003 17:15:39 -0500
Message-ID: <6335CBB2F69AD411AD3100D0B7BA38E30CF0BF66@CORPUSMX2>
To: spencer.shepler@sun.com, nfsv4-wg@sunroof.eng.sun.com
Subject: RE: LOOKUPP and NFS4ERR_WRONGSEC
Date: Fri, 7 Feb 2003 17:15:05 -0500 
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

> 
> Not an oversight.  The assumption is that if a object in the server's
> namespace requires a particular security mechanism for access that all
> ancestors of that object will accept the same security mechanism.
> This allows a client to use a single security mechanism while
> traversing the namespace to that node.  It also avoids the problem
> that you thought might exist.

What you are effectively saying is any v4 compliant server implementation
MUST require a nested export to be more restrictive than its parent exports.
IMHO, the protocol should not place a limit on the way security policy is
administered, although I can see the assumption makes sense most of the
time.

Peng
 


From owner-nfsv4-wg@sunroof.eng.sun.com  Fri Feb  7 17:23:59 2003
Received: from kathmandu.sun.com (kathmandu.sun.com [192.18.98.36])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id RAA23398
	for <nfsv4-archive@lists.ietf.org>; Fri, 7 Feb 2003 17:23:59 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by kathmandu.sun.com (8.9.3+Sun/8.9.3) with ESMTP id PAA22450;
	Fri, 7 Feb 2003 15:24:19 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h17MO0VL004515;
	Fri, 7 Feb 2003 14:24:00 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h17MNnQb012609
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Fri, 7 Feb 2003 14:23:49 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h17MNnx0012608
	for nfsv4-wg-dist; Fri, 7 Feb 2003 14:23:49 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from centralmail2brm.Central.Sun.COM (centralmail2brm.Central.Sun.COM [129.147.62.14])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h17MNlQb012601
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 7 Feb 2003 14:23:47 -0800 (PST)
Received: from dhcp-uaus08-128-228.Central.Sun.COM (dhcp-uaus08-128-228.Central.Sun.COM [129.153.128.228])
	by centralmail2brm.Central.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h17MNtln000137
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 7 Feb 2003 15:23:55 -0700 (MST)
Received: from dhcp-uaus08-128-228.Central.Sun.COM (localhost [127.0.0.1])
	by dhcp-uaus08-128-228.Central.Sun.COM (8.12.7+Sun/8.12.7) with ESMTP id h17MLafM100646
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 7 Feb 2003 16:21:36 -0600 (CST)
Received: (from shepler@localhost)
	by dhcp-uaus08-128-228.Central.Sun.COM (8.12.7+Sun/8.12.7/Submit) id h17MLaWr100645
	for nfsv4-wg@sunroof.eng.sun.com; Fri, 7 Feb 2003 16:21:36 -0600 (CST)
Date: Fri, 7 Feb 2003 16:21:36 -0600
From: Spencer Shepler <shepler@eng.sun.com>
To: nfsv4-wg@sunroof.eng.sun.com
Subject: Re: LOOKUPP and NFS4ERR_WRONGSEC
Message-ID: <20030207222136.GS100365@dhcp-uaus08-128-228.central.sun.com>
Reply-To: spencer.shepler@sun.com
Mail-Followup-To: Spencer Shepler <shepler@eng.sun.com>,
	nfsv4-wg@sunroof.eng.sun.com
References: <6335CBB2F69AD411AD3100D0B7BA38E30CF0BF66@CORPUSMX2>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <6335CBB2F69AD411AD3100D0B7BA38E30CF0BF66@CORPUSMX2>
User-Agent: Mutt/1.4i
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

On Fri, Dai_Peng@emc.com wrote:
> > 
> > Not an oversight.  The assumption is that if a object in the server's
> > namespace requires a particular security mechanism for access that all
> > ancestors of that object will accept the same security mechanism.
> > This allows a client to use a single security mechanism while
> > traversing the namespace to that node.  It also avoids the problem
> > that you thought might exist.
> 
> What you are effectively saying is any v4 compliant server implementation
> MUST require a nested export to be more restrictive than its parent exports.
> IMHO, the protocol should not place a limit on the way security policy is
> administered, although I can see the assumption makes sense most of the
> time.

The protocol implies the requirement via the construction of the
SECINFO operation as you have pointed out.  So I guess it would be an
implicit MUST.  However, the server implementation is apply its
security policy however it wants.  There are no policy statements like
this in the protocol specification.  The only limiting factor will be
how useful a particular policy will be based on the available
protocol.

With respect to this area, I have not heard of any particular
requirements necessitating a change.

-- 
Spencer



From owner-nfsv4-wg@sunroof.eng.sun.com  Fri Feb  7 17:48:28 2003
Received: from nwkea-mail-2.sun.com (nwkea-mail-2.sun.com [192.18.42.14])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id RAA23926
	for <nfsv4-archive@lists.ietf.org>; Fri, 7 Feb 2003 17:48:28 -0500 (EST)
Received: from engmail1mpk.Eng.Sun.COM ([129.146.1.45])
	by nwkea-mail-2.sun.com (8.9.3+Sun/8.9.3) with ESMTP id OAA08227;
	Fri, 7 Feb 2003 14:45:21 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h17MihVK006547;
	Fri, 7 Feb 2003 14:44:43 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h17MiVQb012847
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Fri, 7 Feb 2003 14:44:31 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h17MiVhH012846
	for nfsv4-wg-dist; Fri, 7 Feb 2003 14:44:31 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail2sun.Eng.Sun.COM (engmail2sun [129.144.134.19])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h17MiSQb012839
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 7 Feb 2003 14:44:28 -0800 (PST)
Received: from kathmandu.sun.com (kathmandu.Central.Sun.COM [129.147.5.36])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h17MiaVL010991
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 7 Feb 2003 14:44:36 -0800 (PST)
Received: from tor01x3.hcl.com (torpsi.hcl.com [199.71.120.66])
	by kathmandu.sun.com (8.9.3+Sun/8.9.3) with ESMTP id PAA02544
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 7 Feb 2003 15:44:31 -0700 (MST)
Received: from av0012 (av0012.hcl.com [10.1.42.241]) by tor01x3.hcl.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13)
	id DC3AHG5Z; Fri, 7 Feb 2003 17:44:28 -0500
Received: FROM mhoutside.hcl.com BY av0012 ; Fri Feb 07 17:44:53 2003 -0500
Received: from sergeylt (sergeylt.hcl.com [10.1.14.156])
	by mhoutside.hcl.com (8.11.2/8.11.2) with ESMTP id h17MiXV01898;
	Fri, 7 Feb 2003 17:44:33 -0500 (EST)
From: "Sergey Klyushin" <sergey.klyushin@hummingbird.com>
To: <spencer.shepler@sun.com>, <nfsv4-wg@sunroof.eng.sun.com>
Subject: RE: LOOKUPP and NFS4ERR_WRONGSEC
Date: Fri, 7 Feb 2003 17:44:27 -0500
Message-ID: <002d01c2cefa$7836d340$9c0e010a@hcl.com>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook, Build 10.0.4510
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
In-Reply-To: <20030207212415.GK100365@dhcp-uaus08-128-228.central.sun.com>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by sunroof.eng.sun.com id h17MiSQb012840
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>
Content-Transfer-Encoding: 8bit

> -----Original Message-----
> From: owner-nfsv4-wg@sunroof.eng.sun.com [mailto:owner-nfsv4-
> wg@sunroof.eng.sun.com] On Behalf Of Spencer Shepler
> Sent: Friday, February 07, 2003 4:24 PM
> To: nfsv4-wg@sunroof.eng.sun.com
> Subject: Re: LOOKUPP and NFS4ERR_WRONGSEC
> 
> On Fri, Dai_Peng@emc.com wrote:
> > As far as I understand, NFS4ERR_WRONGSEC is returned to the client
> > when a compound request crosses into an export with incompatible
> security
> > requirements. For example, in the following scenario, putfh [/foo/bar];
> > lookup "baz"
> > will cause the error to be returned.
> >
> >   /foo  <-- auth_unix
> >    |
> >   /foo/bar
> >    |
> >   /foo/bar/baz  <-- krb5
> >
> > Using the same example, it seems that going the opposite direction using
> > LOOKUPP would have the same problem. However, the spec did not include
> > NFS4ERR_WRONGSEC as a possible error code for LOOKUPP. Is this an
> > oversight or did I miss something?
> 
> Not an oversight.  The assumption is that if a object in the server's
> namespace requires a particular security mechanism for access that all
> ancestors of that object will accept the same security mechanism.
> This allows a client to use a single security mechanism while
> traversing the namespace to that node.  It also avoids the problem
> that you thought might exist.
> 
> --
> Spencer

Does it mean that /foo and /foo/bar implicitly allow krb5 security?
If yes, what would be in the following "stupid" scenario?

/foo  <-- krb5
 |
/foo/bar
 |
/foo/bar/baz  <-- auth_unix

May I use auth_unix to LOOKUP /foo/bar in /foo?

Thanks,
Sergey





From owner-nfsv4-wg@sunroof.eng.sun.com  Fri Feb  7 18:03:18 2003
Received: from patan.sun.com (patan.Sun.COM [192.18.98.43])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA24224
	for <nfsv4-archive@lists.ietf.org>; Fri, 7 Feb 2003 18:03:18 -0500 (EST)
Received: from engmail1mpk.Eng.Sun.COM ([129.146.1.45])
	by patan.sun.com (8.9.3+Sun/8.9.3) with ESMTP id QAA11664;
	Fri, 7 Feb 2003 16:04:41 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h17N3WVK012495;
	Fri, 7 Feb 2003 15:03:32 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h17N3LQb012918
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Fri, 7 Feb 2003 15:03:21 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h17N3Lx5012917
	for nfsv4-wg-dist; Fri, 7 Feb 2003 15:03:21 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail1mpk.Eng.Sun.COM (engmail1mpk [129.146.1.45])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h17N3JQb012910
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 7 Feb 2003 15:03:19 -0800 (PST)
Received: from nwkea-mail-2.sun.com ([192.18.42.14])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h17N3SVK012450
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 7 Feb 2003 15:03:28 -0800 (PST)
Received: from mx01.netapp.com (mx01.netapp.com [198.95.226.53])
	by nwkea-mail-2.sun.com (8.9.3+Sun/8.9.3) with ESMTP id PAA18537;
	Fri, 7 Feb 2003 15:03:22 -0800 (PST)
Received: from frejya.corp.netapp.com (frejya [10.10.20.91])
	by mx01.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h17N3EYW016018;
	Fri, 7 Feb 2003 15:03:14 -0800 (PST)
Received: from tahoe.corp.netapp.com (tahoe.corp.netapp.com [10.10.22.112])
	by frejya.corp.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h17N3Ev6012313;
	Fri, 7 Feb 2003 15:03:14 -0800 (PST)
Received: from eisler.com (10.58.48.120 [10.58.48.120]) by tahoe.corp.netapp.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21)
	id 1JT75K0V; Fri, 7 Feb 2003 15:03:05 -0800
Message-ID: <3E443B29.5050003@eisler.com>
Date: Fri, 07 Feb 2003 15:03:05 -0800
From: Mike Eisler <mike@eisler.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:0.9.4.1) Gecko/20020508 Netscape6/6.2.3
X-Accept-Language: en-us
MIME-Version: 1.0
To: Dai_Peng@emc.com
CC: spencer.shepler@sun.com, nfsv4-wg@sunroof.eng.sun.com
Subject: Re: LOOKUPP and NFS4ERR_WRONGSEC
References: <6335CBB2F69AD411AD3100D0B7BA38E30CF0BF66@CORPUSMX2>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>
Content-Transfer-Encoding: 7bit


Dai_Peng@emc.com wrote:

>>Not an oversight.  The assumption is that if a object in the server's
>>namespace requires a particular security mechanism for access that all
>>ancestors of that object will accept the same security mechanism.
>>This allows a client to use a single security mechanism while
>>traversing the namespace to that node.  It also avoids the problem
>>that you thought might exist.
>>
>
>What you are effectively saying is any v4 compliant server implementation
>MUST require a nested export to be more restrictive than its parent exports.
>


Well it is going to hard to make that a MUST since customers today 
expect to attach arbitrary
restrictions to any point of their exported namespace.

What is says that in order to prevent unauthenticated access to the 
contents of directories,
customers will have to export nested directories with equal or greater 
restrictions.

>
>IMHO, the protocol should not place a limit on the way security policy is
>administered, although I can see the assumption makes sense most of the
>time.
>

I think it is an oversight and agree with Peng.

What NFSv4.0 needed was a variant of SECINFO that took just  the current 
file handle as an
(implied) argument and not the component name. This way, to do LOOKUPP that
crossed security flavors, you would have had:

1.    PUTFH ; LOOKUPP -->
            <-- fh (no wrongsec error, even if the security is wrong)

2.    PUTFH fh ; READDIR -->

        <-- NFS4ERR_WRONGSEC  (return it on the READDIR operation)

3.    PUTFH fh ; SECINFO_CURFH -->

    <-- { rpcsec_gss, krb5, auth }

Regardless, we should not modify the NFSv4.0 specification to address this.
IESG has approved the spec as is, and it took us too long to get there.

In minor revision of v4, we should address this.

    -mre




From owner-nfsv4-wg@sunroof.eng.sun.com  Fri Feb  7 18:03:26 2003
Received: from nwkea-mail-2.sun.com (nwkea-mail-2.sun.com [192.18.42.14])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA24237
	for <nfsv4-archive@lists.ietf.org>; Fri, 7 Feb 2003 18:03:25 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by nwkea-mail-2.sun.com (8.9.3+Sun/8.9.3) with ESMTP id PAA16672;
	Fri, 7 Feb 2003 15:00:29 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h17MxQVL015460;
	Fri, 7 Feb 2003 14:59:26 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h17MxEQb012880
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Fri, 7 Feb 2003 14:59:14 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h17MxEhA012879
	for nfsv4-wg-dist; Fri, 7 Feb 2003 14:59:14 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail2sun.Eng.Sun.COM (engmail2sun [129.144.134.19])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h17MxCQb012872
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 7 Feb 2003 14:59:12 -0800 (PST)
Received: from lukla.Sun.COM (lukla.Central.Sun.COM [129.147.5.31])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h17MxLVL015418
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 7 Feb 2003 14:59:21 -0800 (PST)
Received: from maho3msx2.corp.emc.com (maho3msx2.corp.emc.com [128.221.11.32])
	by lukla.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id PAA19302
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 7 Feb 2003 15:59:15 -0700 (MST)
From: Dai_Peng@emc.com
Received: by maho3msx2.corp.emc.com with Internet Mail Service (5.5.2653.19)
	id <1PRJ305V>; Fri, 7 Feb 2003 17:59:14 -0500
Message-ID: <6335CBB2F69AD411AD3100D0B7BA38E30CF0BF67@CORPUSMX2>
To: spencer.shepler@sun.com, nfsv4-wg@sunroof.eng.sun.com
Subject: RE: LOOKUPP and NFS4ERR_WRONGSEC
Date: Fri, 7 Feb 2003 17:58:40 -0500 
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>


> > > 
> > > Not an oversight.  The assumption is that if a object in 
> the server's
> > > namespace requires a particular security mechanism for 
> access that all
> > > ancestors of that object will accept the same security mechanism.
> > > This allows a client to use a single security mechanism while
> > > traversing the namespace to that node.  It also avoids the problem
> > > that you thought might exist.
> > 
> > What you are effectively saying is any v4 compliant server 
> implementation
> > MUST require a nested export to be more restrictive than 
> its parent exports.
> > IMHO, the protocol should not place a limit on the way 
> security policy is
> > administered, although I can see the assumption makes sense 
> most of the
> > time.
> 
> The protocol implies the requirement via the construction of the
> SECINFO operation as you have pointed out.  So I guess it would be an
> implicit MUST.  However, the server implementation is apply its

I thought for SECINFO to work, the child export must support some of
the flavors that the parent export supports (to be able to cross), but
not necessarily a subset of what the parent supports.

> security policy however it wants.  There are no policy statements like

If the server is free to do what it wants, what error code should we
return if the LOOKUPP crosses into parent export with an unsupported
security flavor? Looks like it has to return NFS4ERR_WRONGSEC so the
client will know it's time to renegotiate, or the client won't be able
to go back. Right?

> this in the protocol specification.  The only limiting factor will be
> how useful a particular policy will be based on the available
> protocol.

Peng


From owner-nfsv4-wg@sunroof.eng.sun.com  Fri Feb  7 18:10:41 2003
Received: from kathmandu.sun.com (kathmandu.sun.com [192.18.98.36])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA24356
	for <nfsv4-archive@lists.ietf.org>; Fri, 7 Feb 2003 18:10:40 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by kathmandu.sun.com (8.9.3+Sun/8.9.3) with ESMTP id QAA16020;
	Fri, 7 Feb 2003 16:12:00 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h17NAoVL018995;
	Fri, 7 Feb 2003 15:10:50 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h17NAdQb012976
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Fri, 7 Feb 2003 15:10:39 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h17NAd6f012975
	for nfsv4-wg-dist; Fri, 7 Feb 2003 15:10:39 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail1mpk.Eng.Sun.COM (engmail1mpk [129.146.1.45])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h17NAbQb012968
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 7 Feb 2003 15:10:37 -0800 (PST)
Received: from lukla.Sun.COM (lukla.Central.Sun.COM [129.147.5.31])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h17NAkVK014646
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 7 Feb 2003 15:10:46 -0800 (PST)
Received: from mx01.netapp.com (mx01.netapp.com [198.95.226.53])
	by lukla.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id QAA23942;
	Fri, 7 Feb 2003 16:10:39 -0700 (MST)
Received: from frejya.corp.netapp.com (frejya [10.10.20.91])
	by mx01.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h17NAVYW016380;
	Fri, 7 Feb 2003 15:10:31 -0800 (PST)
Received: from tahoe.corp.netapp.com (tahoe.corp.netapp.com [10.10.22.112])
	by frejya.corp.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h17NAVv6013545;
	Fri, 7 Feb 2003 15:10:31 -0800 (PST)
Received: from eisler.com (10.58.48.152 [10.58.48.152]) by tahoe.corp.netapp.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21)
	id 1JT75K0X; Fri, 7 Feb 2003 15:10:22 -0800
Message-ID: <3E443CDE.2060307@eisler.com>
Date: Fri, 07 Feb 2003 15:10:22 -0800
From: Mike Eisler <mike@eisler.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:0.9.4.1) Gecko/20020508 Netscape6/6.2.3
X-Accept-Language: en-us
MIME-Version: 1.0
To: Dai_Peng@emc.com
CC: spencer.shepler@sun.com, nfsv4-wg@sunroof.eng.sun.com
Subject: Re: LOOKUPP and NFS4ERR_WRONGSEC
References: <6335CBB2F69AD411AD3100D0B7BA38E30CF0BF67@CORPUSMX2>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>
Content-Transfer-Encoding: 7bit

>
>
>
>If the server is free to do what it wants, what error code should we
>return if the LOOKUPP crosses into parent export with an unsupported
>security flavor? Looks like it has to return NFS4ERR_WRONGSEC so the
>client will know it's time to renegotiate, or the client won't be able
>to go back. Right?
>

If you return an error code, there is no way for the client to recover.
So you can't return an error code.

If  the nested export is less restrictive then the ancestor, then it means
that ancestor directories can be read with the weaker security flavor.

    -mre




From owner-nfsv4-wg@sunroof.eng.sun.com  Fri Feb  7 18:33:23 2003
Received: from kathmandu.sun.com (kathmandu.sun.com [192.18.98.36])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA24926
	for <nfsv4-archive@lists.ietf.org>; Fri, 7 Feb 2003 18:33:22 -0500 (EST)
Received: from engmail1mpk.Eng.Sun.COM ([129.146.1.45])
	by kathmandu.sun.com (8.9.3+Sun/8.9.3) with ESMTP id QAA25753;
	Fri, 7 Feb 2003 16:34:35 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h17NXQVK021438;
	Fri, 7 Feb 2003 15:33:26 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h17NXEQb013230
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Fri, 7 Feb 2003 15:33:14 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h17NXE2w013229
	for nfsv4-wg-dist; Fri, 7 Feb 2003 15:33:14 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail1mpk.Eng.Sun.COM (engmail1mpk [129.146.1.45])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h17NXCQb013222
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 7 Feb 2003 15:33:12 -0800 (PST)
Received: from nwkea-mail-1.sun.com ([192.18.42.13])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h17NXLVK021392
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 7 Feb 2003 15:33:21 -0800 (PST)
Received: from maho3msx2.corp.emc.com (maho3msx2.corp.emc.com [128.221.11.32])
	by nwkea-mail-1.sun.com (8.9.3+Sun/8.9.3) with ESMTP id PAA04008
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 7 Feb 2003 15:33:16 -0800 (PST)
From: Dai_Peng@emc.com
Received: by maho3msx2.corp.emc.com with Internet Mail Service (5.5.2653.19)
	id <1PRJPBX7>; Fri, 7 Feb 2003 18:33:15 -0500
Message-ID: <6335CBB2F69AD411AD3100D0B7BA38E30CF0BF68@CORPUSMX2>
To: mike@eisler.com
Cc: spencer.shepler@sun.com, nfsv4-wg@sunroof.eng.sun.com
Subject: RE: LOOKUPP and NFS4ERR_WRONGSEC
Date: Fri, 7 Feb 2003 18:32:40 -0500 
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>


> 
> >>Not an oversight.  The assumption is that if a object in 
> the server's
> >>namespace requires a particular security mechanism for 
> access that all
> >>ancestors of that object will accept the same security mechanism.
> >>This allows a client to use a single security mechanism while
> >>traversing the namespace to that node.  It also avoids the problem
> >>that you thought might exist.
> >>
> >
> >What you are effectively saying is any v4 compliant server 
> implementation
> >MUST require a nested export to be more restrictive than its 
> parent exports.
> >
> 
> 
> Well it is going to hard to make that a MUST since customers today 
> expect to attach arbitrary
> restrictions to any point of their exported namespace.
> 

I think SECINFO as it stands now requires the parent export and the child
export to share at least one common flavor. Otherwise, even going downward
using LOOKUP would not be possible. For example, suppose the parent export
supports auth_unix and child supports krb5,

PUTFH fh; LOOKUP "child_export" --> [auth_unix]
					  <-- NFS4ERR_WRONGSEC (from LOOKUP)
PUTFH fh; SECINFO "child_export" --> [krb5i as required by SECINFO]
					  <-- "krb5"
PUTFH fh; LOOKUP "child_export" --> [krb5]
	   <-- NFS4ERR_WRONGSEC (from PUTFH since the parent does not
support krb5)


> What is says that in order to prevent unauthenticated access to the 
> contents of directories,
> customers will have to export nested directories with equal 
> or greater 
> restrictions.
> 
> >
> >IMHO, the protocol should not place a limit on the way 
> security policy is
> >administered, although I can see the assumption makes sense 
> most of the
> >time.
> >
> 
> I think it is an oversight and agree with Peng.
> 
> What NFSv4.0 needed was a variant of SECINFO that took just  
> the current 
> file handle as an
> (implied) argument and not the component name. This way, to 
> do LOOKUPP that
> crossed security flavors, you would have had:
> 
> 1.    PUTFH ; LOOKUPP -->
>             <-- fh (no wrongsec error, even if the security is wrong)
> 
> 2.    PUTFH fh ; READDIR -->
> 
>         <-- NFS4ERR_WRONGSEC  (return it on the READDIR operation)
> 
> 3.    PUTFH fh ; SECINFO_CURFH -->
> 
>     <-- { rpcsec_gss, krb5, auth }
> 
> Regardless, we should not modify the NFSv4.0 specification to 
> address this.
> IESG has approved the spec as is, and it took us too long to 
> get there.
> 
> In minor revision of v4, we should address this.
> 
>     -mre
> 
> 


From owner-nfsv4-wg@sunroof.eng.sun.com  Fri Feb  7 18:49:38 2003
Received: from nwkea-mail-1.sun.com (nwkea-mail-1.sun.com [192.18.42.13])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA25376
	for <nfsv4-archive@lists.ietf.org>; Fri, 7 Feb 2003 18:49:37 -0500 (EST)
Received: from engmail1mpk.Eng.Sun.COM ([129.146.1.45])
	by nwkea-mail-1.sun.com (8.9.3+Sun/8.9.3) with ESMTP id PAA14601;
	Fri, 7 Feb 2003 15:46:37 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h17NjSVK025010;
	Fri, 7 Feb 2003 15:45:29 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h17NjHQb013334
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Fri, 7 Feb 2003 15:45:17 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h17NjHgS013333
	for nfsv4-wg-dist; Fri, 7 Feb 2003 15:45:17 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail2sun.Eng.Sun.COM (engmail2sun [129.144.134.19])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h17NjFQb013326
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 7 Feb 2003 15:45:15 -0800 (PST)
Received: from kathmandu.sun.com (kathmandu.Central.Sun.COM [129.147.5.36])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h17NjNVL028625
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 7 Feb 2003 15:45:24 -0800 (PST)
Received: from mx01.netapp.com (mx01.netapp.com [198.95.226.53])
	by kathmandu.sun.com (8.9.3+Sun/8.9.3) with ESMTP id QAA00688;
	Fri, 7 Feb 2003 16:45:18 -0700 (MST)
Received: from frejya.corp.netapp.com (frejya [10.10.20.91])
	by mx01.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h17NjAYW018279;
	Fri, 7 Feb 2003 15:45:10 -0800 (PST)
Received: from tahoe.corp.netapp.com (tahoe.corp.netapp.com [10.10.22.112])
	by frejya.corp.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h17NjAv6019816;
	Fri, 7 Feb 2003 15:45:10 -0800 (PST)
Received: from eisler.com (10.58.48.152 [10.58.48.152]) by tahoe.corp.netapp.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21)
	id 1JT75K0Z; Fri, 7 Feb 2003 15:45:01 -0800
Message-ID: <3E4444FD.6020704@eisler.com>
Date: Fri, 07 Feb 2003 15:45:01 -0800
From: Mike Eisler <mike@eisler.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:0.9.4.1) Gecko/20020508 Netscape6/6.2.3
X-Accept-Language: en-us
MIME-Version: 1.0
To: Dai_Peng@emc.com
CC: spencer.shepler@sun.com, nfsv4-wg@sunroof.eng.sun.com
Subject: Re: LOOKUPP and NFS4ERR_WRONGSEC
References: <6335CBB2F69AD411AD3100D0B7BA38E30CF0BF68@CORPUSMX2>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>
Content-Transfer-Encoding: 7bit

>
>
>
>I think SECINFO as it stands now requires the parent export and the child
>export to share at least one common flavor. Otherwise, even going downward
>

That's going to really disappoint customers. But of course, I don't 
agree with that
interpretation.

>
>using LOOKUP would not be possible. For example, suppose the parent export
>supports auth_unix and child supports krb5,
>
>PUTFH fh; LOOKUP "child_export" --> [auth_unix]
>					  <-- NFS4ERR_WRONGSEC (from LOOKUP)
>PUTFH fh; SECINFO "child_export" --> [krb5i as required by SECINFO]
>

The client can use whatever flavor it wants in SECINFO

>
>					  <-- "krb5"
>PUTFH fh; LOOKUP "child_export" --> [krb5]
>	   <-- NFS4ERR_WRONGSEC (from PUTFH since the parent does not
>support krb5)
>
No, the server has to honor the request. The use of a putfh with wrong
security doesn't require enforcement, since putfh doesn't involve any 
access.

The rule is ifSECINFO for { fh, name} returns flavor X, then
a LOOKUP { fh, name} using flavor X MUST be accepted by ther server.

    -mre




From owner-nfsv4-wg@sunroof.eng.sun.com  Fri Feb  7 18:54:31 2003
Received: from kathmandu.sun.com (kathmandu.sun.com [192.18.98.36])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA25470
	for <nfsv4-archive@lists.ietf.org>; Fri, 7 Feb 2003 18:54:30 -0500 (EST)
Received: from engmail1mpk.Eng.Sun.COM ([129.146.1.45])
	by kathmandu.sun.com (8.9.3+Sun/8.9.3) with ESMTP id QAA05332;
	Fri, 7 Feb 2003 16:56:06 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h17NsvVK028271;
	Fri, 7 Feb 2003 15:54:57 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h17NskQb013653
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Fri, 7 Feb 2003 15:54:46 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h17NsjtX013652
	for nfsv4-wg-dist; Fri, 7 Feb 2003 15:54:45 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail2sun.Eng.Sun.COM (engmail2sun [129.144.134.19])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h17NsiQb013645
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 7 Feb 2003 15:54:44 -0800 (PST)
Received: from patan.sun.com (patan.Central.Sun.COM [129.147.5.43])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h17NsqVL001733
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 7 Feb 2003 15:54:52 -0800 (PST)
Received: from maho3msx2.corp.emc.com (maho3msx2.corp.emc.com [128.221.11.32])
	by patan.sun.com (8.9.3+Sun/8.9.3) with ESMTP id QAA06934
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 7 Feb 2003 16:54:47 -0700 (MST)
From: Dai_Peng@emc.com
Received: by maho3msx2.corp.emc.com with Internet Mail Service (5.5.2653.19)
	id <1PRJPC03>; Fri, 7 Feb 2003 18:54:46 -0500
Message-ID: <6335CBB2F69AD411AD3100D0B7BA38E30CF0BF69@CORPUSMX2>
To: mike@eisler.com
Cc: spencer.shepler@sun.com, nfsv4-wg@sunroof.eng.sun.com
Subject: RE: LOOKUPP and NFS4ERR_WRONGSEC
Date: Fri, 7 Feb 2003 18:54:11 -0500 
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>


> >
> >
> >I think SECINFO as it stands now requires the parent export 
> and the child
> >export to share at least one common flavor. Otherwise, even 
> going downward
> >
> 
> That's going to really disappoint customers. But of course, I don't 
> agree with that
> interpretation.
> 
> >
> >using LOOKUP would not be possible. For example, suppose the 
> parent export
> >supports auth_unix and child supports krb5,
> >
> >PUTFH fh; LOOKUP "child_export" --> [auth_unix]
> >					  <-- NFS4ERR_WRONGSEC 
> (from LOOKUP)
> >PUTFH fh; SECINFO "child_export" --> [krb5i as required by SECINFO]
> >
> 
> The client can use whatever flavor it wants in SECINFO
> 

Isn't it true that the SECINFO call must use at least integrity
to prevent active attacks to lower security requirements?

> >
> >					  <-- "krb5"
> >PUTFH fh; LOOKUP "child_export" --> [krb5]
> >	   <-- NFS4ERR_WRONGSEC (from PUTFH since the parent does not
> >support krb5)
> >
> No, the server has to honor the request. The use of a putfh with wrong
> security doesn't require enforcement, since putfh doesn't involve any 
> access.
> 

But I remembered the spec indicated (in SECINFO impl notes) that PUTFH,
among other ops, was a checkpoint. Maybe it meant differently?

> The rule is ifSECINFO for { fh, name} returns flavor X, then
> a LOOKUP { fh, name} using flavor X MUST be accepted by ther server.
> 
>     -mre
> 
> 

Peng


From owner-nfsv4-wg@sunroof.eng.sun.com  Fri Feb  7 19:39:39 2003
Received: from pheriche.sun.com (pheriche.sun.com [192.18.98.34])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id TAA26326
	for <nfsv4-archive@lists.ietf.org>; Fri, 7 Feb 2003 19:39:39 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by pheriche.sun.com (8.9.3+Sun/8.9.3) with ESMTP id RAA02086;
	Fri, 7 Feb 2003 17:40:54 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h180dgVL014392;
	Fri, 7 Feb 2003 16:39:42 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h180dVQb013738
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Fri, 7 Feb 2003 16:39:31 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h180dVU3013737
	for nfsv4-wg-dist; Fri, 7 Feb 2003 16:39:31 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail2sun.Eng.Sun.COM (engmail2sun [129.144.134.19])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h180dTQb013730
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 7 Feb 2003 16:39:29 -0800 (PST)
Received: from pheriche.sun.com (pheriche.Central.Sun.COM [129.147.5.34])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h180dbVL014352
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 7 Feb 2003 16:39:37 -0800 (PST)
Received: from mx01.netapp.com (mx01.netapp.com [198.95.226.53])
	by pheriche.sun.com (8.9.3+Sun/8.9.3) with ESMTP id RAA01583;
	Fri, 7 Feb 2003 17:39:32 -0700 (MST)
Received: from frejya.corp.netapp.com (frejya [10.10.20.91])
	by mx01.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h180dNYW021108;
	Fri, 7 Feb 2003 16:39:23 -0800 (PST)
Received: from tahoe.corp.netapp.com (tahoe.corp.netapp.com [10.10.22.112])
	by frejya.corp.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h180dNv6028978;
	Fri, 7 Feb 2003 16:39:23 -0800 (PST)
Received: from eisler.com (10.58.48.152 [10.58.48.152]) by tahoe.corp.netapp.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21)
	id 1JT75K00; Fri, 7 Feb 2003 16:39:14 -0800
Message-ID: <3E4451B3.8000904@eisler.com>
Date: Fri, 07 Feb 2003 16:39:15 -0800
From: Mike Eisler <mike@eisler.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:0.9.4.1) Gecko/20020508 Netscape6/6.2.3
X-Accept-Language: en-us
MIME-Version: 1.0
To: Dai_Peng@emc.com
CC: spencer.shepler@sun.com, nfsv4-wg@sunroof.eng.sun.com
Subject: Re: LOOKUPP and NFS4ERR_WRONGSEC
References: <6335CBB2F69AD411AD3100D0B7BA38E30CF0BF69@CORPUSMX2>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>
Content-Transfer-Encoding: 7bit

>
>
>>>
>>The client can use whatever flavor it wants in SECINFO
>>
>
>Isn't it true that the SECINFO call must use at least integrity
>to prevent active attacks to lower security requirements?
>

Yes, but the attack is against the client, so the server shouldn't be 
enforcing
it. Also, if the server supports krb5i, but the sys admin
hasn't configured Kerberos V5, what are we do? If the
sys admin only wants to use AUTH_SYS, an active attack to
lower security isn't of much use; it doesn't get much lower
than AUTH_SYS.

>
>
>>>					  <-- "krb5"
>>>PUTFH fh; LOOKUP "child_export" --> [krb5]
>>>	   <-- NFS4ERR_WRONGSEC (from PUTFH since the parent does not
>>>support krb5)
>>>
>>No, the server has to honor the request. The use of a putfh with wrong
>>security doesn't require enforcement, since putfh doesn't involve any 
>>access.
>>
>
>But I remembered the spec indicated (in SECINFO impl notes) that PUTFH,
>among other ops, was a checkpoint. Maybe it meant differently?
>

I'll agree that the spec has a bit of self inconsistency since it
says at one place PUTFH can return WRONGSEC, and at another
that a fix a WRONGSEC error from LOOKUP, reissue the
PUTFH / LOOKUP with a different security flavor.
On the other hand, returning WRONGSEC to a PUTFH
is an implementation choice, just as allow
differing security flavors at each file object is an implementation
choice.

If implementors want to let a customer specify different and
disjoint sets of security flavors on different objects, then
the PUTFH can never return WRONGSEC. Conversely,
If PUTFH returns WRONGSEC, then it implies that the sets of security 
flavors on
each object are never disjoint. The third implementation choice is
to let the customer put his server into a useless state.

    -mre





From owner-nfsv4-wg@sunroof.eng.sun.com  Sat Feb  8 01:08:00 2003
Received: from nwkea-mail-2.sun.com (nwkea-mail-2.sun.com [192.18.42.14])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id BAA02912
	for <nfsv4-archive@lists.ietf.org>; Sat, 8 Feb 2003 01:07:59 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by nwkea-mail-2.sun.com (8.9.3+Sun/8.9.3) with ESMTP id WAA16240;
	Fri, 7 Feb 2003 22:04:40 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1863oVL011518;
	Fri, 7 Feb 2003 22:03:50 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1863cQb014311
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Fri, 7 Feb 2003 22:03:38 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h1863cIJ014310
	for nfsv4-wg-dist; Fri, 7 Feb 2003 22:03:38 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail2sun.Eng.Sun.COM (engmail2sun [129.144.134.19])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1863ZQb014303
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 7 Feb 2003 22:03:35 -0800 (PST)
Received: from patan.sun.com (patan.Central.Sun.COM [129.147.5.43])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1863iVL011474
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 7 Feb 2003 22:03:44 -0800 (PST)
Received: from tor01x3.hcl.com (torpsi.hcl.com [199.71.120.66])
	by patan.sun.com (8.9.3+Sun/8.9.3) with ESMTP id XAA22660
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 7 Feb 2003 23:03:38 -0700 (MST)
Received: from av0012 (av0012.hcl.com [10.1.42.241]) by tor01x3.hcl.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13)
	id DC3AHKVQ; Sat, 8 Feb 2003 01:03:35 -0500
Received: FROM mhoutside.hcl.com BY av0012 ; Sat Feb 08 01:04:00 2003 -0500
Received: from sergeylt (sergeylt.hcl.com [10.1.39.141])
	by mhoutside.hcl.com (8.11.2/8.11.2) with ESMTP id h1863fV06898;
	Sat, 8 Feb 2003 01:03:42 -0500 (EST)
From: "Sergey Klyushin" <sergey.klyushin@hummingbird.com>
To: "'Mike Eisler'" <mike@eisler.com>, <nfsv4-wg@sunroof.eng.sun.com>
Subject: RE: LOOKUPP and NFS4ERR_WRONGSEC
Date: Sat, 8 Feb 2003 01:03:33 -0500
Message-ID: <000101c2cf37$d084cbf0$8d27010a@hcl.com>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook, Build 10.0.4510
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Importance: Normal
In-Reply-To: <3E4451B3.8000904@eisler.com>
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>
Content-Transfer-Encoding: 7bit


> -----Original Message-----
> From: owner-nfsv4-wg@sunroof.eng.sun.com [mailto:owner-nfsv4-
> wg@sunroof.eng.sun.com] On Behalf Of Mike Eisler
> Sent: Friday, February 07, 2003 7:39 PM
> To: Dai_Peng@emc.com
> Cc: spencer.shepler@sun.com; nfsv4-wg@sunroof.eng.sun.com
> Subject: Re: LOOKUPP and NFS4ERR_WRONGSEC
> 
> >
> >
> >>>
> >>The client can use whatever flavor it wants in SECINFO
> >>
> >
> >Isn't it true that the SECINFO call must use at least integrity
> >to prevent active attacks to lower security requirements?
> >
> 

Paragraph 16 says "recommended", but not "MUST"

> Yes, but the attack is against the client, so the server shouldn't be
> enforcing
> it. Also, if the server supports krb5i, but the sys admin
> hasn't configured Kerberos V5, what are we do? If the
> sys admin only wants to use AUTH_SYS, an active attack to
> lower security isn't of much use; it doesn't get much lower
> than AUTH_SYS.
> 
> >
> >
> >>>					  <-- "krb5"
> >>>PUTFH fh; LOOKUP "child_export" --> [krb5]
> >>>	   <-- NFS4ERR_WRONGSEC (from PUTFH since the parent does not
> >>>support krb5)
> >>>
> >>No, the server has to honor the request. The use of a putfh with wrong
> >>security doesn't require enforcement, since putfh doesn't involve any
> >>access.
> >>
> >
> >But I remembered the spec indicated (in SECINFO impl notes) that PUTFH,
> >among other ops, was a checkpoint. Maybe it meant differently?
> >
> 
> I'll agree that the spec has a bit of self inconsistency since it
> says at one place PUTFH can return WRONGSEC, and at another

Don't we need to fix this inconsistency? The way I read protocol is 
"PUTFH MUST return WRONGSEC". What about interoperability?

> that a fix a WRONGSEC error from LOOKUP, reissue the
> PUTFH / LOOKUP with a different security flavor.
> On the other hand, returning WRONGSEC to a PUTFH
> is an implementation choice, just as allow
> differing security flavors at each file object is an implementation
> choice.
> 
> If implementors want to let a customer specify different and
> disjoint sets of security flavors on different objects, then
> the PUTFH can never return WRONGSEC. Conversely,
> If PUTFH returns WRONGSEC, then it implies that the sets of security
> flavors on
> each object are never disjoint. The third implementation choice is
> to let the customer put his server into a useless state.
> 
>     -mre
> 

I strongly believe that implementors don't have any choice here.
To allow different and disjoint security flavors at each file object 
is an ADMINISTRATOR (but not implementors) choice. 
So, PUTFH can never return WRONGSEC (see above).

Now, let's return to the original question about LOOKUPP.

> The rule is if SECINFO for { fh, name} returns flavor X, then
> a LOOKUP { fh, name} using flavor X MUST be accepted by the server.

I really like the rule, but there is no way to ask SECINFO of parent 
directory, because ".." doesn't have special meaning in NFSv4.
Now, please, be kind and don't kill me right away.
Because, SECINFO syntaxes is very close to LOOKUP, looks like we are
missing SECINFO_P (see the rule above). Otherwise there is no way
for administrator to specify different security flavors for parent and
child.
I understand that now is very bad time for new operation, so let's find 
another solution

Thanks,
Sergey

PS
I've just realized, that SETATTR doesn't return WRONGSEC. Why? 
Changing file's mode, ACL is the same danger as renaming file.

Why there is no AUTH_DH/AUTH_DES as available security flavor?




From owner-nfsv4-wg@sunroof.eng.sun.com  Sat Feb  8 04:30:27 2003
Received: from patan.sun.com (patan.Sun.COM [192.18.98.43])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id EAA16555
	for <nfsv4-archive@lists.ietf.org>; Sat, 8 Feb 2003 04:30:27 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by patan.sun.com (8.9.3+Sun/8.9.3) with ESMTP id CAA21560;
	Sat, 8 Feb 2003 02:31:26 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h189UAVL007351;
	Sat, 8 Feb 2003 01:30:10 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h189TiQb014863
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Sat, 8 Feb 2003 01:29:44 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h189TitO014862
	for nfsv4-wg-dist; Sat, 8 Feb 2003 01:29:44 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail2sun.Eng.Sun.COM (engmail2sun [129.144.134.19])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h189TgQb014855
	for <nfsv4-wg@sunroof.eng.sun.com>; Sat, 8 Feb 2003 01:29:42 -0800 (PST)
Received: from nwkea-mail-1.sun.com ([192.18.42.13])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h189TpVL007222
	for <nfsv4-wg@sunroof.eng.sun.com>; Sat, 8 Feb 2003 01:29:51 -0800 (PST)
Received: from mx01.netapp.com (mx01.netapp.com [198.95.226.53])
	by nwkea-mail-1.sun.com (8.9.3+Sun/8.9.3) with ESMTP id BAA29835
	for <nfsv4-wg@sunroof.eng.sun.com>; Sat, 8 Feb 2003 01:29:45 -0800 (PST)
Received: from frejya.corp.netapp.com (frejya [10.10.20.91])
	by mx01.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h189TiYW005484;
	Sat, 8 Feb 2003 01:29:44 -0800 (PST)
Received: from tahoe.corp.netapp.com (tahoe.corp.netapp.com [10.10.22.112])
	by frejya.corp.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h189Tiv6018831;
	Sat, 8 Feb 2003 01:29:44 -0800 (PST)
Received: from eisler.com (10.58.48.124 [10.58.48.124]) by tahoe.corp.netapp.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21)
	id 1JT75LAD; Sat, 8 Feb 2003 01:29:34 -0800
Message-ID: <3E44CDFB.90308@eisler.com>
Date: Sat, 08 Feb 2003 01:29:31 -0800
From: Mike Eisler <mike@eisler.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:0.9.4.1) Gecko/20020508 Netscape6/6.2.3
X-Accept-Language: en-us
MIME-Version: 1.0
To: Sergey Klyushin <sergey.klyushin@hummingbird.com>
CC: nfsv4-wg@sunroof.eng.sun.com
Subject: Re: LOOKUPP and NFS4ERR_WRONGSEC
References: <000101c2cf37$d084cbf0$8d27010a@hcl.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>
Content-Transfer-Encoding: 7bit

>
>
>>>
>>I'll agree that the spec has a bit of self inconsistency since it
>>says at one place PUTFH can return WRONGSEC, and at another
>>
>
>Don't we need to fix this inconsistency? The way I read protocol is 
>"PUTFH MUST return WRONGSEC". What about interoperability?
>

Well the notion of assigning different security triplets to different 
file objects
is an implementation decision. There is no MUST implement there. Thus 
why MUST it return
WRONGSEC?

PUTFH doesn't actaully compromise securitty so I don't see the issue.
Now what follows PUTFH can compromise security, and that's where
enforcement might be needed. E.g.

    COMPOUND { PUTFH  ; WRITE }

yes of course, the client better use the appropriate security.

As for interoperability, officially from an IETF perspective,
NFSv[23] don't exist. Practically they do. The measure of success
of NFSv4 will be when customers install our implementations
on their clients and servers, the clients and servers will
automatically negotiate to NFSv4, and won't notice
a thing.

If you interpret the specification your way and Peng's way, then
customers will notice a huge regression.

>>that a fix a WRONGSEC error from LOOKUP, reissue the
>>PUTFH / LOOKUP with a different security flavor.
>>On the other hand, returning WRONGSEC to a PUTFH
>>is an implementation choice, just as allow
>>differing security flavors at each file object is an implementation
>>choice.
>>
>>If implementors want to let a customer specify different and
>>disjoint sets of security flavors on different objects, then
>>the PUTFH can never return WRONGSEC. Conversely,
>>
To be clear, can never return WRONGSEC when it precedes a LOOKUP
that uses the fh that PUTFH injects.

>
>Because, SECINFO syntaxes is very close to LOOKUP, looks like we are
>missing SECINFO_P (see the rule above). Otherwise there is no way
>

Yes. I've earlier proposed a SECINFO_CUR which would allow you to do the
same thing thing, plus let clients that do:

    PUTFH  fh; WRITE -->
    <--- WRONGSEC

figure out the right security withot knowing the directory the regular 
file (fh)
is in.

>
>for administrator to specify different security flavors for parent and
>child.
>

As I wrote before, this oversight just means that:

    - LOOKUPP has to be honored if the securirty triplet of the RPC 
matches that of the
        child directory, AND
    - a READDIR using any security flavor would need to be permitted 
regardess what the security
        triplet bound to the directory is.  However, thinking that 
through, it would necessarily
        have to be honored. If the client gets WRONGSEC on a PUTFH that 
precedes a READDIR or
        any other operation, and if it doesn't know the parent dir, and 
the name of the target fh, it
        could always try each security flavor it supports. The client 
should have an idea of
        what flavors the server might want ... just keep a record of 
each unique triplet used from
        the time the client mounted the server's directory.

>
>I understand that now is very bad time for new operation, so let's find 
>another solution
>
So there are two classes of solutions. Implementation strategies versus 
protocol changes
that don't require another spin of the .x file (I think we have 
consensus that changing the .x
file, except to fix my utf8 screw up, are off the table).
Let's get consensus that we should solve it via an implementation 
strategy or via a (non .x file changing)
protocol modification.

>
>
>Thanks,
>Sergey
>
>PS
>I've just realized, that SETATTR doesn't return WRONGSEC. Why? 
>Changing file's mode, ACL is the same danger as renaming file.
>

For the same reason WRITE doesn't. And that reason is that consensus of 
the WG
was that they wanted WRONGSEC to be returned by just the operations that 
injected
new filehandles into the operation stream.

>
>Why there is no AUTH_DH/AUTH_DES as available security flavor?
>


I don't think the specification prohibits AUTH_DH, but it certainly
doesn't recommend it or mandate it. The reason why AUTH_DES is not RECOMMEND
is discussed in RFC2695, section 2. The details are in paper cited in 
RFC2695
by La Macchia and Odlyzko. In summary, the private key can be easily
derived via bruteforce from the public key, due to the 192 bit key length.




From owner-nfsv4-wg@sunroof.eng.sun.com  Sun Feb  9 22:31:23 2003
Received: from pheriche.sun.com (pheriche.sun.com [192.18.98.34])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id WAA13723
	for <nfsv4-archive@lists.ietf.org>; Sun, 9 Feb 2003 22:31:22 -0500 (EST)
Received: from engmail1mpk.Eng.Sun.COM ([129.146.1.45])
	by pheriche.sun.com (8.9.3+Sun/8.9.3) with ESMTP id UAA27667;
	Sun, 9 Feb 2003 20:29:50 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1A3TBVK015181;
	Sun, 9 Feb 2003 19:29:11 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1A3SxQb019079
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Sun, 9 Feb 2003 19:28:59 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h1A3SxQK019078
	for nfsv4-wg-dist; Sun, 9 Feb 2003 19:28:59 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail2sun.Eng.Sun.COM (engmail2sun [129.144.134.19])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1A3SvQb019071
	for <nfsv4-wg@sunroof.eng.sun.com>; Sun, 9 Feb 2003 19:28:57 -0800 (PST)
Received: from kathmandu.sun.com (kathmandu.Central.Sun.COM [129.147.5.36])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1A3T6VL009618
	for <nfsv4-wg@sunroof.eng.sun.com>; Sun, 9 Feb 2003 19:29:06 -0800 (PST)
Received: from mxluck.lko.tcs.co.in ([202.56.229.117])
	by kathmandu.sun.com (8.9.3+Sun/8.9.3) with ESMTP id UAA05582;
	Sun, 9 Feb 2003 20:28:57 -0700 (MST)
From: Gaurav_Gupta@lko.tcs.co.in
Received: from svrlucknow.lko.tcs.co.in (svrlucknow [157.227.8.3])
	by mxluck.lko.tcs.co.in (8.12.5/8.12.5) with ESMTP id h1AF3RPO004479;
	Mon, 10 Feb 2003 09:03:29 -0600 (GMT)
Subject: A possible conflict in draft-ietf-nfsv4-rfc3010bis-05.txt
To: spencer.shepler@sun.com, nfsv4-wg@sunroof.eng.sun.com
X-Mailer: Lotus Notes Release 5.0.6a  January 17, 2001
Message-ID: <OF81FCE7FB.6DF0C40A-ON65256CC9.0012E9A2@lko.tcs.co.in>
Date: Mon, 10 Feb 2003 08:58:46 +0530
X-MIMETrack: Serialize by Router on SVRLUCKNOW/TCSLUCKNOW/TCS(Release 5.0.6a |January 17, 2001) at
 02/10/2003 08:59:29 AM
MIME-Version: 1.0
Content-type: text/plain; charset=us-ascii
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

Looks to me a conflict in the section 8.4 of
"draft-ietf-nfsv4-rfc3010bis-05.txt".  The two statement (each enclosed
with *******) seems contrary in the context of "Blocking Locks".

   the client is requesting a blocking lock.  *****The server should
maintain
   an ordered list of pending blocking locks****.  When the conflicting
lock
   is released, the server may wait the lease period for the first
....
....
   likely to acquire the lock in a timely manner.  ******The server is not
   required to maintain a list of pending blocked locks as it is used to
   increase fairness and not correct operation******.  Because of the
...
...

Thanks!
Gaurav



From owner-nfsv4-wg@sunroof.eng.sun.com  Sun Feb  9 23:11:48 2003
Received: from kathmandu.sun.com (kathmandu.sun.com [192.18.98.36])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id XAA14545
	for <nfsv4-archive@lists.ietf.org>; Sun, 9 Feb 2003 23:11:47 -0500 (EST)
Received: from engmail1mpk.Eng.Sun.COM ([129.146.1.45])
	by kathmandu.sun.com (8.9.3+Sun/8.9.3) with ESMTP id VAA16590;
	Sun, 9 Feb 2003 21:10:42 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1A49rVK020306;
	Sun, 9 Feb 2003 20:09:53 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1A49fQb019150
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Sun, 9 Feb 2003 20:09:41 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h1A49fwl019149
	for nfsv4-wg-dist; Sun, 9 Feb 2003 20:09:41 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from phys-hanwk16-1.ebay.sun.com (phys-hanwk16-1.EBay.Sun.COM [129.149.1.5])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1A49dQb019140
	for <nfsv4-wg@sunroof.eng.sun.com>; Sun, 9 Feb 2003 20:09:39 -0800 (PST)
Received: from Sun.COM (vpn-129-147-153-61.Central.Sun.COM [129.147.153.61])
	by phys-hanwk16-1.ebay.sun.com (8.11.6+Sun/8.10.2/ENSMAIL,v2.1p1) with ESMTP id h1A49bL03733;
	Sun, 9 Feb 2003 20:09:37 -0800 (PST)
Message-ID: <3E4725DC.4040703@Sun.COM>
Date: Sun, 09 Feb 2003 22:09:00 -0600
From: David Robinson <David.Robinson@sun.com>
User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Gaurav_Gupta@lko.tcs.co.in
CC: spencer.shepler@sun.com, nfsv4-wg@sunroof.eng.sun.com
Subject: Re: A possible conflict in draft-ietf-nfsv4-rfc3010bis-05.txt
References: <OF81FCE7FB.6DF0C40A-ON65256CC9.0012E9A2@lko.tcs.co.in>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>
Content-Transfer-Encoding: 7bit

Gaurav_Gupta@lko.tcs.co.in wrote:
> Looks to me a conflict in the section 8.4 of
> "draft-ietf-nfsv4-rfc3010bis-05.txt".  The two statement (each enclosed
> with *******) seems contrary in the context of "Blocking Locks".
> 
>    the client is requesting a blocking lock.  *****The server should
> maintain
>    an ordered list of pending blocking locks****.  When the conflicting

>    likely to acquire the lock in a timely manner.  ******The server is not
>    required to maintain a list of pending blocked locks as it is used to
>    increase fairness and not correct operation******.  Because of the

In IETF terminology, should is not a requirement, only a strong
recommendation and an implementor cannot assume that the action
will be performed as recommended.

Thus this is not a contradiction. A server might not maintain
a pending blocking lock list and would still be compliant, albeit
not fair.

	-David




From owner-nfsv4-wg@sunroof.eng.sun.com  Mon Feb 10 03:00:07 2003
Received: from kathmandu.sun.com (kathmandu.sun.com [192.18.98.36])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id DAA29117
	for <nfsv4-archive@lists.ietf.org>; Mon, 10 Feb 2003 03:00:07 -0500 (EST)
Received: from engmail1mpk.Eng.Sun.COM ([129.146.1.45])
	by kathmandu.sun.com (8.9.3+Sun/8.9.3) with ESMTP id BAA22857;
	Mon, 10 Feb 2003 01:00:00 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1A7xLVK019231;
	Sun, 9 Feb 2003 23:59:21 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1A7x9Qb019338
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Sun, 9 Feb 2003 23:59:09 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h1A7x9l1019337
	for nfsv4-wg-dist; Sun, 9 Feb 2003 23:59:09 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail2sun.Eng.Sun.COM (engmail2sun [129.144.134.19])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1A7x7Qb019330
	for <nfsv4-wg@sunroof.eng.sun.com>; Sun, 9 Feb 2003 23:59:07 -0800 (PST)
Received: from patan.sun.com (patan.Central.Sun.COM [129.147.5.43])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1A7xGVL013467
	for <nfsv4-wg@sunroof.eng.sun.com>; Sun, 9 Feb 2003 23:59:16 -0800 (PST)
Received: from inet-mail1.oracle.com (inet-mail1.oracle.com [148.87.2.201])
	by patan.sun.com (8.9.3+Sun/8.9.3) with ESMTP id AAA09459
	for <nfsv4-wg@sunroof.eng.sun.com>; Mon, 10 Feb 2003 00:59:11 -0700 (MST)
Received: from inet-mail1.oracle.com (localhost [127.0.0.1])
	by inet-mail1.oracle.com (Switch-2.2.3/Switch-2.2.3) with ESMTP id h1A7xAQ02467
	for <nfsv4-wg@sunroof.eng.sun.com>; Sun, 9 Feb 2003 23:59:10 -0800 (PST)
Received: from rgmgw1.us.oracle.com (rgmgw1.us.oracle.com [138.1.191.10])
	by inet-mail1.oracle.com (Switch-2.2.3/Switch-2.2.3) with ESMTP id h1A7xAd02459
	for <nfsv4-wg@sunroof.eng.sun.com>; Sun, 9 Feb 2003 23:59:10 -0800 (PST)
Received: from rgmgw1.us.oracle.com (localhost [127.0.0.1])
	by rgmgw1.us.oracle.com (Switch-2.1.3/Switch-2.1.0) with ESMTP id h1A7x9424014
	for <nfsv4-wg@sunroof.eng.sun.com>; Mon, 10 Feb 2003 00:59:09 -0700 (MST)
Received: from web54.us.oracle.com (web54.us.oracle.com [148.87.16.70])
	by rgmgw1.us.oracle.com (Switch-2.1.3/Switch-2.1.0) with ESMTP id h1A7x6a23969
	for <nfsv4-wg@sunroof.eng.sun.com>; Mon, 10 Feb 2003 00:59:08 -0700 (MST)
Message-ID: <153694.1044863639674.JavaMail.nobody@web54.us.oracle.com>
Date: Sun, 9 Feb 2003 23:53:59 -0800 (PST)
From: "SORABH.MANGALICK" <SORABH.MANGALICK@oracle.com>
To: nfsv4-wg@sunroof.eng.sun.com
Subject: Locking directories in NFS v4
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-Mailer: Oracle Webmail Client
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>
Content-Transfer-Encoding: 7bit

Is there any provision in NFS v4 to explicitly lock the directories (and/or paths) in order to prevent their renaming while a file is being opened and/or accessed.
Thanks,
Sorabh


From owner-nfsv4-wg@sunroof.eng.sun.com  Mon Feb 10 07:56:41 2003
Received: from pheriche.sun.com (pheriche.sun.com [192.18.98.34])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id HAA07569
	for <nfsv4-archive@lists.ietf.org>; Mon, 10 Feb 2003 07:56:40 -0500 (EST)
Received: from engmail1mpk.Eng.Sun.COM ([129.146.1.45])
	by pheriche.sun.com (8.9.3+Sun/8.9.3) with ESMTP id FAA14457;
	Mon, 10 Feb 2003 05:57:39 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1ACvHVK006557;
	Mon, 10 Feb 2003 04:57:17 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1ACv5Qb022597
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Mon, 10 Feb 2003 04:57:06 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h1ACv5rA022596
	for nfsv4-wg-dist; Mon, 10 Feb 2003 04:57:05 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from sheplerathome.eng.sun.com (vpn-129-150-16-34.SFBay.Sun.COM [129.150.16.34])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1ACv2Qb022589
	for <nfsv4-wg@sunroof.eng.sun.com>; Mon, 10 Feb 2003 04:57:03 -0800 (PST)
Received: from sheplerathome.eng.sun.com (localhost [127.0.0.1])
	by sheplerathome.eng.sun.com (8.12.2+Sun/8.12.2) with ESMTP id h1ACra6Z120067
	for <nfsv4-wg@sunroof.eng.sun.com>; Mon, 10 Feb 2003 06:53:36 -0600 (CST)
Received: (from shepler@localhost)
	by sheplerathome.eng.sun.com (8.12.2+Sun/8.12.2/Submit) id h1ACra49120066
	for nfsv4-wg@sunroof.eng.sun.com; Mon, 10 Feb 2003 06:53:36 -0600 (CST)
Date: Mon, 10 Feb 2003 06:53:36 -0600
From: Spencer Shepler <shepler@eng.sun.com>
To: nfsv4-wg@sunroof.eng.sun.com
Subject: Re: Locking directories in NFS v4
Message-ID: <20030210125336.GP119261@sheplerathome.eng.sun.com>
Reply-To: spencer.shepler@sun.com
Mail-Followup-To: Spencer Shepler <shepler@eng.sun.com>,
	nfsv4-wg@sunroof.eng.sun.com
References: <153694.1044863639674.JavaMail.nobody@web54.us.oracle.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <153694.1044863639674.JavaMail.nobody@web54.us.oracle.com>
User-Agent: Mutt/1.3.99i
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

No. no provision is provided.

On Sun, SORABH.MANGALICK wrote:
> Is there any provision in NFS v4 to explicitly lock the directories (and/or paths) in order to prevent their renaming while a file is being opened and/or accessed.
> Thanks,
> Sorabh

-- 
Spencer



From owner-nfsv4-wg@sunroof.eng.sun.com  Mon Feb 10 09:22:30 2003
Received: from nwkea-mail-2.sun.com (nwkea-mail-2.sun.com [192.18.42.14])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id JAA10032
	for <nfsv4-archive@lists.ietf.org>; Mon, 10 Feb 2003 09:22:29 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by nwkea-mail-2.sun.com (8.9.3+Sun/8.9.3) with ESMTP id GAA11420;
	Mon, 10 Feb 2003 06:18:50 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1AEHbVL007262;
	Mon, 10 Feb 2003 06:17:37 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1AEHPQb022997
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Mon, 10 Feb 2003 06:17:25 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h1AEHPSe022996
	for nfsv4-wg-dist; Mon, 10 Feb 2003 06:17:25 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail2sun.Eng.Sun.COM (engmail2sun [129.144.134.19])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1AEHNQb022989
	for <nfsv4-wg@sunroof.eng.sun.com>; Mon, 10 Feb 2003 06:17:24 -0800 (PST)
Received: from nwkea-mail-1.sun.com ([192.18.42.13])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1AEHWVL007214
	for <nfsv4-wg@sunroof.eng.sun.com>; Mon, 10 Feb 2003 06:17:32 -0800 (PST)
Received: from mx01.netapp.com (mx01.netapp.com [198.95.226.53])
	by nwkea-mail-1.sun.com (8.9.3+Sun/8.9.3) with ESMTP id GAA15109
	for <nfsv4-wg@sunroof.eng.sun.com>; Mon, 10 Feb 2003 06:17:27 -0800 (PST)
Received: from frejya.corp.netapp.com (frejya [10.10.20.91])
	by mx01.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h1AEHPYW003491;
	Mon, 10 Feb 2003 06:17:25 -0800 (PST)
Received: from ussvlexc01.corp.netapp.com (ussvlexc01.corp.netapp.com [10.10.22.169])
	by frejya.corp.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h1AEHPv6015753;
	Mon, 10 Feb 2003 06:17:25 -0800 (PST)
Received: by ussvlexc01.corp.netapp.com with Internet Mail Service (5.5.2653.19)
	id <CTK0D5FL>; Mon, 10 Feb 2003 06:17:25 -0800
Message-ID: <C8CF60CFC4D8A74E9945E32CF096548A072A98@SILVER.nane.netapp.com>
From: "Noveck, Dave" <Dave.Noveck@netapp.com>
To: "'SORABH.MANGALICK'" <SORABH.MANGALICK@oracle.com>,
        nfsv4-wg@sunroof.eng.sun.com
Subject: RE: Locking directories in NFS v4
Date: Mon, 10 Feb 2003 06:17:18 -0800
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

No explicit locking.

Servers are allowed to reject renames of open files or the directories
involved in the pathname of an open file, but that is a server semantic
choice.  I would assume that NFSv4 servers on Windows would work that way,
but I don't know for sure.

There has been some discussion of directory delegation as a possible 
extension in a minor version.  That would involve a form of locking of
directories, although since delegations are recallable, it would not 
provide the sort of guarantee that an explicit mandatory dircetory lock 
would.

-----Original Message-----
From: SORABH.MANGALICK [mailto:SORABH.MANGALICK@oracle.com]
Sent: Monday, February 10, 2003 2:54 AM
To: nfsv4-wg@sunroof.eng.sun.com
Subject: Locking directories in NFS v4


Is there any provision in NFS v4 to explicitly lock the directories (and/or paths) in order to prevent their renaming while a file is being opened and/or accessed.
Thanks,
Sorabh


From owner-nfsv4-wg@sunroof.eng.sun.com  Mon Feb 10 10:48:35 2003
Received: from patan.sun.com (patan.Sun.COM [192.18.98.43])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id KAA12966
	for <nfsv4-archive@lists.ietf.org>; Mon, 10 Feb 2003 10:48:34 -0500 (EST)
Received: from engmail1mpk.Eng.Sun.COM ([129.146.1.45])
	by patan.sun.com (8.9.3+Sun/8.9.3) with ESMTP id IAA06534;
	Mon, 10 Feb 2003 08:48:43 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1AFlYVK007400;
	Mon, 10 Feb 2003 07:47:34 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1AFlNQb024410
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Mon, 10 Feb 2003 07:47:23 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h1AFlNbk024409
	for nfsv4-wg-dist; Mon, 10 Feb 2003 07:47:23 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail1mpk.Eng.Sun.COM (engmail1mpk [129.146.1.45])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1AFlKQb024399
	for <nfsv4-wg@sunroof.eng.sun.com>; Mon, 10 Feb 2003 07:47:20 -0800 (PST)
Received: from kathmandu.sun.com (kathmandu.Central.Sun.COM [129.147.5.36])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1AFlSVK007361
	for <nfsv4-wg@sunroof.eng.sun.com>; Mon, 10 Feb 2003 07:47:28 -0800 (PST)
Received: from tor01x3.hcl.com (torpsi.hcl.com [199.71.120.66])
	by kathmandu.sun.com (8.9.3+Sun/8.9.3) with ESMTP id IAA19704
	for <nfsv4-wg@sunroof.eng.sun.com>; Mon, 10 Feb 2003 08:47:23 -0700 (MST)
Received: from av0012 (av0012.hcl.com [10.1.42.241]) by tor01x3.hcl.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13)
	id 1SRFPA6A; Mon, 10 Feb 2003 10:47:18 -0500
Received: FROM mhoutside.hcl.com BY av0012 ; Mon Feb 10 10:47:43 2003 -0500
Received: from sergeylt (sergeylt.hcl.com [10.1.14.156])
	by mhoutside.hcl.com (8.11.2/8.11.2) with ESMTP id h1AFlMV20488;
	Mon, 10 Feb 2003 10:47:23 -0500 (EST)
From: "Sergey Klyushin" <sergey.klyushin@hummingbird.com>
To: "'Mike Eisler'" <mike@eisler.com>
Cc: <nfsv4-wg@sunroof.eng.sun.com>
Subject: RE: LOOKUPP and NFS4ERR_WRONGSEC
Date: Mon, 10 Feb 2003 10:47:19 -0500
Message-ID: <001901c2d11b$b1f43910$9c0e010a@hcl.com>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook, Build 10.0.4510
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
In-Reply-To: <3E44CDFB.90308@eisler.com>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by sunroof.eng.sun.com id h1AFlKQb024400
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>
Content-Transfer-Encoding: 8bit


> -----Original Message-----
> From: owner-nfsv4-wg@sunroof.eng.sun.com [mailto:owner-nfsv4-
> wg@sunroof.eng.sun.com] On Behalf Of Mike Eisler
> Sent: Saturday, February 08, 2003 4:30 AM
> To: Sergey Klyushin
> Cc: nfsv4-wg@sunroof.eng.sun.com
> Subject: Re: LOOKUPP and NFS4ERR_WRONGSEC
> 
> >
> >
> >>>
> >>I'll agree that the spec has a bit of self inconsistency since it
> >>says at one place PUTFH can return WRONGSEC, and at another
> >>
> >
> >Don't we need to fix this inconsistency? The way I read protocol is
> >"PUTFH MUST return WRONGSEC". What about interoperability?
> >
> 
> Well the notion of assigning different security triplets to different
> file objects
> is an implementation decision. There is no MUST implement there. Thus
> why MUST it return
> WRONGSEC?
> 
> PUTFH doesn't actaully compromise securitty so I don't see the issue.
> Now what follows PUTFH can compromise security, and that's where
> enforcement might be needed. E.g.
> 
>     COMPOUND { PUTFH  ; WRITE }
> 
> yes of course, the client better use the appropriate security.
> 
> 
> >>that a fix a WRONGSEC error from LOOKUP, reissue the
> >>PUTFH / LOOKUP with a different security flavor.
> >>On the other hand, returning WRONGSEC to a PUTFH
> >>is an implementation choice, just as allow
> >>differing security flavors at each file object is an implementation
> >>choice.
> >>
> >>If implementors want to let a customer specify different and
> >>disjoint sets of security flavors on different objects, then
> >>the PUTFH can never return WRONGSEC. Conversely,
> >>
> To be clear, can never return WRONGSEC when it precedes a LOOKUP
> that uses the fh that PUTFH injects.
> 

Do you mean PUTFH precedes a LOOKUP or LOOKUPP?

> >
> 
> >
> >for administrator to specify different security flavors for parent and
> >child.
> >
> 
> As I wrote before, this oversight just means that:
> 
>     - LOOKUPP has to be honored if the securirty triplet of the RPC
> matches that of the
>         child directory, AND
>     - a READDIR using any security flavor would need to be permitted
> regardess what the security
>         triplet bound to the directory is.  However, thinking that
> through, it would necessarily
>         have to be honored. If the client gets WRONGSEC on a PUTFH that
> precedes a READDIR or
>         any other operation, and if it doesn't know the parent dir, and
> the name of the target fh, it
>         could always try each security flavor it supports. The client
> should have an idea of
>         what flavors the server might want ... just keep a record of
> each unique triplet used from
>         the time the client mounted the server's directory.
> 
> >
> >I understand that now is very bad time for new operation, so let's find
> >another solution
> >
> So there are two classes of solutions. Implementation strategies versus
> protocol changes
> that don't require another spin of the .x file (I think we have
> consensus that changing the .x
> file, except to fix my utf8 screw up, are off the table).
> Let's get consensus that we should solve it via an implementation
> strategy or via a (non .x file changing)
> protocol modification.
> 

Is it possible to include in implementation section of PUTFH operation your
comments?
Personally, I like the idea that client has to 
> keep a record of each unique triplet used from the time the client mounted

> the server's directory
In this case the only exception for NOT returning WRONGSEC from PUTFH will 
be PUTFH+LOOKUPP. The rest will stay the same as specified now.

Thanks,
Sergey




From owner-nfsv4-wg@sunroof.eng.sun.com  Mon Feb 10 11:27:25 2003
Received: from nwkea-mail-2.sun.com (nwkea-mail-2.sun.com [192.18.42.14])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id LAA14453
	for <nfsv4-archive@lists.ietf.org>; Mon, 10 Feb 2003 11:27:25 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by nwkea-mail-2.sun.com (8.9.3+Sun/8.9.3) with ESMTP id IAA05414;
	Mon, 10 Feb 2003 08:23:52 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1AGMhVL003066;
	Mon, 10 Feb 2003 08:22:43 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1AGMVQb024548
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Mon, 10 Feb 2003 08:22:31 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h1AGMVZW024547
	for nfsv4-wg-dist; Mon, 10 Feb 2003 08:22:31 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail1mpk.Eng.Sun.COM (engmail1mpk [129.146.1.45])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1AGMTQb024540
	for <nfsv4-wg@sunroof.eng.sun.com>; Mon, 10 Feb 2003 08:22:29 -0800 (PST)
Received: from nwkea-mail-2.sun.com ([192.18.42.14])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1AGMcVK014724
	for <nfsv4-wg@sunroof.eng.sun.com>; Mon, 10 Feb 2003 08:22:38 -0800 (PST)
Received: from mx01.netapp.com (mx01.netapp.com [198.95.226.53])
	by nwkea-mail-2.sun.com (8.9.3+Sun/8.9.3) with ESMTP id IAA04308
	for <nfsv4-wg@sunroof.eng.sun.com>; Mon, 10 Feb 2003 08:22:32 -0800 (PST)
Received: from frejya.corp.netapp.com (frejya [10.10.20.91])
	by mx01.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h1AGMUYW010671;
	Mon, 10 Feb 2003 08:22:30 -0800 (PST)
Received: from tahoe.corp.netapp.com (tahoe.corp.netapp.com [10.10.22.112])
	by frejya.corp.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h1AGMUv6006290;
	Mon, 10 Feb 2003 08:22:30 -0800 (PST)
Received: from eisler.com (10.58.48.172 [10.58.48.172]) by tahoe.corp.netapp.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21)
	id 1JT75LAJ; Mon, 10 Feb 2003 08:22:16 -0800
Message-ID: <3E47D1B3.40009@eisler.com>
Date: Mon, 10 Feb 2003 08:22:11 -0800
From: Mike Eisler <mike@eisler.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:0.9.4.1) Gecko/20020508 Netscape6/6.2.3
X-Accept-Language: en-us
MIME-Version: 1.0
To: Sergey Klyushin <sergey.klyushin@hummingbird.com>
CC: nfsv4-wg@sunroof.eng.sun.com
Subject: Re: LOOKUPP and NFS4ERR_WRONGSEC
References: <001901c2d11b$b1f43910$9c0e010a@hcl.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>
Content-Transfer-Encoding: 7bit

>
>
>
>Is it possible to include in implementation section of PUTFH operation your
>comments?
>
First I don't know that there is rough consensus in agreement with me.
Second, any substantial changes might result in further delay of
the document's issuance as an RFC. We are now on the verge of seeing a
second NFSv4.0 ship without an RFC, and I'm getting very uneasy.

    -mre




From owner-nfsv4-wg@sunroof.eng.sun.com  Mon Feb 10 13:00:34 2003
Received: from nwkea-mail-1.sun.com (nwkea-mail-1.sun.com [192.18.42.13])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA18305
	for <nfsv4-archive@lists.ietf.org>; Mon, 10 Feb 2003 13:00:33 -0500 (EST)
Received: from engmail1mpk.Eng.Sun.COM ([129.146.1.45])
	by nwkea-mail-1.sun.com (8.9.3+Sun/8.9.3) with ESMTP id JAA27366;
	Mon, 10 Feb 2003 09:56:35 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1AHtQVK013952;
	Mon, 10 Feb 2003 09:55:26 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1AHtFQb025605
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Mon, 10 Feb 2003 09:55:15 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h1AHtFf7025604
	for nfsv4-wg-dist; Mon, 10 Feb 2003 09:55:15 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail2sun.Eng.Sun.COM (engmail2sun [129.144.134.19])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1AHtDQb025597
	for <nfsv4-wg@sunroof.eng.sun.com>; Mon, 10 Feb 2003 09:55:13 -0800 (PST)
Received: from nwkea-mail-2.sun.com ([192.18.42.14])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1AHtLVL001456
	for <nfsv4-wg@sunroof.eng.sun.com>; Mon, 10 Feb 2003 09:55:21 -0800 (PST)
Received: from mxic1.corp.emc.com ([128.222.32.10])
	by nwkea-mail-2.sun.com (8.9.3+Sun/8.9.3) with ESMTP id JAA21568
	for <nfsv4-wg@sunroof.eng.sun.com>; Mon, 10 Feb 2003 09:55:16 -0800 (PST)
From: Dai_Peng@emc.com
Received: by mxic1.corp.emc.com with Internet Mail Service (5.5.2653.19)
	id <1KDYPYTV>; Mon, 10 Feb 2003 12:55:15 -0500
Message-ID: <6335CBB2F69AD411AD3100D0B7BA38E30CF0BF6A@CORPUSMX2>
To: sergey.klyushin@hummingbird.com, mike@eisler.com
Cc: nfsv4-wg@sunroof.eng.sun.com
Subject: RE: LOOKUPP and NFS4ERR_WRONGSEC
Date: Mon, 10 Feb 2003 12:54:38 -0500
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

Here is a recap of what's been said as an attempt to clarification (mainly
for myself). Some new thoughts too...

1. PUTFH+LOOKUP

The server implementation may decide whether to impose any restrictions
on export security administration. There seem to be three common approaches
(Sc is the flavor set of the child export, Sp that of the parent),

a. Sc <= Sp (<= for subset)
b. Sc ^ Sp != {} (^ for intersection)
c. free form

To support b (when client chooses a flavor that is not a member of Sp) and
c,
PUTFH must NOT return NFS4ERR_WRONGSEC in case of security mismatch.
Instead,
it should be returned from the LOOKUP that follows.

Since the above guideline does not contradict a, it should be followed in
general.

2. PUTFH+LOOKUPP

Since SECINFO in its current form only works its way down, there is no way 
LOOKUPP can return NFS4ERR_WRONGSEC without requiring protocol modification.

This shall remain a security weakness for now unless the export security
follows the restriction outlined in 1a.

The problem can be solved with SECINFO_P which works in the opposite
direction
as SECINFO (component name is implicit in this case). I prefer SECINFO_P to
SECINFO_CUR (as Mike suggested) in this case since LOOKUPP can now return
NFS4ERR_WRONGSEC without defering that to a later operation (such as
READDIR).
Make it more symmetric to LOOKUP.

3. PUTFH+SECINFO

IMHO, this case should be treated specially.

A security sensitive client should be allowed to choose a strong flavor. The
security flavor chosen by the client does not have to be included in the
flavor list of the export. Of course the server has to be configured for it,
otherwise the request will fail at RPC authentication.

In theory, there is no connection between the security flavor used by
SECINFO
and those supported by the export. But in practice, the client may start
looking
for strong flavors from those supported by the export, followed by those in
the
mandatory set.

4. PUTFH+anything else

PUTFH must return NFS4ERR_WRONGSEC in case of security mismatch. This seems
to be the most straightforward approach without having to add
NFS4ERR_WRONGSEC
to every other operations.

But SECINFO_CUR is needed for the client to recover from this error.

Finally, we could combine different flavors of SECINFO (SECINFO,
SECINFO_CUR,
SECINFO_P) into a single operation, couldn't we?

Peng

> -----Original Message-----
> From: Sergey Klyushin [mailto:sergey.klyushin@hummingbird.com]
> Sent: Monday, February 10, 2003 10:47 AM
> To: 'Mike Eisler'
> Cc: nfsv4-wg@sunroof.eng.sun.com
> Subject: RE: LOOKUPP and NFS4ERR_WRONGSEC
> 
> 
> 
> > -----Original Message-----
> > From: owner-nfsv4-wg@sunroof.eng.sun.com [mailto:owner-nfsv4-
> > wg@sunroof.eng.sun.com] On Behalf Of Mike Eisler
> > Sent: Saturday, February 08, 2003 4:30 AM
> > To: Sergey Klyushin
> > Cc: nfsv4-wg@sunroof.eng.sun.com
> > Subject: Re: LOOKUPP and NFS4ERR_WRONGSEC
> > 
> > >
> > >
> > >>>
> > >>I'll agree that the spec has a bit of self inconsistency since it
> > >>says at one place PUTFH can return WRONGSEC, and at another
> > >>
> > >
> > >Don't we need to fix this inconsistency? The way I read protocol is
> > >"PUTFH MUST return WRONGSEC". What about interoperability?
> > >
> > 
> > Well the notion of assigning different security triplets to 
> different
> > file objects
> > is an implementation decision. There is no MUST implement 
> there. Thus
> > why MUST it return
> > WRONGSEC?
> > 
> > PUTFH doesn't actaully compromise securitty so I don't see 
> the issue.
> > Now what follows PUTFH can compromise security, and that's where
> > enforcement might be needed. E.g.
> > 
> >     COMPOUND { PUTFH  ; WRITE }
> > 
> > yes of course, the client better use the appropriate security.
> > 
> > 
> > >>that a fix a WRONGSEC error from LOOKUP, reissue the
> > >>PUTFH / LOOKUP with a different security flavor.
> > >>On the other hand, returning WRONGSEC to a PUTFH
> > >>is an implementation choice, just as allow
> > >>differing security flavors at each file object is an 
> implementation
> > >>choice.
> > >>
> > >>If implementors want to let a customer specify different and
> > >>disjoint sets of security flavors on different objects, then
> > >>the PUTFH can never return WRONGSEC. Conversely,
> > >>
> > To be clear, can never return WRONGSEC when it precedes a LOOKUP
> > that uses the fh that PUTFH injects.
> > 
> 
> Do you mean PUTFH precedes a LOOKUP or LOOKUPP?
> 
> > >
> > 
> > >
> > >for administrator to specify different security flavors 
> for parent and
> > >child.
> > >
> > 
> > As I wrote before, this oversight just means that:
> > 
> >     - LOOKUPP has to be honored if the securirty triplet of the RPC
> > matches that of the
> >         child directory, AND
> >     - a READDIR using any security flavor would need to be permitted
> > regardess what the security
> >         triplet bound to the directory is.  However, thinking that
> > through, it would necessarily
> >         have to be honored. If the client gets WRONGSEC on 
> a PUTFH that
> > precedes a READDIR or
> >         any other operation, and if it doesn't know the 
> parent dir, and
> > the name of the target fh, it
> >         could always try each security flavor it supports. 
> The client
> > should have an idea of
> >         what flavors the server might want ... just keep a record of
> > each unique triplet used from
> >         the time the client mounted the server's directory.
> > 
> > >
> > >I understand that now is very bad time for new operation, 
> so let's find
> > >another solution
> > >
> > So there are two classes of solutions. Implementation 
> strategies versus
> > protocol changes
> > that don't require another spin of the .x file (I think we have
> > consensus that changing the .x
> > file, except to fix my utf8 screw up, are off the table).
> > Let's get consensus that we should solve it via an implementation
> > strategy or via a (non .x file changing)
> > protocol modification.
> > 
> 
> Is it possible to include in implementation section of PUTFH 
> operation your
> comments?
> Personally, I like the idea that client has to 
> > keep a record of each unique triplet used from the time the 
> client mounted
> 
> > the server's directory
> In this case the only exception for NOT returning WRONGSEC 
> from PUTFH will 
> be PUTFH+LOOKUPP. The rest will stay the same as specified now.
> 
> Thanks,
> Sergey
> 
> 


From owner-nfsv4-wg@sunroof.eng.sun.com  Mon Feb 10 21:40:33 2003
Received: from nwkea-mail-1.sun.com (nwkea-mail-1.sun.com [192.18.42.13])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id VAA05929
	for <nfsv4-archive@lists.ietf.org>; Mon, 10 Feb 2003 21:40:33 -0500 (EST)
Received: from engmail1mpk.Eng.Sun.COM ([129.146.1.45])
	by nwkea-mail-1.sun.com (8.9.3+Sun/8.9.3) with ESMTP id SAA08021;
	Mon, 10 Feb 2003 18:37:35 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1B2aPVK001338;
	Mon, 10 Feb 2003 18:36:25 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1B2aEQb029268
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Mon, 10 Feb 2003 18:36:14 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h1B2aDUY029267
	for nfsv4-wg-dist; Mon, 10 Feb 2003 18:36:13 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail2sun.Eng.Sun.COM (engmail2sun [129.144.134.19])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1B2aCQb029260
	for <nfsv4-wg@sunroof.eng.sun.com>; Mon, 10 Feb 2003 18:36:12 -0800 (PST)
Received: from pheriche.sun.com (pheriche.Central.Sun.COM [129.147.5.34])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1B2aKVL012977
	for <nfsv4-wg@sunroof.eng.sun.com>; Mon, 10 Feb 2003 18:36:20 -0800 (PST)
Received: from mx01.netapp.com (mx01.netapp.com [198.95.226.53])
	by pheriche.sun.com (8.9.3+Sun/8.9.3) with ESMTP id TAA22453
	for <nfsv4-wg@sunroof.eng.sun.com>; Mon, 10 Feb 2003 19:36:14 -0700 (MST)
Received: from frejya.corp.netapp.com (frejya [10.10.20.91])
	by mx01.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h1B2a5YW022423;
	Mon, 10 Feb 2003 18:36:05 -0800 (PST)
Received: from tahoe.corp.netapp.com (tahoe.corp.netapp.com [10.10.22.112])
	by frejya.corp.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h1B2a4v6023469;
	Mon, 10 Feb 2003 18:36:04 -0800 (PST)
Received: from eisler.com (10.58.48.131 [10.58.48.131]) by tahoe.corp.netapp.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21)
	id 1JT75LAN; Mon, 10 Feb 2003 18:35:50 -0800
Message-ID: <3E48617A.6080803@eisler.com>
Date: Mon, 10 Feb 2003 18:35:38 -0800
From: Mike Eisler <mike@eisler.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:0.9.4.1) Gecko/20020508 Netscape6/6.2.3
X-Accept-Language: en-us
MIME-Version: 1.0
To: Dai_Peng@emc.com
CC: sergey.klyushin@hummingbird.com, nfsv4-wg@sunroof.eng.sun.com
Subject: Re: LOOKUPP and NFS4ERR_WRONGSEC
References: <6335CBB2F69AD411AD3100D0B7BA38E30CF0BF6A@CORPUSMX2>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>
Content-Transfer-Encoding: 7bit

Peng,

Excellent write up; you've captured the essence of the issues.

Regarding:

>The problem can be solved with SECINFO_P which works in the opposite
>direction
>as SECINFO (component name is implicit in this case). I prefer SECINFO_P to
>SECINFO_CUR (as Mike suggested) in this case since LOOKUPP can now return
>NFS4ERR_WRONGSEC without defering that to a later operation (such as
>READDIR).
>Make it more symmetric to LOOKUP.
>
[...]

>Finally, we could combine different flavors of SECINFO (SECINFO,
>SECINFO_CUR,
>SECINFO_P) into a single operation, couldn't we?
>

I suggest adding just one operation to NFSv4.1 that
takes care of SECINFO_P and SECINFO_CUR
functionaility. Say, SECINFO_NO_NAME, with single
argument:

		typedef enum {
			current_fh = 0,
			parent = 1
		} secinfo_nn4_t;

Easy to decode, and doesn't add redundant functionality.
SECINFO_NO_NAME would be in addition to SECINFO. 

If this is considered pressing enough, we could even make it
the single addition to NFSv4.1. 

	-mre






From owner-nfsv4-wg@sunroof.eng.sun.com  Tue Feb 11 09:58:30 2003
Received: from kathmandu.sun.com (kathmandu.sun.com [192.18.98.36])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id JAA07180
	for <nfsv4-archive@lists.ietf.org>; Tue, 11 Feb 2003 09:58:29 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by kathmandu.sun.com (8.9.3+Sun/8.9.3) with ESMTP id HAA23633;
	Tue, 11 Feb 2003 07:59:33 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1BEwNVL009947;
	Tue, 11 Feb 2003 06:58:24 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1BEwDQb002713
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Tue, 11 Feb 2003 06:58:13 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h1BEwD2I002712
	for nfsv4-wg-dist; Tue, 11 Feb 2003 06:58:13 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail2sun.Eng.Sun.COM (engmail2sun [129.144.134.19])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1BEwBQb002705
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 11 Feb 2003 06:58:11 -0800 (PST)
Received: from nwkea-mail-1.sun.com ([192.18.42.13])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1BEwIVL009906
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 11 Feb 2003 06:58:19 -0800 (PST)
Received: from maho3msx2.corp.emc.com (maho3msx2.corp.emc.com [128.221.11.32])
	by nwkea-mail-1.sun.com (8.9.3+Sun/8.9.3) with ESMTP id GAA09592
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 11 Feb 2003 06:58:13 -0800 (PST)
From: Dai_Peng@emc.com
Received: by maho3msx2.corp.emc.com with Internet Mail Service (5.5.2653.19)
	id <1PRJWRYS>; Tue, 11 Feb 2003 09:58:10 -0500
Message-ID: <6335CBB2F69AD411AD3100D0B7BA38E30CF0BF6E@CORPUSMX2>
To: mike@eisler.com
Cc: sergey.klyushin@hummingbird.com, nfsv4-wg@sunroof.eng.sun.com
Subject: RE: LOOKUPP and NFS4ERR_WRONGSEC
Date: Tue, 11 Feb 2003 09:57:33 -0500
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

> 
> Excellent write up; you've captured the essence of the issues.
> 

Thanks!

> 
> I suggest adding just one operation to NFSv4.1 that
> takes care of SECINFO_P and SECINFO_CUR
> functionaility. Say, SECINFO_NO_NAME, with single
> argument:
> 
> 		typedef enum {
> 			current_fh = 0,
> 			parent = 1
> 		} secinfo_nn4_t;
> 
> Easy to decode, and doesn't add redundant functionality.
> SECINFO_NO_NAME would be in addition to SECINFO. 
> 

You have my vote.

> If this is considered pressing enough, we could even make it
> the single addition to NFSv4.1. 
> 
> 	-mre
> 

Peng


From owner-nfsv4-wg@sunroof.eng.sun.com  Tue Feb 11 10:10:09 2003
Received: from patan.sun.com (patan.Sun.COM [192.18.98.43])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id KAA07630
	for <nfsv4-archive@lists.ietf.org>; Tue, 11 Feb 2003 10:10:09 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by patan.sun.com (8.9.3+Sun/8.9.3) with ESMTP id IAA04946;
	Tue, 11 Feb 2003 08:11:18 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1BFA9VL012551;
	Tue, 11 Feb 2003 07:10:09 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1BF9xQb002835
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Tue, 11 Feb 2003 07:09:59 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h1BF9x63002834
	for nfsv4-wg-dist; Tue, 11 Feb 2003 07:09:59 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail1mpk.Eng.Sun.COM (engmail1mpk [129.146.1.45])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1BF9uQb002827
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 11 Feb 2003 07:09:56 -0800 (PST)
Received: from kathmandu.sun.com (kathmandu.Central.Sun.COM [129.147.5.36])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1BFA3VK010898
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 11 Feb 2003 07:10:03 -0800 (PST)
Received: from tor01x3.hcl.com (torpsi.hcl.com [199.71.120.66])
	by kathmandu.sun.com (8.9.3+Sun/8.9.3) with ESMTP id IAA00075
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 11 Feb 2003 08:09:58 -0700 (MST)
Received: from av0012 (av0012.hcl.com [10.1.42.241]) by tor01x3.hcl.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13)
	id 1SRFP50D; Tue, 11 Feb 2003 10:09:59 -0500
Received: FROM mhoutside.hcl.com BY av0012 ; Tue Feb 11 10:10:18 2003 -0500
Received: from sergeylt (sergeylt.hcl.com [10.1.39.154])
	by mhoutside.hcl.com (8.11.2/8.11.2) with ESMTP id h1BF9uV10759;
	Tue, 11 Feb 2003 10:09:56 -0500 (EST)
From: "Sergey Klyushin" <sergey.klyushin@hummingbird.com>
To: <Dai_Peng@emc.com>, <mike@eisler.com>
Cc: <nfsv4-wg@sunroof.eng.sun.com>
Subject: RE: LOOKUPP and NFS4ERR_WRONGSEC
Date: Tue, 11 Feb 2003 10:09:54 -0500
Message-ID: <001001c2d1df$a2a0e200$9a27010a@hcl.com>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook, Build 10.0.4510
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
In-Reply-To: <6335CBB2F69AD411AD3100D0B7BA38E30CF0BF6E@CORPUSMX2>
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>
Content-Transfer-Encoding: 7bit


> -----Original Message-----
> From: Dai_Peng@emc.com [mailto:Dai_Peng@emc.com]
> Sent: Tuesday, February 11, 2003 9:58 AM
> To: mike@eisler.com
> Cc: sergey.klyushin@hummingbird.com; nfsv4-wg@sunroof.eng.sun.com
> Subject: RE: LOOKUPP and NFS4ERR_WRONGSEC
> 
> >
> > Excellent write up; you've captured the essence of the issues.
> >
> 
> Thanks!
> 
> >
> > I suggest adding just one operation to NFSv4.1 that
> > takes care of SECINFO_P and SECINFO_CUR
> > functionaility. Say, SECINFO_NO_NAME, with single
> > argument:
> >
> > 		typedef enum {
> > 			current_fh = 0,
> > 			parent = 1
> > 		} secinfo_nn4_t;
> >
> > Easy to decode, and doesn't add redundant functionality.
> > SECINFO_NO_NAME would be in addition to SECINFO.
> >
> 
> You have my vote.
> 
> > If this is considered pressing enough, we could even make it
> > the single addition to NFSv4.1.
> >
> > 	-mre
> >
> 
> Peng

Agreed
Sergey



From owner-nfsv4-wg@sunroof.eng.sun.com  Wed Feb 12 16:44:44 2003
Received: from nwkea-mail-1.sun.com (nwkea-mail-1.sun.com [192.18.42.13])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA16785
	for <nfsv4-archive@lists.ietf.org>; Wed, 12 Feb 2003 16:44:43 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by nwkea-mail-1.sun.com (8.9.3+Sun/8.9.3) with ESMTP id NAA26209;
	Wed, 12 Feb 2003 13:40:58 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1CLe1VL013876;
	Wed, 12 Feb 2003 13:40:01 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1CLdmQb016129
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Wed, 12 Feb 2003 13:39:48 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h1CLdmPF016128
	for nfsv4-wg-dist; Wed, 12 Feb 2003 13:39:48 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail1mpk.Eng.Sun.COM (engmail1mpk [129.146.1.45])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1CLdjQb016121
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 12 Feb 2003 13:39:45 -0800 (PST)
Received: from lukla.Sun.COM (lukla.Central.Sun.COM [129.147.5.31])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1CLdsVK017778
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 12 Feb 2003 13:39:54 -0800 (PST)
Received: from mx01.netapp.com (mx01.netapp.com [198.95.226.53])
	by lukla.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id OAA01013
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 12 Feb 2003 14:39:48 -0700 (MST)
Received: from frejya.corp.netapp.com (frejya [10.10.20.91])
	by mx01.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h1CLdlYW004332
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 12 Feb 2003 13:39:47 -0800 (PST)
Received: from verona.eng.netapp.com (verona-fe.eng.netapp.com [10.56.10.207])
	by frejya.corp.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h1CLdlv6015229
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 12 Feb 2003 13:39:47 -0800 (PST)
Received: (from thomas@localhost)
	by verona.eng.netapp.com (8.11.6+Sun/8.11.6) id h1CLdlj11755
	for nfsv4-wg@sunroof.eng.sun.com; Wed, 12 Feb 2003 13:39:47 -0800 (PST)
From: "Haynes, Tom" <thomas@netapp.com>
Message-Id: <200302122139.h1CLdlj11755@verona.eng.netapp.com>
Subject: Web site down?
To: nfsv4-wg@sunroof.eng.sun.com
Date: Wed, 12 Feb 2003 13:39:47 -0800 (PST)
X-Mailer: ELM [version 2.4ME++ PL40 (25)]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>
Content-Transfer-Encoding: 7bit

whois shows the domain is still registered, not that
I tried to steal it mind you, but DNS lookups fail
against it:

> nslookup nfsv4.org
Server:  split.internal.loghyr.com
Address:  172.31.17.23

*** split.internal.loghyr.com can't find nfsv4.org: Non-existent host/domain

-- 
Tom Haynes, ex-cfb
thomas@netapp.com


From owner-nfsv4-wg@sunroof.eng.sun.com  Wed Feb 12 17:56:18 2003
Received: from kathmandu.sun.com (kathmandu.sun.com [192.18.98.36])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id RAA18359
	for <nfsv4-archive@lists.ietf.org>; Wed, 12 Feb 2003 17:56:17 -0500 (EST)
Received: from engmail1mpk.Eng.Sun.COM ([129.146.1.45])
	by kathmandu.sun.com (8.9.3+Sun/8.9.3) with ESMTP id PAA29809;
	Wed, 12 Feb 2003 15:56:58 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1CMudVK013529;
	Wed, 12 Feb 2003 14:56:39 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1CMuRQb016545
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Wed, 12 Feb 2003 14:56:27 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h1CMuRVZ016544
	for nfsv4-wg-dist; Wed, 12 Feb 2003 14:56:27 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from centralmail1brm.Central.Sun.COM (centralmail1brm.Central.Sun.COM [129.147.62.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1CMuPQb016537
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 12 Feb 2003 14:56:25 -0800 (PST)
Received: from dhcp-uaus08-128-228.Central.Sun.COM (dhcp-uaus08-128-228.Central.Sun.COM [129.153.128.228])
	by centralmail1brm.Central.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1CMuY7L019943
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 12 Feb 2003 15:56:34 -0700 (MST)
Received: from dhcp-uaus08-128-228.Central.Sun.COM (localhost [127.0.0.1])
	by dhcp-uaus08-128-228.Central.Sun.COM (8.12.7+Sun/8.12.7) with ESMTP id h1CMsF3J100569
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 12 Feb 2003 16:54:15 -0600 (CST)
Received: (from shepler@localhost)
	by dhcp-uaus08-128-228.Central.Sun.COM (8.12.7+Sun/8.12.7/Submit) id h1CMsFIN100568
	for nfsv4-wg@sunroof.eng.sun.com; Wed, 12 Feb 2003 16:54:15 -0600 (CST)
Date: Wed, 12 Feb 2003 16:54:14 -0600
From: Spencer Shepler <shepler@eng.sun.com>
To: nfsv4-wg@sunroof.eng.sun.com
Subject: Re: Web site down?
Message-ID: <20030212225414.GF100366@dhcp-uaus08-128-228.central.sun.com>
Reply-To: spencer.shepler@sun.com
Mail-Followup-To: Spencer Shepler <shepler@eng.sun.com>,
	nfsv4-wg@sunroof.eng.sun.com
References: <200302122139.h1CLdlj11755@verona.eng.netapp.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <200302122139.h1CLdlj11755@verona.eng.netapp.com>
User-Agent: Mutt/1.4i
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

Yep. The system that hosts the site and the DNS resolution has been
down for the last 36hours or so.  The issue is being actively worked.

On Wed, Haynes, Tom wrote:
> whois shows the domain is still registered, not that
> I tried to steal it mind you, but DNS lookups fail
> against it:
> 
> > nslookup nfsv4.org
> Server:  split.internal.loghyr.com
> Address:  172.31.17.23
> 
> *** split.internal.loghyr.com can't find nfsv4.org: Non-existent host/domain
> 
> -- 
> Tom Haynes, ex-cfb
> thomas@netapp.com

-- 
Spencer



From owner-nfsv4-wg@sunroof.eng.sun.com  Wed Feb 12 18:00:42 2003
Received: from kathmandu.sun.com (kathmandu.sun.com [192.18.98.36])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA18441
	for <nfsv4-archive@lists.ietf.org>; Wed, 12 Feb 2003 18:00:41 -0500 (EST)
Received: from engmail1mpk.Eng.Sun.COM ([129.146.1.45])
	by kathmandu.sun.com (8.9.3+Sun/8.9.3) with ESMTP id PAA29623;
	Wed, 12 Feb 2003 15:56:29 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1CMtMVK013104;
	Wed, 12 Feb 2003 14:55:22 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1CMtAQb016530
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Wed, 12 Feb 2003 14:55:10 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h1CMtAqs016529
	for nfsv4-wg-dist; Wed, 12 Feb 2003 14:55:10 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from athyra.eng.sun.com (athyra [129.146.85.90])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1CMt8Qb016522
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 12 Feb 2003 14:55:08 -0800 (PST)
Received: from athyra (localhost [127.0.0.1])
	by athyra.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h1CMssT3026334;
	Wed, 12 Feb 2003 14:54:54 -0800 (PST)
Message-Id: <200302122254.h1CMssT3026334@athyra.eng.sun.com>
From: mike.kupfer@sun.com
To: "Haynes, Tom" <thomas@netapp.com>
cc: nfsv4-wg@sunroof.eng.sun.com
Subject: Re: Web site down? 
In-Reply-To: Your message of "Wed, 12 Feb 2003 13:39:47 PST."
             <200302122139.h1CLdlj11755@verona.eng.netapp.com> 
Mime-Version: 1.0 (generated by tm-edit 1.8)
Content-Type: text/plain; charset=US-ASCII
Date: Wed, 12 Feb 2003 14:54:54 -0800
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

The server that hosts nfsv4.org had some problems.  It's being worked
on.

mike


From owner-nfsv4-wg@sunroof.eng.sun.com  Mon Feb 24 06:54:01 2003
Received: from nwkea-mail-1.sun.com (nwkea-mail-1.sun.com [192.18.42.13])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id GAA09552
	for <nfsv4-archive@lists.ietf.org>; Mon, 24 Feb 2003 06:54:00 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by nwkea-mail-1.sun.com (8.9.3+Sun/8.9.3) with ESMTP id DAA20608;
	Mon, 24 Feb 2003 03:51:30 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1OBomVL026466;
	Mon, 24 Feb 2003 03:50:48 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1OBob7f003112
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Mon, 24 Feb 2003 03:50:37 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h1OBobSV003111
	for nfsv4-wg-dist; Mon, 24 Feb 2003 03:50:37 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail1mpk.Eng.Sun.COM (engmail1mpk [129.146.1.45])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1OBoY7f003104
	for <nfsv4-wg@sunroof.eng.sun.com>; Mon, 24 Feb 2003 03:50:34 -0800 (PST)
Received: from nwkea-mail-2.sun.com ([192.18.42.14])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1OBogVK001006
	for <nfsv4-wg@sunroof.eng.sun.com>; Mon, 24 Feb 2003 03:50:42 -0800 (PST)
Received: from relay11.sun.com (ip150143-167-14.us.syntegra.com [150.143.167.14])
	by nwkea-mail-2.sun.com (8.9.3+Sun/8.9.3) with ESMTP id DAA24392
	for <nfsv4-wg@sunroof.eng.sun.com>; Mon, 24 Feb 2003 03:50:35 -0800 (PST)
Received: from mms12es.mms.us.syntegra.com (mms12es.mms.us.syntegra.com [150.143.168.20]) by relay11i.sun.com with ESMTP for nfsv4-wg@sunroof.eng.sun.com; Mon, 24 Feb 2003 11:50:26 Z
Received: from mms11bms.mms.us.syntegra.com by mms12es.sun.com with ESMTP for nfsv4-wg@sunroof.eng.sun.com; Mon, 24 Feb 2003 11:48:47 Z
Received: from mms12bas.mms.us.syntegra.com (mms12bas.mms.us.syntegra.com [150.143.167.20]) by mms11bms.sun.com with ESMTP for nfsv4-wg@sunroof.eng.sun.com; Mon, 24 Feb 2003 11:50:24 Z
Received: from ietf.org ([132.151.1.176] [132.151.1.176]) by relay12.sun.com with ESMTP for nfsv4-wg@sunroof.eng.sun.com; Mon, 24 Feb 2003 11:50:24 Z
Received: from CNRI.Reston.VA.US (localhost [127.0.0.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id GAA09118;
	Mon, 24 Feb 2003 06:46:28 -0500 (EST)
Message-Id: <200302241146.GAA09118@ietf.org>
Mime-Version: 1.0
Content-Type: Multipart/Mixed; Boundary="NextPart"
To: IETF-Announce:;
Cc: nfsv4-wg@sunroof.eng.sun.com
From: Internet-Drafts@ietf.org
Reply-to: Internet-Drafts@ietf.org
Subject: I-D ACTION:draft-ietf-nfsv4-rfc1832bis-00.txt
Date: Mon, 24 Feb 2003 06:46:28 -0500
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

--NextPart

A New Internet-Draft is available from the on-line Internet-Drafts directories.
This draft is a work item of the Network File System Version 4 Working Group of the IETF.

	Title		: XDR: External Data Representation Standard
	Author(s)	: M. Eisler
	Filename	: draft-ietf-nfsv4-rfc1832bis-00.txt
	Pages		: 25
	Date		: 2003-2-21
	
This document describes the External Data Representation Standard
(XDR) protocol as it is currently deployed and accepted.

A URL for this Internet-Draft is:
http://www.ietf.org/internet-drafts/draft-ietf-nfsv4-rfc1832bis-00.txt

To remove yourself from the IETF Announcement list, send a message to 
ietf-announce-request with the word unsubscribe in the body of the message.

Internet-Drafts are also available by anonymous FTP. Login with the username
"anonymous" and a password of your e-mail address. After logging in,
type "cd internet-drafts" and then
	"get draft-ietf-nfsv4-rfc1832bis-00.txt".

A list of Internet-Drafts directories can be found in
http://www.ietf.org/shadow.html 
or ftp://ftp.ietf.org/ietf/1shadow-sites.txt


Internet-Drafts can also be obtained by e-mail.

Send a message to:
	mailserv@ietf.org.
In the body type:
	"FILE /internet-drafts/draft-ietf-nfsv4-rfc1832bis-00.txt".
	
NOTE:	The mail server at ietf.org can return the document in
	MIME-encoded form by using the "mpack" utility.  To use this
	feature, insert the command "ENCODING mime" before the "FILE"
	command.  To decode the response(s), you will need "munpack" or
	a MIME-compliant mail reader.  Different MIME-compliant mail readers
	exhibit different behavior, especially when dealing with
	"multipart" MIME messages (i.e. documents which have been split
	up into multiple messages), so check your local documentation on
	how to manipulate these messages.
		
		
Below is the data which will enable a MIME compliant mail reader
implementation to automatically retrieve the ASCII version of the
Internet-Draft.

--NextPart
Content-Type: Multipart/Alternative; Boundary="OtherAccess"

--OtherAccess
Content-Type: Message/External-body;
	access-type="mail-server";
	server="mailserv@ietf.org"

Content-Type: text/plain
Content-ID:	<2003-2-21161300.I-D@ietf.org>

ENCODING mime
FILE /internet-drafts/draft-ietf-nfsv4-rfc1832bis-00.txt

--OtherAccess
Content-Type: Message/External-body;
	name="draft-ietf-nfsv4-rfc1832bis-00.txt";
	site="ftp.ietf.org";
	access-type="anon-ftp";
	directory="internet-drafts"

Content-Type: text/plain
Content-ID:	<2003-2-21161300.I-D@ietf.org>

--OtherAccess--

--NextPart--




From owner-nfsv4-wg@sunroof.eng.sun.com  Tue Feb 25 10:43:56 2003
Received: from pheriche.sun.com (pheriche.sun.com [192.18.98.34])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id KAA03896
	for <nfsv4-archive@lists.ietf.org>; Tue, 25 Feb 2003 10:43:55 -0500 (EST)
Received: from engmail1mpk.Eng.Sun.COM ([129.146.1.45])
	by pheriche.sun.com (8.9.3+Sun/8.9.3) with ESMTP id IAA23441;
	Tue, 25 Feb 2003 08:45:14 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1PFiYVK013498;
	Tue, 25 Feb 2003 07:44:35 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1PFiM7f016704
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Tue, 25 Feb 2003 07:44:22 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h1PFiMkW016703
	for nfsv4-wg-dist; Tue, 25 Feb 2003 07:44:22 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail1mpk.Eng.Sun.COM (engmail1mpk [129.146.1.45])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1PFiK7f016696
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 25 Feb 2003 07:44:20 -0800 (PST)
Received: from lukla.Sun.COM (lukla.Central.Sun.COM [129.147.5.31])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1PFiUVK013465
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 25 Feb 2003 07:44:30 -0800 (PST)
Received: from relay12.sun.com (ip150143-167-24.us.syntegra.com [150.143.167.24])
	by lukla.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id IAA20463
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 25 Feb 2003 08:44:23 -0700 (MST)
Received: from mms11es.mms.us.syntegra.com (mms11es.mms.us.syntegra.com [150.143.168.10]) by relay12i.sun.com with ESMTP for nfsv4-wg@sunroof.eng.sun.com; Tue, 25 Feb 2003 15:44:08 Z
Received: from mms11bms.mms.us.syntegra.com by mms11es.sun.com with ESMTP for nfsv4-wg@sunroof.eng.sun.com; Tue, 25 Feb 2003 15:44:03 Z
Received: from mms11bas.mms.us.syntegra.com (mms11bas.mms.us.syntegra.com [150.143.167.10]) by mms11bms.sun.com with ESMTP for nfsv4-wg@sunroof.eng.sun.com; Tue, 25 Feb 2003 15:44:02 Z
Received: from e32.co.us.ibm.com (e32.co.us.ibm.com [32.97.110.130]) by relay11.sun.com with ESMTP for nfsv4-wg@sunroof.eng.sun.com; Tue, 25 Feb 2003 15:44:02 Z
Received: from westrelay04.boulder.ibm.com (westrelay04.boulder.ibm.com [9.17.193.32])
	by e32.co.us.ibm.com (8.12.7/8.12.2) with ESMTP id h1PFhxJi008250
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 25 Feb 2003 10:43:59 -0500
Received: from d03nm113.boulder.ibm.com (d03av02.boulder.ibm.com [9.17.193.82])
	by westrelay04.boulder.ibm.com (8.12.3/NCO/VER6.5) with ESMTP id h1PFhxuJ242180
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 25 Feb 2003 08:44:00 -0700
Subject: v4 Archives page unavailable in playground.sun.com
To: nfsv4-wg@sunroof.eng.sun.com
X-Mailer: Lotus Notes Release 5.0.11   July 24, 2002
Message-Id: <OF5089DF84.4A1ED4F5-ON88256CD8.00565EA5-88256CD8.005689BF@us.ibm.com>
From: Stevan Steve Allen <scallen@us.ibm.com>
Date: Tue, 25 Feb 2003 07:43:59 -0800
X-MIMETrack: Serialize by Router on D03NM113/03/M/IBM(Release 6.0 [IBM]|December 16, 2002) at
 02/25/2003 08:43:59
MIME-Version: 1.0
Content-type: text/plain; charset=US-ASCII
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>





Following page does not come up.  Server problem?

http://playground.sun.com/pub/nfsv4/nfsv4-wg-archive/

Thanks,
Stevan C. Allen



From owner-nfsv4-wg@sunroof.eng.sun.com  Tue Feb 25 12:20:11 2003
Received: from kathmandu.sun.com (kathmandu.sun.com [192.18.98.36])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA06989
	for <nfsv4-archive@lists.ietf.org>; Tue, 25 Feb 2003 12:20:10 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by kathmandu.sun.com (8.9.3+Sun/8.9.3) with ESMTP id KAA05030;
	Tue, 25 Feb 2003 10:21:21 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1PHKZVL015935;
	Tue, 25 Feb 2003 09:20:35 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1PHKM7f016923
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Tue, 25 Feb 2003 09:20:22 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h1PHKM7R016922
	for nfsv4-wg-dist; Tue, 25 Feb 2003 09:20:22 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from jurassic.eng.sun.com (jurassic [129.146.17.55])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1PHKK7f016915
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 25 Feb 2003 09:20:20 -0800 (PST)
Received: from peyto (vpn-129-147-153-143.Central.Sun.COM [129.147.153.143])
	by jurassic.eng.sun.com (8.12.8+Sun/8.12.8) with SMTP id h1PHKMim563301;
	Tue, 25 Feb 2003 09:20:23 -0800 (PST)
Date: Tue, 25 Feb 2003 10:20:16 -0700 (MST)
From: Robert Thurlow <Robert.Thurlow@eng.sun.com>
Reply-To: Robert Thurlow <Robert.Thurlow@eng.sun.com>
Subject: Re: v4 Archives page unavailable in playground.sun.com
To: Stevan Steve Allen <scallen@us.ibm.com>
Cc: nfsv4-wg@sunroof.eng.sun.com
In-Reply-To: "Your message with ID" <OF5089DF84.4A1ED4F5-ON88256CD8.00565EA5-88256CD8.005689BF@us.ibm.com>
Message-ID: <Roam.SIMC.2.0.6.1046193616.5667.thurlow@jurassic.eng>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

> Following page does not come up.  Server problem?
> 
> http://playground.sun.com/pub/nfsv4/nfsv4-wg-archive/

Yes - it's being worked, but I can't promise quick resolution :-(

Rob T



From owner-nfsv4-wg@sunroof.eng.sun.com  Tue Feb 25 15:44:00 2003
Received: from kathmandu.sun.com (kathmandu.sun.com [192.18.98.36])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA14895
	for <nfsv4-archive@lists.ietf.org>; Tue, 25 Feb 2003 15:43:59 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by kathmandu.sun.com (8.9.3+Sun/8.9.3) with ESMTP id NAA07298;
	Tue, 25 Feb 2003 13:45:40 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1PKiwVL002979;
	Tue, 25 Feb 2003 12:44:58 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1PKi17f021887
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Tue, 25 Feb 2003 12:44:01 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h1PKi0aQ021886
	for nfsv4-wg-dist; Tue, 25 Feb 2003 12:44:00 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail2sun.Eng.Sun.COM (engmail2sun [129.144.134.19])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1PKhw7f021879
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 25 Feb 2003 12:43:59 -0800 (PST)
Received: from nwkea-mail-2.sun.com ([192.18.42.14])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1PKi8VL002750
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 25 Feb 2003 12:44:08 -0800 (PST)
Received: from relay1.sun.com (ip150143-103-14.mms.us.syntegra.com [150.143.103.14] (may be forged))
	by nwkea-mail-2.sun.com (8.9.3+Sun/8.9.3) with ESMTP id MAA14398
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 25 Feb 2003 12:44:02 -0800 (PST)
Received: from mms02es.mms.us.syntegra.com (mms02es.mms.us.syntegra.com [150.143.103.140]) by relay1i.sun.com with ESMTP for nfsv4-wg@sunroof.eng.sun.com; Tue, 25 Feb 2003 20:44:00 Z
Received: from mms02bms.mms.us.syntegra.com by mms02es.sun.com with ESMTP for nfsv4-wg@sunroof.eng.sun.com; Tue, 25 Feb 2003 20:44:00 Z
Received: from mms02bas.mms.us.syntegra.com (mms02bas.mms.us.syntegra.com [150.143.103.20]) by mms02bms.sun.com with ESMTP for nfsv4-wg@sunroof.eng.sun.com; Tue, 25 Feb 2003 20:44:00 Z
Received: from mx01.netapp.com (mx01.netapp.com [198.95.226.53]) by relay2.sun.com with ESMTP for nfsv4-wg@sunroof.eng.sun.com; Tue, 25 Feb 2003 20:44:00 Z
Received: from frejya.corp.netapp.com (frejya [10.10.20.91])
	by mx01.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h1PKhxeZ006729
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 25 Feb 2003 12:43:59 -0800 (PST)
Received: from tahoe.corp.netapp.com (tahoe.corp.netapp.com [10.10.22.112])
	by frejya.corp.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h1PKhxM4018412
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 25 Feb 2003 12:43:59 -0800 (PST)
Received: from eisler.com (10.58.48.164 [10.58.48.164]) by tahoe.corp.netapp.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21)
	id 1JT75LDF; Tue, 25 Feb 2003 12:43:19 -0800
Message-Id: <3E5BD583.7010300@eisler.com>
Date: Tue, 25 Feb 2003 12:43:47 -0800
From: Mike Eisler <mike@eisler.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:0.9.4.1) Gecko/20020508 Netscape6/6.2.3
X-Accept-Language: en-us
MIME-Version: 1.0
To: nfsv4-wg@sunroof.eng.sun.com
Subject: draft-eisler-nfsv4-secinfo-00.txt
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>
Content-Transfer-Encoding: 7bit

http://www.ietf.org/internet-drafts/draft-eisler-nfsv4-secinfo-00.txt

This is the first i-d (that I know of) that proposes stuff for NFSv4.1.
This i-d addresses the SECINFO issues several of us discussed on
the wg alias some weeks back. I'd appreciate comments, either
directly, or on the alias.







From owner-nfsv4-wg@sunroof.eng.sun.com  Tue Feb 25 15:49:12 2003
Received: from pheriche.sun.com (pheriche.sun.com [192.18.98.34])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA15456
	for <nfsv4-archive@lists.ietf.org>; Tue, 25 Feb 2003 15:49:12 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by pheriche.sun.com (8.9.3+Sun/8.9.3) with ESMTP id NAA22839;
	Tue, 25 Feb 2003 13:50:26 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1PKnkVL004665;
	Tue, 25 Feb 2003 12:49:46 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1PKmt7f022076
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Tue, 25 Feb 2003 12:48:55 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h1PKmtaw022075
	for nfsv4-wg-dist; Tue, 25 Feb 2003 12:48:55 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail1mpk.Eng.Sun.COM (engmail1mpk [129.146.1.45])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1PKmr7f022068
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 25 Feb 2003 12:48:53 -0800 (PST)
Received: from patan.sun.com (patan.Central.Sun.COM [129.147.5.43])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1PKn2VK000645
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 25 Feb 2003 12:49:02 -0800 (PST)
Received: from relay1.sun.com (ip150143-103-14.mms.us.syntegra.com [150.143.103.14] (may be forged))
	by patan.sun.com (8.9.3+Sun/8.9.3) with ESMTP id NAA18395
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 25 Feb 2003 13:48:57 -0700 (MST)
Received: from mms02es.mms.us.syntegra.com (mms02es.mms.us.syntegra.com [150.143.103.140]) by relay1i.sun.com with ESMTP for nfsv4-wg@sunroof.eng.sun.com; Tue, 25 Feb 2003 20:48:55 Z
Received: from mms01bms.mms.us.syntegra.com by mms02es.sun.com with ESMTP for nfsv4-wg@sunroof.eng.sun.com; Tue, 25 Feb 2003 20:48:55 Z
Received: from mms02bas.mms.us.syntegra.com (mms02bas.mms.us.syntegra.com [150.143.103.20]) by mms01bms.sun.com with ESMTP for nfsv4-wg@sunroof.eng.sun.com; Tue, 25 Feb 2003 20:48:55 Z
Received: from mx01.netapp.com (mx01.netapp.com [198.95.226.53]) by relay2.sun.com with ESMTP for nfsv4-wg@sunroof.eng.sun.com; Tue, 25 Feb 2003 20:48:54 Z
Received: from frejya.corp.netapp.com (frejya [10.10.20.91])
	by mx01.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h1PKmseZ007088
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 25 Feb 2003 12:48:54 -0800 (PST)
Received: from tahoe.corp.netapp.com (tahoe.corp.netapp.com [10.10.22.112])
	by frejya.corp.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h1PKmrM4019424
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 25 Feb 2003 12:48:53 -0800 (PST)
Received: from eisler.com (10.58.48.164 [10.58.48.164]) by tahoe.corp.netapp.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21)
	id 1JT75LDH; Tue, 25 Feb 2003 12:48:14 -0800
Message-Id: <3E5BD6AE.9080501@eisler.com>
Date: Tue, 25 Feb 2003 12:48:46 -0800
From: Mike Eisler <mike@eisler.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:0.9.4.1) Gecko/20020508 Netscape6/6.2.3
X-Accept-Language: en-us
MIME-Version: 1.0
To: nfsv4-wg@sunroof.eng.sun.com
Subject: draft-eisler-nfsv4-ccm-00.txt
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>
Content-Transfer-Encoding: 7bit

http://www.ietf.org/internet-drafts/draft-eisler-nfsv4-ccm-00.txt

Last December (2002), there was a discussion about whether the
per RPC overhead of RPCSEC_GSS could be avoided if the
data connection was protected with IPsec. The
aforementioned i-d proposes a method for doing
so. With10G network media are coming, the
overhead of an integrity checksum of a even just
an RPC header becomes significant. What I'm
proposing allows NFSv4 implementors to
use the existing security model. I would
appreciate comments, either to me, or to
the nfsv4-wg alias. Thanks.

    -mre




From owner-nfsv4-wg@sunroof.eng.sun.com  Tue Feb 25 15:54:01 2003
Received: from kathmandu.sun.com (kathmandu.sun.com [192.18.98.36])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA15613
	for <nfsv4-archive@lists.ietf.org>; Tue, 25 Feb 2003 15:54:00 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by kathmandu.sun.com (8.9.3+Sun/8.9.3) with ESMTP id NAA13362;
	Tue, 25 Feb 2003 13:55:03 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1PKsOVL006125;
	Tue, 25 Feb 2003 12:54:24 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1PKrT7f022153
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Tue, 25 Feb 2003 12:53:29 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h1PKrTls022152
	for nfsv4-wg-dist; Tue, 25 Feb 2003 12:53:29 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail2sun.Eng.Sun.COM (engmail2sun [129.144.134.19])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1PKrQ7f022145
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 25 Feb 2003 12:53:27 -0800 (PST)
Received: from pheriche.sun.com (pheriche.Central.Sun.COM [129.147.5.34])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1PKraVL005829
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 25 Feb 2003 12:53:36 -0800 (PST)
Received: from relay12.sun.com (ip150143-167-24.us.syntegra.com [150.143.167.24])
	by pheriche.sun.com (8.9.3+Sun/8.9.3) with ESMTP id NAA24953
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 25 Feb 2003 13:53:30 -0700 (MST)
Received: from mms12es.mms.us.syntegra.com (mms12es.mms.us.syntegra.com [150.143.168.20]) by relay12i.sun.com with ESMTP for nfsv4-wg@sunroof.eng.sun.com; Tue, 25 Feb 2003 20:53:29 Z
Received: from mms11bms.mms.us.syntegra.com by mms12es.sun.com with ESMTP for nfsv4-wg@sunroof.eng.sun.com; Tue, 25 Feb 2003 20:51:48 Z
Received: from mms11bas.mms.us.syntegra.com (mms11bas.mms.us.syntegra.com [150.143.167.10]) by mms11bms.sun.com with ESMTP for nfsv4-wg@sunroof.eng.sun.com; Tue, 25 Feb 2003 20:53:29 Z
Received: from mx01.netapp.com (mx01.netapp.com [198.95.226.53]) by relay11.sun.com with ESMTP for nfsv4-wg@sunroof.eng.sun.com; Tue, 25 Feb 2003 20:53:28 Z
Received: from frejya.corp.netapp.com (frejya [10.10.20.91])
	by mx01.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h1PKrSeZ007407
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 25 Feb 2003 12:53:28 -0800 (PST)
Received: from tahoe.corp.netapp.com (tahoe.corp.netapp.com [10.10.22.112])
	by frejya.corp.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h1PKrRM4020310
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 25 Feb 2003 12:53:27 -0800 (PST)
Received: from eisler.com (10.58.48.164 [10.58.48.164]) by tahoe.corp.netapp.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21)
	id 1JT75LDJ; Tue, 25 Feb 2003 12:52:48 -0800
Message-Id: <3E5BD7C0.4050603@eisler.com>
Date: Tue, 25 Feb 2003 12:53:20 -0800
From: Mike Eisler <mike@eisler.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:0.9.4.1) Gecko/20020508 Netscape6/6.2.3
X-Accept-Language: en-us
MIME-Version: 1.0
To: nfsv4-wg@sunroof.eng.sun.com
Subject: draft-ietf-nfsv4-rfc1832bis-00.txt
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>
Content-Transfer-Encoding: 7bit

http://www.ietf.org/internet-drafts/draft-ietf-nfsv4-rfc1832bis-00.txt

This i-d makes cosmetic updates to RFC1832 (XDR) for
the purpose of allowing XDR to advance from Draft to
full Standard. (see 
http://216.239.57.100/search?q=cache:0ZbyIsqKQGUC:playground.sun.com/pub/nfsv4/nfsv4-wg-archive/2001/0242.html+xdr+eisler+mankin&hl=en&ie=UTF-8

). Please take a look and send me or the wg alias any
comments. In a few weeks, I'll ask Brian and Rob to issue a wg last call, so
that we can move this forward.




From owner-nfsv4-wg@sunroof.eng.sun.com  Tue Feb 25 18:32:11 2003
Received: from kathmandu.sun.com (kathmandu.sun.com [192.18.98.36])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA22332
	for <nfsv4-archive@lists.ietf.org>; Tue, 25 Feb 2003 18:32:10 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by kathmandu.sun.com (8.9.3+Sun/8.9.3) with ESMTP id QAA15580;
	Tue, 25 Feb 2003 16:33:44 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1PNWXVL025852;
	Tue, 25 Feb 2003 15:32:33 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1PNVa7f024143
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Tue, 25 Feb 2003 15:31:36 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h1PNVZsH024142
	for nfsv4-wg-dist; Tue, 25 Feb 2003 15:31:35 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail1mpk.Eng.Sun.COM (engmail1mpk [129.146.1.45])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1PNVX7f024135
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 25 Feb 2003 15:31:34 -0800 (PST)
Received: from kathmandu.sun.com (kathmandu.Central.Sun.COM [129.147.5.36])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1PNVgVK021271
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 25 Feb 2003 15:31:43 -0800 (PST)
Received: from relay2.sun.com (ip150143-103-24.mms.us.syntegra.com [150.143.103.24] (may be forged))
	by kathmandu.sun.com (8.9.3+Sun/8.9.3) with ESMTP id QAA13831
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 25 Feb 2003 16:31:37 -0700 (MST)
Received: from mms02es.mms.us.syntegra.com (mms02es.mms.us.syntegra.com [150.143.103.140]) by relay2i.sun.com with ESMTP for nfsv4-wg@sunroof.eng.sun.com; Tue, 25 Feb 2003 23:31:36 Z
Received: from mms01bms.mms.us.syntegra.com by mms02es.sun.com with ESMTP for nfsv4-wg@sunroof.eng.sun.com; Tue, 25 Feb 2003 23:31:35 Z
Received: from mms02bas.mms.us.syntegra.com (mms02bas.mms.us.syntegra.com [150.143.103.20]) by mms01bms.sun.com with ESMTP for nfsv4-wg@sunroof.eng.sun.com; Tue, 25 Feb 2003 23:31:35 Z
Received: from mx01.netapp.com (mx01.netapp.com [198.95.226.53]) by relay2.sun.com with ESMTP for nfsv4-wg@sunroof.eng.sun.com; Tue, 25 Feb 2003 23:31:35 Z
Received: from frejya.corp.netapp.com (frejya [10.10.20.91])
	by mx01.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h1PNVXH2019143;
	Tue, 25 Feb 2003 15:31:33 -0800 (PST)
Received: from tahoe.corp.netapp.com (tahoe.corp.netapp.com [10.10.22.112])
	by frejya.corp.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h1PNVWM4026468;
	Tue, 25 Feb 2003 15:31:33 -0800 (PST)
Received: from eisler.com (10.58.48.164 [10.58.48.164]) by tahoe.corp.netapp.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21)
	id 1JT75LDL; Tue, 25 Feb 2003 15:30:53 -0800
Message-Id: <3E5BFCC7.6050808@eisler.com>
Date: Tue, 25 Feb 2003 15:31:19 -0800
From: Mike Eisler <mike@eisler.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:0.9.4.1) Gecko/20020508 Netscape6/6.2.3
X-Accept-Language: en-us
MIME-Version: 1.0
To: Sergey Klyushin <sergey.klyushin@hummingbird.com>
CC: nfsv4-wg@sunroof.eng.sun.com
Subject: Re: draft-ietf-eisler-nfsv4-secinfo-00.txt
References: <000c01c2dc2b$b452e0b0$9c0e010a@hcl.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>
Content-Transfer-Encoding: 7bit


Sergey Klyushin wrote:

> Mike,
>
> Thanks for great draft!
> Is possible to make it standard before NFSv4.0 approval -:)


There's a real chance that this could be sent to, and approved by IESG 
before
the RFC editor published the NFSv4.0-bis RFC. It depends
on how much we as wg want to do in minor version 1.

I suggest doing uncontentious, simple stuff in v4.1 so that as
implementors we get experience with dealing with multiple
minor versions.

>
> I've included some comments below, but before going there would not
> it be easily if NFS4ERR_WRONGSEC error returns secinfo4 also?

There are plusses and minusses to that. A plus is potentially
one less round trip. The minus is that unless the client issued the
operation with integrity on, the result won't have integrity, and
so the client will need to re-issue the result. The other minus is that 
every
operation that can return WRONGSEC would now have to be revised. By the
rules of minior versioning (which can certainly be altered by the wg),
we'd have issue a dozen or so new operations. It starts to
look ugly.

>>
>> Network Working Group M. Eisler
>> Internet-Draft Editor
>> Document: draft-eisler-nfsv4-secinfo-00.txt Network Appliance, Inc.
>> February 2003
>>
>
> Why this draft is within "Network Working Group", but not in
> "NFS version 4 Working Group"?


Two reasons. First, the guidelines for i-d authors says to use
Network Working group. Second, this is a personal i-d, as opposed
to a work item i-d authorized by the wg chairs.

>>
>>
>> mechanisms available, with an order corresponding to the
>> server's preferences, the most preferred being first in the
>> array. The client is free to pick whatever security mechanism it
>> both desires and supports, or to pick in the server's preference
>> order the first one it supports. The array entries are
>> represented by the secinfo4 structure. The field 'flavor' will
>> contain a value of AUTH_NONE, AUTH_SYS (as defined in
>> [RFC1831]), or RPCSEC_GSS (as defined in [RFC2203]).
>>
>
> Does it mean that 'flavor' is restricted to AUTH_NONE, AUTH_SYS and
> RPCSEC_GSS ONLY and AUTH_DH (AUTH_DES) can't be returned?


Good point. Any flavor can be returned; NFSv4 is architected to support
any flavor. I believeAUTH_DH and AUTH_KERB4
were mentioned at some point, but because they are not standards track,
they were probably removed. (At one point in the NFSv4 specification,
the per-flavor stuff was encoded into a byte array so that we wouldn't
have this problem. Oh well). How about text like this:

    The field 'flavor' will contain a value of AUTH_NONE,
    AUTH_SYS (as defined in [RFC1831]), or RPCSEC_GSS (as defined in
    [RFC2203]). The field flavor can also any other security flavor
    registered with IANA.

    For the flavors AUTH_NONE and AUTH_SYS, no additional security
    information is returned.  The same is true of many (if not most)
    other security flavors. For a return value of RPCSEC_GSS [...]

>>
>> o For PUTROOTFH and PUTPUBFH, the client will be unable to use
>> SECINFO or SECINFO_NO_NAME operations since te SECINFO
>
>
> te -> the


Thanks.

>
>
>> operations require a current filehandle and none exist for
>> PUTROOTFH and PUTPUBFH. Therefore, the client must iterate
>> through the security triples available at the client and
>> reattempt the PUTROOTFH or PUTPUBFH operation. In the
>> unfortunate event none of the MANDATORY security triples are
>> supported by the client and server, the client SHOULD try
>> using others that support integrity. Failing that, the client
>> can try using AUTH_NONE, but because such forms lack
>> integrity checks, this puts the client at risk. Nonetheless,
>> the server SHOULD allow the client to use whatever security
>> form the client requests and the server supports, since the
>> risks of doing so are on the client.
>>
>
> What you are saying is that Server SHOULD NOT return NFS4ERR_WRONGSEC 
> error
> from PUTROOTFH and PUTPUBFH even though Client uses AUTH_NONE and Server
> configured to export with Kerberos. Is it correct?

Well that's not what I was trying to say (which was text that came from 
NFSv4.0,
which I probably wrote). If the server exports its root with Kerberos, 
then it shouldn't
let the client access its root with AUTH_SYS, if that's what the server
policy is.

I suggest this text:

    For PUTROOTFH and PUTPUBFH, the client will be unable to
    use SECINFO or SECINFO_NO_NAME operations since the SECINFO
    operations require a current filehandle and none exist for
    PUTROOTFH and PUTPUBFH.  Therefore, the client must iterate
    through the security triples available at the client and
    reattempt the PUTROOTFH or PUTPUBFH operation. In the
    unfortunate event none of the MANDATORY security triples
    are supported by the client and server, the client SHOULD
    try using others that support integrity. Failing that, the
    client can try using other forms (e.g. AUTH_SYS and AUTH_NONE),
     but because such forms lack
    integrity checks, this puts the client at risk.

>
>
>> The READDIR operation will not directly return the
>> NFS4ERR_WRONGSEC error. However, if the READDIR request
>> included a request for attributes, it is possible that the
>> READDIR request's security triple does not match that of a
>> directory entry.
>
>
> Why "it is possible ..." only in the case when "READDIR request 
> included a
> request for attributes"? Do you mean by this that security violation 
> should
> be considered ONLY when Server returns file handle while returning 
> names and


Nothing new from NFSv4.0.

If the sec used in the readdir matches how the directory being resad is 
exported,
then it is ok to return all the entries. However, it is not ok to return 
an entry's attribute
if the security doesn't match what the server demands.

>
>
> and ANY other file attribute and violating security is OK?


No. I don't think that's what the spec says. Perhas this is clearer in
the READDIR description of the NFSv4.0 specification? If not,
if you can suggest some text that makes this clear enough that would
be great.

>
>
> >If this is the case and the client has
>
>> requested the rdattr_error attribute, the server will return the
>> NFS4ERR_WRONGSEC error in rdattr_error for the entry.
>>
>
> What if client did not request rdattr_error attribute and READDIR request
> included a request for attributes and/or file handle attribute?


This is discussed in the NFSv4.0 specification, under
the section on READDIR.

But the answer is, the server has no choice but return WRONGSEC for the 
entire
operation.

>>
>> 4. Clarification of Security Negotiation in NFSv4.1
>>
>> This section attempts to clarify NFSv4.1 security negotiation issues.
>>
>
> When you are talking about "PUTFH+..." in this section, does PUTFH 
> include
> PUTROOTFH and PUTPUBFH?


Good point. There's no reason why they shouldn't apply. I'll make that 
change.

Thanks for the comments.

    -mre




From owner-nfsv4-wg@sunroof.eng.sun.com  Tue Feb 25 19:09:06 2003
Received: from kathmandu.sun.com (kathmandu.sun.com [192.18.98.36])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id TAA23117
	for <nfsv4-archive@lists.ietf.org>; Tue, 25 Feb 2003 19:09:06 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by kathmandu.sun.com (8.9.3+Sun/8.9.3) with ESMTP id RAA09947;
	Tue, 25 Feb 2003 17:10:52 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1Q0A5VL009312;
	Tue, 25 Feb 2003 16:10:05 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1Q09D7f024825
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Tue, 25 Feb 2003 16:09:13 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h1Q09DHO024824
	for nfsv4-wg-dist; Tue, 25 Feb 2003 16:09:13 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail1mpk.Eng.Sun.COM (engmail1mpk [129.146.1.45])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1Q09A7f024814
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 25 Feb 2003 16:09:11 -0800 (PST)
Received: from nwkea-mail-2.sun.com ([192.18.42.14])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1Q09KVK004377
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 25 Feb 2003 16:09:20 -0800 (PST)
Received: from relay11.sun.com (ip150143-167-14.us.syntegra.com [150.143.167.14])
	by nwkea-mail-2.sun.com (8.9.3+Sun/8.9.3) with ESMTP id QAA19520
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 25 Feb 2003 16:09:14 -0800 (PST)
Received: from mms12es.mms.us.syntegra.com (mms12es.mms.us.syntegra.com [150.143.168.20]) by relay11i.sun.com with ESMTP for nfsv4-wg@sunroof.eng.sun.com; Wed, 26 Feb 2003 00:09:12 Z
Received: from mms11bms.mms.us.syntegra.com by mms12es.sun.com with ESMTP for nfsv4-wg@sunroof.eng.sun.com; Tue, 25 Feb 2003 23:58:58 Z
Received: from mms11bas.mms.us.syntegra.com (mms11bas.mms.us.syntegra.com [150.143.167.10]) by mms11bms.sun.com with ESMTP for nfsv4-wg@sunroof.eng.sun.com; Wed, 26 Feb 2003 00:00:39 Z
Received: from e31.co.us.ibm.com (e31.co.us.ibm.com [32.97.110.129]) by relay11.sun.com with ESMTP for nfsv4-wg@sunroof.eng.sun.com; Wed, 26 Feb 2003 00:00:38 Z
Received: from westrelay04.boulder.ibm.com (westrelay04.boulder.ibm.com [9.17.193.32])
	by e31.co.us.ibm.com (8.12.7/8.12.2) with ESMTP id h1Q00ZRU050852
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 25 Feb 2003 19:00:36 -0500
Received: from d03nm113.boulder.ibm.com (d03av02.boulder.ibm.com [9.17.193.82])
	by westrelay04.boulder.ibm.com (8.12.3/NCO/VER6.5) with ESMTP id h1Q00OuJ168200
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 25 Feb 2003 17:00:25 -0700
Subject: Target date for Minor Version Only rfc's
To: nfsv4-wg@sunroof.eng.sun.com
X-Mailer: Lotus Notes Release 5.0.11   July 24, 2002
Message-Id: <OF6C0B0FDE.DC4EAA2D-ON88256CD8.00839F2E-88256CD9.0000239C@us.ibm.com>
From: Stevan Steve Allen <scallen@us.ibm.com>
Date: Tue, 25 Feb 2003 16:00:22 -0800
X-MIMETrack: Serialize by Router on D03NM113/03/M/IBM(Release 6.0 [IBM]|December 16, 2002) at
 02/25/2003 17:00:24
MIME-Version: 1.0
Content-type: text/plain; charset=US-ASCII
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>




What is the target date cutoff concerning comments, requests, etc.. for
this NFS version?

I was going to check out the first post but the server is down.

Thanks,



From owner-nfsv4-wg@sunroof.eng.sun.com  Tue Feb 25 20:10:52 2003
Received: from patan.sun.com (patan.Sun.COM [192.18.98.43])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id UAA23922
	for <nfsv4-archive@lists.ietf.org>; Tue, 25 Feb 2003 20:10:51 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by patan.sun.com (8.9.3+Sun/8.9.3) with ESMTP id SAA19473;
	Tue, 25 Feb 2003 18:11:30 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1Q1BBVL028309;
	Tue, 25 Feb 2003 17:11:11 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1Q1AF7f026107
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Tue, 25 Feb 2003 17:10:15 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h1Q1AFi0026106
	for nfsv4-wg-dist; Tue, 25 Feb 2003 17:10:15 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from sheplerathome.eng.sun.com (vpn-129-150-17-7.SFBay.Sun.COM [129.150.17.7])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1Q1AC7f026099
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 25 Feb 2003 17:10:12 -0800 (PST)
Received: from sheplerathome.eng.sun.com (localhost [127.0.0.1])
	by sheplerathome.eng.sun.com (8.12.2+Sun/8.12.2) with ESMTP id h1Q16Xg8108184
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 25 Feb 2003 19:06:33 -0600 (CST)
Received: (from shepler@localhost)
	by sheplerathome.eng.sun.com (8.12.2+Sun/8.12.2/Submit) id h1Q16Wsd108183
	for nfsv4-wg@sunroof.eng.sun.com; Tue, 25 Feb 2003 19:06:32 -0600 (CST)
Date: Tue, 25 Feb 2003 19:06:32 -0600
From: Spencer Shepler <shepler@eng.sun.com>
To: nfsv4-wg@sunroof.eng.sun.com
Subject: Re: Target date for Minor Version Only rfc's
Message-ID: <20030226010632.GO107817@sheplerathome.eng.sun.com>
Reply-To: spencer.shepler@sun.com
Mail-Followup-To: Spencer Shepler <shepler@eng.sun.com>,
	nfsv4-wg@sunroof.eng.sun.com
References: <OF6C0B0FDE.DC4EAA2D-ON88256CD8.00839F2E-88256CD9.0000239C@us.ibm.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <OF6C0B0FDE.DC4EAA2D-ON88256CD8.00839F2E-88256CD9.0000239C@us.ibm.com>
User-Agent: Mutt/1.3.99i
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

On Tue, Stevan Steve Allen wrote:
> 
> 
> 
> What is the target date cutoff concerning comments, requests, etc.. for
> this NFS version?

At this point, minor versioning work is just beginning and no
deadlines have been set.  Mike E. has expressed an interest in keeping
NFSv4.1 very simple so as to let implementors the ability to gain
experience with the protocol's methodology while not undertaking
something very large.

Are there other opinions out there?

-- 
Spencer



From owner-nfsv4-wg@sunroof.eng.sun.com  Tue Feb 25 23:48:04 2003
Received: from pheriche.sun.com (pheriche.sun.com [192.18.98.34])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id XAA28487
	for <nfsv4-archive@lists.ietf.org>; Tue, 25 Feb 2003 23:48:03 -0500 (EST)
Received: from engmail1mpk.Eng.Sun.COM ([129.146.1.45])
	by pheriche.sun.com (8.9.3+Sun/8.9.3) with ESMTP id VAA06712;
	Tue, 25 Feb 2003 21:49:21 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1Q4mVVK019545;
	Tue, 25 Feb 2003 20:48:32 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1Q4le7f027510
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Tue, 25 Feb 2003 20:47:40 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h1Q4leGD027509
	for nfsv4-wg-dist; Tue, 25 Feb 2003 20:47:40 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from centralmail1brm.Central.Sun.COM (centralmail1brm.Central.Sun.COM [129.147.62.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1Q4lc7f027502
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 25 Feb 2003 20:47:38 -0800 (PST)
Received: from binky.central.sun.com (binky.Central.Sun.COM [129.153.128.104])
	by centralmail1brm.Central.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1Q4lk7L029789;
	Tue, 25 Feb 2003 21:47:47 -0700 (MST)
Received: from binky.central.sun.com (localhost [127.0.0.1])
	by binky.central.sun.com (8.12.5+Sun/8.12.3) with ESMTP id h1Q4jsQx004784;
	Tue, 25 Feb 2003 20:45:54 -0800 (PST)
Received: (from nw141292@localhost)
	by binky.central.sun.com (8.12.5+Sun/8.12.3/Submit) id h1Q4jr8r004783;
	Tue, 25 Feb 2003 22:45:53 -0600 (CST)
Date: Tue, 25 Feb 2003 22:45:53 -0600
From: Nicolas Williams <Nicolas.Williams@sun.com>
To: Mike Eisler <mike@eisler.com>
Cc: nfsv4-wg@sunroof.eng.sun.com
Subject: Re: draft-eisler-nfsv4-ccm-00.txt
Message-ID: <20030225224553.O26746@binky.central.sun.com>
References: <3E5BD6AE.9080501@eisler.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <3E5BD6AE.9080501@eisler.com>; from mike@eisler.com on Tue, Feb 25, 2003 at 12:48:46PM -0800
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

Cool.

Comments.  Nits first.

Section 1, paragraph 3, sentence 5, "content" should be "context".
Section 1, paragraph 3, sentence 6, second appearance of "CCM" should be "GSS".

Section 2, paragraph 3, sentence 2, "content" should be "context".

Section 3.1.1, paragraph 1, sentence 2, I'm not sure what this
    "mechanism independent token" is that is referenced.

Section 4.1, paragraph 1, sentence 3, "... uses for match initiator ..."
    is grammatically incorrect and I cannot guess what exactly was meant.

Section 4.1 - since the CCM_ict_t type (initial token) is supposed to
refer to an application-level GSS context "handle" identifier, it makes
most sense [to me] to use that as the initiator's name.  This the
application would gss_import_name() with the CCM_ict_t value as the
name, then gss_acquire_cred(), then gss_init_sec_context().  A new GSS
name type may be required for this, or perhaps the existing exported
name type could be used...  This would avoid the "response_token"
boolean union discriminator you're currently using.

Also, it makes sense to me that the initiator name *is* the application
level GSS context handle name negotiated at the app level by the
initiator and acceptor.  Not only is there a clean way for the client to
refer to this handle when initiating CCM, but there is also a clean way
for the acceptor to obtain this information.  Unfortunately, the
semantics of the acceptor name and credential in CCM are not yet clear
to me; GSS_C_NO_CREDENTIAL could be used, but the problem is that when
gss_accept_sec_context() returns it should return GSS_S_COMPLETE since
this is CCM and it's a one-round-trip exchange and
gss_accept_sec_context() cannot know a priori if the initiator's token
is valid unless the acceptor provides the CCM handle via the acceptor
credential, which then brings up the question of how to make that
credential, which would be done via gss_acquire_credential, but since
GSS-API lacks a concept of credential sets how could the server know
which CCM accpeptor cred to use without inspecting the token?!  The
answer may be to treat GSS acceptor creds as a set and use
gss_add_cred() to add those app-level handle identifiers to the CCM
acceptor cred as they are created; this seems right to me, but RFC2743
says that gss_add_cred() "should" [not MUST, or even SHOULD] be used
with the same desired_name as the name used in the initial
gss_acquire_cred(); though a GSS cred can be construed to be a set of
creds for different names, RFC2743 seems to intend them to be a set of
creds of different mechanisms for the same principal.

The more I think about it (and I have not thought about it that much
yet), treating the app-level GSS ctx handles as CCM names and using
gss_add_cred() to build a single CCM acceptor cred representing all the
current app-level GSS ctx handles is the right way to go.  I don't see
this as prohibited by RFC2743, in any case, though this is certainly
stretching the original purpose of gss_add_cred().

Here [section 5] I stop reviewing the draft.  I'll read the rest some
other time.

Cheers,

Nico


On Tue, Feb 25, 2003 at 12:48:46PM -0800, Mike Eisler wrote:
> http://www.ietf.org/internet-drafts/draft-eisler-nfsv4-ccm-00.txt
> 
> Last December (2002), there was a discussion about whether the
> per RPC overhead of RPCSEC_GSS could be avoided if the
> data connection was protected with IPsec. The
> aforementioned i-d proposes a method for doing
> so. With10G network media are coming, the
> overhead of an integrity checksum of a even just
> an RPC header becomes significant. What I'm
> proposing allows NFSv4 implementors to
> use the existing security model. I would
> appreciate comments, either to me, or to
> the nfsv4-wg alias. Thanks.
> 
>     -mre
> 
> 


From owner-nfsv4-wg@sunroof.eng.sun.com  Wed Feb 26 07:33:28 2003
Received: from patan.sun.com (patan.Sun.COM [192.18.98.43])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id HAA02506
	for <nfsv4-archive@lists.ietf.org>; Wed, 26 Feb 2003 07:33:28 -0500 (EST)
Received: from engmail1mpk.Eng.Sun.COM ([129.146.1.45])
	by patan.sun.com (8.9.3+Sun/8.9.3) with ESMTP id FAA28958;
	Wed, 26 Feb 2003 05:34:58 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1QCYJVK011052;
	Wed, 26 Feb 2003 04:34:19 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1QCXQ7f000878
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Wed, 26 Feb 2003 04:33:26 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h1QCXQTm000877
	for nfsv4-wg-dist; Wed, 26 Feb 2003 04:33:26 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail2sun.Eng.Sun.COM (engmail2sun [129.144.134.19])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1QCXO7f000870
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 26 Feb 2003 04:33:24 -0800 (PST)
Received: from pheriche.sun.com (pheriche.Central.Sun.COM [129.147.5.34])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1QCXWVL004252
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 26 Feb 2003 04:33:32 -0800 (PST)
Received: from relay11.sun.com (ip150143-167-14.us.syntegra.com [150.143.167.14])
	by pheriche.sun.com (8.9.3+Sun/8.9.3) with ESMTP id FAA03058
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 26 Feb 2003 05:33:26 -0700 (MST)
Received: from mms11es.mms.us.syntegra.com (mms11es.mms.us.syntegra.com [150.143.168.10]) by relay11i.sun.com with ESMTP for nfsv4-wg@sunroof.eng.sun.com; Wed, 26 Feb 2003 12:33:26 Z
Received: from mms11bms.mms.us.syntegra.com by mms11es.sun.com with ESMTP for nfsv4-wg@sunroof.eng.sun.com; Wed, 26 Feb 2003 12:33:21 Z
Received: from mms11bas.mms.us.syntegra.com (mms11bas.mms.us.syntegra.com [150.143.167.10]) by mms11bms.sun.com with ESMTP for nfsv4-wg@sunroof.eng.sun.com; Wed, 26 Feb 2003 12:33:20 Z
Received: from mx01.netapp.com (mx01.netapp.com [198.95.226.53]) by relay11.sun.com with ESMTP for nfsv4-wg@sunroof.eng.sun.com; Wed, 26 Feb 2003 12:33:20 Z
Received: from frejya.corp.netapp.com (frejya [10.10.20.91])
	by mx01.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h1QCXJH2022965
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 26 Feb 2003 04:33:19 -0800 (PST)
Received: from black.eng.netapp.com (black.eng.netapp.com [10.56.10.24])
	by frejya.corp.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h1QCXJM4013142
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 26 Feb 2003 04:33:19 -0800 (PST)
Received: by black.eng.netapp.com with Internet Mail Service (5.5.2653.19)
	id <FL11SVVX>; Wed, 26 Feb 2003 04:33:19 -0800
Message-Id: <C8CF60CFC4D8A74E9945E32CF096548A379172@silver.nane.netapp.com>
From: "Noveck, Dave" <Dave.Noveck@netapp.com>
To: spencer.shepler@sun.com, nfsv4-wg@sunroof.eng.sun.com
Subject: RE: Target date for Minor Version Only rfc's
Date: Wed, 26 Feb 2003 04:32:27 -0800
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
content-class: urn:content-classes:message
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

It's hard to deal with this in the abstract.  People's ideas 
of what is "very simple" or "very large" are liable to differ 
significantly. 

My feeling is that there is a big overhead in doing a minor 
version and that, if we are going to do that, we want to get 
a significant benefit out of it.  So, unless there is one or 
a small set of mistakes in v4.0 that we think need to be fixed 
expeditiously (order of a month or two), we should not do a 
tiny minor version. 

On the other hand, in order to get a benefit from a minor version, 
we need to complete one in a reasonable time and so I think we 
need to stay away from taking on things that are very complex or 
not well-defined. 

To give some concreteness to this, my feeling is that we should 
be looking at a minor version that can be completed (i.e. reach 
Proposed Standard) in about a year.  I think we want to do something 
that is considerably smaller than v4.0, but still gives us significant 
benefit and so I think a year is reasonable.  There's nothing magic 
about twelve months but I think we need some target to avoid getting 
into a situation where things keep getting added to the minor version 
and it just never gets quite finished.  We need to set up some sort of 
schedule and then keep to it, even if this means that some good stuff 
gets deferred. 

Another benefit of a schedule is that it will encourage people to do 
the work of making proposals and not just keep putting off the work 
indefinitely.  I've certainly been guilty of that.  For example, 
directory delegation is something that we deferred from v4.0 because 
of time constraints and there would therefore be a lot of interest 
in a proposal for directory delegation for v4.1.  But I know that 
without a schedule/deadline of some sort, the chances of me sitting 
down and writing something on this are kind of small. 

I think we need to work out the process for a minor version.  I know 
that's not the kind of stuff we are interested in but I don't think 
it can be avoided.  We need to first come up with a schedule.  Also, 
we need some way of keeping track of what has been proposed and what 
the status of the individual items are.  I'm thinking of a very simple 
web page with links to internet-drafts (for larger stuff) and e-mails 
(for smaller stuff).  The reason I think this latter is important is 
that the key to getting this done is for the working group to insist 
that individual changes are fully fleshed out and discussed *before* 
being put into the v4.1 rfc-to-be.  Things should not be put into 
the v4.1 document "on spec" simply because they are good ideas.  If 
we do that, then v4.1 becomes hostage to the first idea that seems 
good at first but turns out not to be so good.  So we need to keep track 
of the good ideas while they are discussed and turned into something 
ready for the spec. 

    
-----Original Message----- 
From: Spencer Shepler [mailto:shepler@eng.sun.com
<mailto:shepler@eng.sun.com> ] 
Sent: Tuesday, February 25, 2003 8:07 PM 
To: nfsv4-wg@sunroof.eng.sun.com 
Subject: Re: Target date for Minor Version Only rfc's 


On Tue, Stevan Steve Allen wrote: 
> 
> 
> 
> What is the target date cutoff concerning comments, requests, etc.. for 
> this NFS version? 

At this point, minor versioning work is just beginning and no 
deadlines have been set.  Mike E. has expressed an interest in keeping 
NFSv4.1 very simple so as to let implementors the ability to gain 
experience with the protocol's methodology while not undertaking 
something very large. 

Are there other opinions out there? 

-- 
Spencer 



From owner-nfsv4-wg@sunroof.eng.sun.com  Wed Feb 26 09:23:51 2003
Received: from nwkea-mail-2.sun.com (nwkea-mail-2.sun.com [192.18.42.14])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id JAA06648
	for <nfsv4-archive@lists.ietf.org>; Wed, 26 Feb 2003 09:23:50 -0500 (EST)
Received: from engmail1mpk.Eng.Sun.COM ([129.146.1.45])
	by nwkea-mail-2.sun.com (8.9.3+Sun/8.9.3) with ESMTP id GAA21245;
	Wed, 26 Feb 2003 06:19:41 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1QEIoVK027176;
	Wed, 26 Feb 2003 06:18:50 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1QEHt7f001786
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Wed, 26 Feb 2003 06:17:55 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h1QEHtis001785
	for nfsv4-wg-dist; Wed, 26 Feb 2003 06:17:55 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from centralmail1brm.Central.Sun.COM (centralmail1brm.Central.Sun.COM [129.147.62.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1QEHr7f001778
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 26 Feb 2003 06:17:53 -0800 (PST)
Received: from binky.central.sun.com (binky.Central.Sun.COM [129.153.128.104])
	by centralmail1brm.Central.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1QEI07L022193;
	Wed, 26 Feb 2003 07:18:00 -0700 (MST)
Received: from binky.central.sun.com (localhost [127.0.0.1])
	by binky.central.sun.com (8.12.5+Sun/8.12.3) with ESMTP id h1QEG7Qx005020;
	Wed, 26 Feb 2003 06:16:07 -0800 (PST)
Received: (from nw141292@localhost)
	by binky.central.sun.com (8.12.5+Sun/8.12.3/Submit) id h1QEG6DO005019;
	Wed, 26 Feb 2003 08:16:06 -0600 (CST)
Date: Wed, 26 Feb 2003 08:16:06 -0600
From: Nicolas Williams <Nicolas.Williams@sun.com>
To: Mike Eisler <mike@eisler.com>
Cc: nfsv4-wg@sunroof.eng.sun.com
Subject: Re: draft-eisler-nfsv4-ccm-00.txt
Message-ID: <20030226081606.Q26746@binky.central.sun.com>
References: <3E5BD6AE.9080501@eisler.com> <20030225224553.O26746@binky.central.sun.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <20030225224553.O26746@binky.central.sun.com>; from Nicolas.Williams@sun.com on Tue, Feb 25, 2003 at 10:45:53PM -0600
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

More thoughts on this matter:

 - Do treat the app-level (e.g., RPCSEC_GSS) GSS ctxt handles as CCM
   initiator and acceptor names, if you want to be able to use CCM
   through the GSS API.

 - I think that initial CCM tokens should include a MIC of the applevel
   GSS ctxt handle made using the GSS context referred to by the CCM
   token.  RFC2203 allows the server to destroy GSS ctxts on an LRU
   basis and seems to allow the server to reuse GSS ctxt handles, so it
   seems to me that sending the handle name while initiating a CCM ctxt
   is not enough, that the client should prove it has the named GSS
   ctxt.

 - If the server maintains a single, global namespace for app-level GSS
   context handle names then the GSS credential set approach I mentioned
   will do, otherwise the server will have to first try accepting
   contexts using its normal GSS handle, then if gss_accept_sec_ctx()
   returns GSS_S_NO_CRED, try accepting using a CCM acceptor cred that
   refers only to the app-level handle names corresponding to the
   client (this is still a GSS credential set, but smaller than a single
   global one).

   NOTE: There is no gss_remove_cred()... so the single global GSS CCM
         cred set approach is problematic anyways...  Perhaps RPCSEC_GSS
	 servers should attempt not to reuse GSS ctxt handle names and
	 should construct handles in such a way as to make reuse
	 extremely unlikely.

Cheers,

Nico
-- 


From owner-nfsv4-wg@sunroof.eng.sun.com  Wed Feb 26 13:50:56 2003
Received: from pheriche.sun.com (pheriche.sun.com [192.18.98.34])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA19569
	for <nfsv4-archive@lists.ietf.org>; Wed, 26 Feb 2003 13:50:56 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by pheriche.sun.com (8.9.3+Sun/8.9.3) with ESMTP id LAA05241;
	Wed, 26 Feb 2003 11:51:16 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1QIosVL012390;
	Wed, 26 Feb 2003 10:50:55 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1QInw7f006132
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Wed, 26 Feb 2003 10:49:58 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h1QInw0O006131
	for nfsv4-wg-dist; Wed, 26 Feb 2003 10:49:58 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from centralmail2brm.Central.Sun.COM (centralmail2brm.Central.Sun.COM [129.147.62.14])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1QInt7f006124
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 26 Feb 2003 10:49:56 -0800 (PST)
Received: from binky.central.sun.com (binky.Central.Sun.COM [129.153.128.104])
	by centralmail2brm.Central.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1QIo3ln019990
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 26 Feb 2003 11:50:03 -0700 (MST)
Received: from binky.central.sun.com (localhost [127.0.0.1])
	by binky.central.sun.com (8.12.5+Sun/8.12.3) with ESMTP id h1QImAQx005123
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 26 Feb 2003 10:48:10 -0800 (PST)
Received: (from nw141292@localhost)
	by binky.central.sun.com (8.12.5+Sun/8.12.3/Submit) id h1QIm9Gq005122
	for nfsv4-wg@sunroof.eng.sun.com; Wed, 26 Feb 2003 12:48:09 -0600 (CST)
Date: Wed, 26 Feb 2003 12:48:09 -0600
From: Nicolas Williams <Nicolas.Williams@sun.com>
To: nfsv4-wg@sunroof.eng.sun.com
Subject: Re: draft-eisler-nfsv4-ccm-00.txt
Message-ID: <20030226124809.K19051@binky.central.sun.com>
References: <3E5BD6AE.9080501@eisler.com> <20030225224553.O26746@binky.central.sun.com> <20030226081606.Q26746@binky.central.sun.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <20030226081606.Q26746@binky.central.sun.com>; from Nicolas.Williams@sun.com on Wed, Feb 26, 2003 at 08:16:06AM -0600
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

It seems to me that the point of CCM is to use GSS for authentication
but negotiate the non-use of GSS integrity/privacy services when such
services are demonstrably provided by the network (e.g., IPsec secures
the initiator's and acceptor's communication with each other).

So here's an alternative CCM mechanism design: let CCM be a trivial
wrapper around another mechanism, much the way SPNEGO is a
pseudo-mechanism that uses other mechanisms, but simpler.

The point of such a mechanism would be that after a CCM context is
established the initiator and acceptor would delete the underlying GSS
context, thus freeing resources, and that CCM would not support
integrity or privacy protection, expecting, nay, requiring the network
(IPsec) to provide those services instead.

The biggest benefit to this model is that it would not change the
GSS-API model in the least; and existing RPCSEC_GSS codes would have to
change very little as well, perhaps not at all.  There would only be a
new set of mech OIDs, one for each GSS mech, prefixed with the OID for
CCM[*].

The only problem I find with this is that there may well be no way for
the CCM mechanism to actually determine whether the the network is
providing integrity/privacy for a given initiator/acceptor pair.  The
current draft already leaves that determination to RPCSEC_GSS, for this
very reason I'm sure - the application, RPCSEC_GSS in this case, is
better positioned to determine the level of protection afforded by the
network.

Oh, and, such a mech's name would have to be different from CCM.

Cheers,

Nico

[*] So you'd have KerberosV and CCM-KerberosV, and SPKM-1 and
    CCM-SPKM-1, and so on and so forth.


From owner-nfsv4-wg@sunroof.eng.sun.com  Wed Feb 26 15:06:42 2003
Received: from patan.sun.com (patan.Sun.COM [192.18.98.43])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA22199
	for <nfsv4-archive@lists.ietf.org>; Wed, 26 Feb 2003 15:06:41 -0500 (EST)
Received: from engmail1mpk.Eng.Sun.COM ([129.146.1.45])
	by patan.sun.com (8.9.3+Sun/8.9.3) with ESMTP id NAA07667;
	Wed, 26 Feb 2003 13:07:35 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1QK6gVK015312;
	Wed, 26 Feb 2003 12:06:42 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1QK5s7f006238
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Wed, 26 Feb 2003 12:05:54 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h1QK5sHj006237
	for nfsv4-wg-dist; Wed, 26 Feb 2003 12:05:54 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail1mpk.Eng.Sun.COM (engmail1mpk [129.146.1.45])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1QK5p7f006230
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 26 Feb 2003 12:05:52 -0800 (PST)
Received: from patan.sun.com (patan.Central.Sun.COM [129.147.5.43])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1QK5xVK015017
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 26 Feb 2003 12:06:00 -0800 (PST)
Received: from relay11.sun.com (ip150143-167-14.us.syntegra.com [150.143.167.14])
	by patan.sun.com (8.9.3+Sun/8.9.3) with ESMTP id NAA06465
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 26 Feb 2003 13:05:54 -0700 (MST)
Received: from mms12es.mms.us.syntegra.com (mms12es.mms.us.syntegra.com [150.143.168.20]) by relay11i.sun.com with ESMTP for nfsv4-wg@sunroof.eng.sun.com; Wed, 26 Feb 2003 20:05:53 Z
Received: from mms11bms.mms.us.syntegra.com by mms12es.sun.com with ESMTP; Wed, 26 Feb 2003 20:04:09 Z
Received: from mms12bas.mms.us.syntegra.com (mms12bas.mms.us.syntegra.com [150.143.167.20]) by mms11bms.sun.com with ESMTP; Wed, 26 Feb 2003 20:05:53 Z
Received: from mx01.netapp.com (mx01.netapp.com [198.95.226.53]) by relay12.sun.com with ESMTP; Wed, 26 Feb 2003 20:05:52 Z
Received: from frejya.corp.netapp.com (frejya [10.10.20.91])
	by mx01.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h1QK5eH2024454;
	Wed, 26 Feb 2003 12:05:40 -0800 (PST)
Received: from tahoe.corp.netapp.com (tahoe.corp.netapp.com [10.10.22.112])
	by frejya.corp.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h1QK5dM4010128;
	Wed, 26 Feb 2003 12:05:39 -0800 (PST)
Received: from eisler.com (10.58.48.132 [10.58.48.132]) by tahoe.corp.netapp.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21)
	id 1JT75LD0; Wed, 26 Feb 2003 12:04:59 -0800
Message-Id: <3E5D1E0C.8050509@eisler.com>
Date: Wed, 26 Feb 2003 12:05:32 -0800
From: Mike Eisler <mike@eisler.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:0.9.4.1) Gecko/20020508 Netscape6/6.2.3
X-Accept-Language: en-us
MIME-Version: 1.0
To: Nicolas Williams <Nicolas.Williams@sun.com>
CC: nfsv4-wg@sunroof.eng.sun.com
Subject: Re: draft-eisler-nfsv4-ccm-00.txt
References: <3E5BD6AE.9080501@eisler.com> <20030225224553.O26746@binky.central.sun.com> <20030226081606.Q26746@binky.central.sun.com> <20030226124809.K19051@binky.central.sun.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>
Content-Transfer-Encoding: 7bit


Nicolas Williams wrote:

> It seems to me that the point of CCM is to use GSS for authentication
> but negotiate the non-use of GSS integrity/privacy services when such
> services are demonstrably provided by the network (e.g., IPsec secures
> the initiator's and acceptor's communication with each other).
>
> So here's an alternative CCM mechanism design: let CCM be a trivial
> wrapper around another mechanism, much the way SPNEGO is a
> pseudo-mechanism that uses other mechanisms, but simpler.
>
> The point of such a mechanism would be that after a CCM context is
> established the initiator and acceptor would delete the underlying GSS
> context, thus freeing resources, and that CCM would not support
> integrity or privacy protection, expecting, nay, requiring the network
> (IPsec) to provide those services instead.
>
> The biggest benefit to this model is that it would not change the
> GSS-API model in the least; and existing RPCSEC_GSS codes would have to
> change very little as well, perhaps not at all. There would only be a
> new set of mech OIDs, one for each GSS mech, prefixed with the OID for
> CCM[*].
>
> The only problem I find with this is that there may well be no way for


There is no way at all under existing GSS-API C and Java bindings, but
see below, I don't think that's an issue.

>
> the CCM mechanism to actually determine whether the the network is
> providing integrity/privacy for a given initiator/acceptor pair. The
> current draft already leaves that determination to RPCSEC_GSS, for this
> very reason I'm sure - the application, RPCSEC_GSS in this case, is
> better positioned to determine the level of protection afforded by the
> network.


Well, my initial reaction is that your approach is better. The impact on
implementations is far less than my approach.

Regarding the problem you find, I don't think it is a problem.
The application (e.g. the NFS server and client) makes the decision
whether to create CCM vs krb5 contexts based on the presence of
network layer integrity/privacy protection. If network level protection
is present, then client can optimistically try to use CCM, and the server
can optimistically downgrade the client to CCM. You'll still
see krb5i being downgraded to CCM-krb5 (note, no trailing 'i').
If network level protection disappears, the client and server can
delete the CCM-krb5 contexts.

Thanks. I'm going to change the i-d accordingly. During the
course of changing the i-d, I might find issues, and if so, report back to
the wg.

    -mre




From owner-nfsv4-wg@sunroof.eng.sun.com  Thu Feb 27 04:27:28 2003
Received: from pheriche.sun.com (pheriche.sun.com [192.18.98.34])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id EAA23694
	for <nfsv4-archive@lists.ietf.org>; Thu, 27 Feb 2003 04:27:27 -0500 (EST)
Received: from engmail1mpk.Eng.Sun.COM ([129.146.1.45])
	by pheriche.sun.com (8.9.3+Sun/8.9.3) with ESMTP id CAA23166;
	Thu, 27 Feb 2003 02:28:54 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1R9SFVK021799;
	Thu, 27 Feb 2003 01:28:16 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1R9S47f009435
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Thu, 27 Feb 2003 01:28:05 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h1R9S4nD009434
	for nfsv4-wg-dist; Thu, 27 Feb 2003 01:28:04 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail2sun.Eng.Sun.COM (engmail2sun [129.144.134.19])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1R9S37f009427
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 27 Feb 2003 01:28:03 -0800 (PST)
Received: from patan.sun.com (patan.Central.Sun.COM [129.147.5.43])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1R9SBVL021066
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 27 Feb 2003 01:28:11 -0800 (PST)
Received: from relay2.sun.com (ip150143-103-24.mms.us.syntegra.com [150.143.103.24] (may be forged))
	by patan.sun.com (8.9.3+Sun/8.9.3) with ESMTP id CAA25527
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 27 Feb 2003 02:28:05 -0700 (MST)
Received: from mms02es.mms.us.syntegra.com (mms02es.mms.us.syntegra.com [150.143.103.140]) by relay2i.sun.com with ESMTP for nfsv4-wg@sunroof.eng.sun.com; Thu, 27 Feb 2003 09:28:05 Z
Received: from mms02bms.mms.us.syntegra.com by mms02es.sun.com with ESMTP for nfsv4-wg@sunroof.eng.sun.com; Thu, 27 Feb 2003 09:28:04 Z
Received: from mms01bas.mms.us.syntegra.com (mms01bas.mms.us.syntegra.com [150.143.103.10]) by mms02bms.sun.com with ESMTP for nfsv4-wg@sunroof.eng.sun.com; Thu, 27 Feb 2003 09:28:04 Z
Received: from e33.co.us.ibm.com (e33.co.us.ibm.com [32.97.110.131]) by relay1.sun.com with ESMTP for nfsv4-wg@sunroof.eng.sun.com; Thu, 27 Feb 2003 09:28:04 Z
Received: from westrelay02.boulder.ibm.com (westrelay02.boulder.ibm.com [9.17.195.11])
	by e33.co.us.ibm.com (8.12.7/8.12.2) with ESMTP id h1R9S24e109972
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 27 Feb 2003 04:28:02 -0500
Received: from d03nm113.boulder.ibm.com (d03av02.boulder.ibm.com [9.17.193.82])
	by westrelay02.boulder.ibm.com (8.12.3/NCO/VER6.5) with ESMTP id h1R9S14I473814
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 27 Feb 2003 02:28:01 -0700
Subject: NFSv4 Locking case study
To: nfs_wg@us.ibm.com
X-Mailer: Lotus Notes Release 5.0.11   July 24, 2002
Message-Id: <OFE8287632.A0209774-ON88256CDA.002FEB1E-88256CDA.00341FD2@us.ibm.com>
From: Stevan Steve Allen <scallen@us.ibm.com>
Date: Thu, 27 Feb 2003 01:28:03 -0800
X-MIMETrack: Serialize by Router on D03NM113/03/M/IBM(Release 6.0 [IBM]|December 16, 2002) at
 02/27/2003 02:28:01
MIME-Version: 1.0
Content-type: text/plain; charset=US-ASCII
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>




We were researching the following need and became concerned of any RFC
cutoffs.  If I have missed any cutoffs, comments and suggestions are still
welcomed.

For an application to read or write I/O atomically, all participating
applications must obtain a proper file share or byte range lock prior to
the I/O request.  To ensure well behaved applications, the customer may
restrict access (ACL).

The above implementation has the following deficiencies:

 o Does not provide a public access solution
 o Access Lists may be large (maintenance cost)
 o Trusted applications should be retested
   with each new version (cost)

Case:

Given applications which support byte range, or file share, semantics are
considered well behaved Applications which do not support such semantics
are considered rouge applications according to file access needs of various
customer solutions and platforms.  Such rouge applications may need to be
restricted from access.

File access requirements may describe a server which does not support share
upgrade and expects an exclusive latch to be held around both the read and
write request.   A client wrapping an open, byte range lock or providing
share upgrade requests on behalf of unprotected I/O (i.e. a stateid of all
zeros) may not provide the required semantics as expected from a well
behaved application.  To do so is a challenge given mixed semantics of
various platforms.  As such, there is a need in the protocol for the file
owner (server) to reflect solution/platform file access requirements to the
requesting application layer.  The NFS protocol describes such server to
application communication as servers which may require proper open file
share semantics may return NFS4ERR_OPENMODE improper READs or WRITEs when
mandatory locking is in effect.   For the client, Section 14.2.36. (Write)
describes returning the error to the application as the server may not
support a share upgrade function or attempted the operation and failed. The
"does not support upgrade" describes an permanent application requirement
which could not (should not) be interpreted by the client.

Need:

To ensure proper semantics, range level sharing solutions for performance
may require file share only or stateid of all zeros implementations to be
restricted.  Clients should not interpret this error as re-tryable.  For
reference, the NFSv4 draft mentions similar byte range semantic enforcement
(chpt. 8. "for example, some UNIX-based servers").   We suspect a need for
a specific error to represent this condition.   NFS4ERR_LOCKED is not
appropriate as it signifies a re-tryable condition.  We are proposing an
permanent error to be returned to the application layer.

This approach allows NFS server implementations to enforce needed file or
platform level locking semantics and provides reasonably predictable access
to public files during run time.  (plus catches a few appl bugs).  Given,
performance solutions such as byte range sharing usually limit participants
to similar platforms or products.   We believe this opens up more files and
increases possible NFS solutions with minimal change.

A new return value NFS4ERR_RANGEMODE for I/O type requests is proposed.  An
attribute would also be beneficial.  This is also a file owner enforced
restriction.   Descriptions below.

note: Upon receiving the error, the client should not
    obtain a byte range lock or open and retry the I/O
    request on behalf of the application.  The error
    should be returned to the client application as it
    represents a permanent failure condition (e.g.
    application not well behaved).  If we are past
    cutoff for new errors, what is the proposed
    substitute for nfs4err_rangemode below which
    UNIX based servers should return?

NFS4ERR_OPENMODE existing return
    The client attempted a READ, WRITE, LOCK or
    SETATTR operation not sanctioned by the stateid
    passed (e.g. writing to a file opened only for
    read).

NFS4ERR_RANGEMODE new return
    The client attempted a READ, WRITE, LOCK or
    SETATTR operation not sanctioned by the stateid
    passed (e.g. writing to a file without an exclusive
    byte range lock).


note: the following BYTE_RANGE & FILE_SHARE attributes
    assist clients in identifying locking semantics
    being enforced by the server.  i.e. Useful for
    determining and providing proper delegations.

BYTE_RANGE new attribute
    Application POSIX byte range locking is required.
    The server may not support lock upgrades.
    The stateid of all zeros or ones may not be
    supported.  File share only platforms such as DOS
    and Windows may not be supported.

FILE_SHARE new attribute
    Application open file share semantics are required.
    The stateid of all zeros or ones may not be
    supported. The server may not support open upgrades.

UNSPECIFIED attribute
    This is a courtesy attribute to assist in quickly
    identifying unexpected failures.

    The server has requirements or restrictions not
    reflected in the NFS protocol.  Restrictions may be
    due to platform or product limitations. Servers may
    also impose file usage requirements to address
    customer solutions or file access requirements.
    Refer to the host server documentation for
    additional information.
    (this is the minimal attr proposal being requested)


Question.  OPENs rflags "OPEN4_RESULT_LOCKTYPE_POSIX indicates the server's
file locking behavior supports the complete set of Posix locking
techniques."  I do not believe this indicates I/O requests require
proper<?> byte range locking is required.




From owner-nfsv4-wg@sunroof.eng.sun.com  Thu Feb 27 15:07:50 2003
Received: from nwkea-mail-1.sun.com (nwkea-mail-1.sun.com [192.18.42.13])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA19744
	for <nfsv4-archive@lists.ietf.org>; Thu, 27 Feb 2003 15:07:49 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by nwkea-mail-1.sun.com (8.9.3+Sun/8.9.3) with ESMTP id MAA26191;
	Thu, 27 Feb 2003 12:04:17 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1RK3PVL018011;
	Thu, 27 Feb 2003 12:03:26 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1RK3F7f013244
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Thu, 27 Feb 2003 12:03:15 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h1RK3FqD013243
	for nfsv4-wg-dist; Thu, 27 Feb 2003 12:03:15 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail1mpk.Eng.Sun.COM (engmail1mpk [129.146.1.45])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1RK3D7f013236
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 27 Feb 2003 12:03:13 -0800 (PST)
Received: from nwkea-mail-2.sun.com ([192.18.42.14])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1RK3LVK024948
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 27 Feb 2003 12:03:21 -0800 (PST)
Received: from relay1.sun.com (ip150143-103-14.mms.us.syntegra.com [150.143.103.14] (may be forged))
	by nwkea-mail-2.sun.com (8.9.3+Sun/8.9.3) with ESMTP id MAA23049
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 27 Feb 2003 12:03:15 -0800 (PST)
From: Dai_Peng@emc.com
Received: from mms01es.mms.us.syntegra.com (mms01es.mms.us.syntegra.com [150.143.103.130]) by relay1i.sun.com with ESMTP for nfsv4-wg@sunroof.eng.sun.com; Thu, 27 Feb 2003 20:03:00 Z
Received: from mms01bms.mms.us.syntegra.com by mms01es.sun.com with ESMTP for nfsv4-wg@sunroof.eng.sun.com; Thu, 27 Feb 2003 20:03:00 Z
Received: from mms01bas.mms.us.syntegra.com (mms01bas.mms.us.syntegra.com [150.143.103.10]) by mms01bms.sun.com with ESMTP for nfsv4-wg@sunroof.eng.sun.com; Thu, 27 Feb 2003 20:02:59 Z
Received: from maho3msx2.corp.emc.com (maho3msx2.corp.emc.com [128.221.11.32]) by relay1.sun.com with ESMTP for nfsv4-wg@sunroof.eng.sun.com; Thu, 27 Feb 2003 20:02:59 Z
Received: by maho3msx2.corp.emc.com with Internet Mail Service (5.5.2653.19)
	id <1PRLCNL6>; Thu, 27 Feb 2003 15:02:18 -0500
Message-Id: <6335CBB2F69AD411AD3100D0B7BA38E30CF0BF83@CORPUSMX2>
To: mike@eisler.com, Nicolas.Williams@sun.com
Cc: nfsv4-wg@sunroof.eng.sun.com
Subject: RE: draft-eisler-nfsv4-ccm-00.txt
Date: Thu, 27 Feb 2003 15:02:11 -0500
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

Here are some thoughts of mine from a rather high level.

1. Lack of authentication in CCM context initialization

According to Section 4, the way the CCM context initialization works over
RPCSEC_GSS, it is not too difficult for a malicious user to cheat the server
into establishing a new CCM context with him. All he has to do is to get an
IPSec association with the server and fake a handle (opaque bytes with no
cryptographic protection) to a previously established authentication
context.

The problem here is the lack of binding between the authentication context
established through traditional GSS mechanisms and the secure transport
channel used in CCM.

In order to provide this binding, we must integrity protect the application
context handle among other things passed in the rpc_gss_init_arg. For
example, we could generate a checksum over the application context handle,
among other things if the handle does not have enough bytes, using the
session key found in the soon-to-be-replaced authentication context, and
pass the whole thing as the opaque token in rpc_gss_init_arg. In the
response, the server has to do the same with the CCM status.

2. Implementation caveats

A new mechanism that leverages IPSec to provide user-based authentication
does provide comparable security to that of the traditional GSS mechanisms.
Yet there are some caveats unique to this new mechanism that should be
avoided when it comes to implementation.

a. The new mechanism does away with compute intensive cryptographic
operation needed for authentication using a traditional GSS mechanism.
However, it would be wrong to think authentication is totally obsoleted. I'd
like to think authentication takes a different form now - ensuring the
binding between the CCM context and the secure transport channel is legit
for each incoming request. In other words, the CCM context referenced in the
request has been established using the same secure transport channel as the
request.

b. When the same secure transport channel is multiplexed on the client side
for multiple users, the client has to ensure the CCM context is only
accessible to the user that has established it in the first place. One
possible way to ensure that is by placing CCM contexts in the privileged
address space offering only controlled indexed access. Imagine a user level
process faking a CCM context handle (established by a legit user locally)
through a shared secure transport channel without having to break into local
privilege boundary and no cryptographics involved. It is much harder to do
the same using for example Kerberos since that requires local privilege to
access other user's ticket cache.

3. Security consideration

Properly implemented CCM can offer comparable security.

a. CCM does not unnecessarily inflate the scope of the trust domain, as does
for example AUTH_SYS over IPSec. By requiring the authentication in the CCM
context initialization (using a previously established context), the trust
domain does not extend to the client.

b. Both the traditional mechanisms and CCM rely on the security of the
client to protect locally logged on users. Compromise of the client impact
all users on the same client. CCM does not make the problem worse.

c. For CCM, users on the same client may share the same secure transport
channel, meaning all traffic is protected with the same session key at a
given time. However, IMHO, it does not make cryptoanalysis of the traffic
easier compared to say Kerberos. Assuming reasonable NFS usage and typical
ticket lifetime of several hours, the attacker would have gathered a lot of
traffic anyways. On the other hand, the secure transport may provide added
benefits of automatic key exchange (AKE) management. For example, the
lifetime of an IPSec session key can be adjusted based on the traffic. This
can be made shorter than the CCM context lifetime if necessary.

Peng

> -----Original Message-----
> From: Mike Eisler [mailto:mike@eisler.com]
> Sent: Wednesday, February 26, 2003 3:06 PM
> To: Nicolas Williams
> Cc: nfsv4-wg@sunroof.eng.sun.com
> Subject: Re: draft-eisler-nfsv4-ccm-00.txt
> 
> 
> 
> Nicolas Williams wrote:
> 
> > It seems to me that the point of CCM is to use GSS for 
> authentication
> > but negotiate the non-use of GSS integrity/privacy services 
> when such
> > services are demonstrably provided by the network (e.g., 
> IPsec secures
> > the initiator's and acceptor's communication with each other).
> >
> > So here's an alternative CCM mechanism design: let CCM be a trivial
> > wrapper around another mechanism, much the way SPNEGO is a
> > pseudo-mechanism that uses other mechanisms, but simpler.
> >
> > The point of such a mechanism would be that after a CCM context is
> > established the initiator and acceptor would delete the 
> underlying GSS
> > context, thus freeing resources, and that CCM would not support
> > integrity or privacy protection, expecting, nay, requiring 
> the network
> > (IPsec) to provide those services instead.
> >
> > The biggest benefit to this model is that it would not change the
> > GSS-API model in the least; and existing RPCSEC_GSS codes 
> would have to
> > change very little as well, perhaps not at all. There would 
> only be a
> > new set of mech OIDs, one for each GSS mech, prefixed with 
> the OID for
> > CCM[*].
> >
> > The only problem I find with this is that there may well be 
> no way for
> 
> 
> There is no way at all under existing GSS-API C and Java bindings, but
> see below, I don't think that's an issue.
> 
> >
> > the CCM mechanism to actually determine whether the the network is
> > providing integrity/privacy for a given initiator/acceptor pair. The
> > current draft already leaves that determination to 
> RPCSEC_GSS, for this
> > very reason I'm sure - the application, RPCSEC_GSS in this case, is
> > better positioned to determine the level of protection 
> afforded by the
> > network.
> 
> 
> Well, my initial reaction is that your approach is better. 
> The impact on
> implementations is far less than my approach.
> 
> Regarding the problem you find, I don't think it is a problem.
> The application (e.g. the NFS server and client) makes the decision
> whether to create CCM vs krb5 contexts based on the presence of
> network layer integrity/privacy protection. If network level 
> protection
> is present, then client can optimistically try to use CCM, 
> and the server
> can optimistically downgrade the client to CCM. You'll still
> see krb5i being downgraded to CCM-krb5 (note, no trailing 'i').
> If network level protection disappears, the client and server can
> delete the CCM-krb5 contexts.
> 
> Thanks. I'm going to change the i-d accordingly. During the
> course of changing the i-d, I might find issues, and if so, 
> report back to
> the wg.
> 
>     -mre
> 
> 


From owner-nfsv4-wg@sunroof.eng.sun.com  Thu Feb 27 15:34:03 2003
Received: from pheriche.sun.com (pheriche.sun.com [192.18.98.34])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA20903
	for <nfsv4-archive@lists.ietf.org>; Thu, 27 Feb 2003 15:34:02 -0500 (EST)
Received: from engmail1mpk.Eng.Sun.COM ([129.146.1.45])
	by pheriche.sun.com (8.9.3+Sun/8.9.3) with ESMTP id NAA15362;
	Thu, 27 Feb 2003 13:35:32 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1RKYiVK009231;
	Thu, 27 Feb 2003 12:34:44 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1RKYY7f013839
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Thu, 27 Feb 2003 12:34:34 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h1RKYXsQ013838
	for nfsv4-wg-dist; Thu, 27 Feb 2003 12:34:33 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from centralmail1brm.Central.Sun.COM (centralmail1brm.Central.Sun.COM [129.147.62.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1RKYV7f013831
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 27 Feb 2003 12:34:32 -0800 (PST)
Received: from binky.central.sun.com (binky.Central.Sun.COM [129.153.128.104])
	by centralmail1brm.Central.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1RKYc7L021747;
	Thu, 27 Feb 2003 13:34:38 -0700 (MST)
Received: from binky.central.sun.com (localhost [127.0.0.1])
	by binky.central.sun.com (8.12.5+Sun/8.12.3) with ESMTP id h1RKWiQx005858;
	Thu, 27 Feb 2003 12:32:44 -0800 (PST)
Received: (from nw141292@localhost)
	by binky.central.sun.com (8.12.5+Sun/8.12.3/Submit) id h1RKWiA4005857;
	Thu, 27 Feb 2003 14:32:44 -0600 (CST)
Date: Thu, 27 Feb 2003 14:32:44 -0600
From: Nicolas Williams <Nicolas.Williams@sun.com>
To: Dai_Peng@emc.com
Cc: mike@eisler.com, nfsv4-wg@sunroof.eng.sun.com
Subject: Re: draft-eisler-nfsv4-ccm-00.txt
Message-ID: <20030227143244.D26746@binky.central.sun.com>
References: <6335CBB2F69AD411AD3100D0B7BA38E30CF0BF83@CORPUSMX2>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <6335CBB2F69AD411AD3100D0B7BA38E30CF0BF83@CORPUSMX2>; from Dai_Peng@emc.com on Thu, Feb 27, 2003 at 03:02:11PM -0500
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

Dai,

I think Mike has agreed to change the CCM draft to do something rather
very different from what appeared in -00.

The new approach is to have CCM be a trivial wrapper around other GSS
mechanisms, with the implication that those mechanisms, when wrapped
with CCM, will only be used for authentication and not for integrity or
privacy protection; it will be up to the clients and servers to ensure
that the network provides integrity and/or privacy and therefore that
use of CCM is acceptable.  I believe the new approach takes care of all
your concerns below; you can read more about it in the last two posts on
this subject prior to yours.

Cheers,

Nico

On Thu, Feb 27, 2003 at 03:02:11PM -0500, Dai_Peng@emc.com wrote:
> Here are some thoughts of mine from a rather high level.
> 
> 1. Lack of authentication in CCM context initialization
> 
> According to Section 4, the way the CCM context initialization works over
> RPCSEC_GSS, it is not too difficult for a malicious user to cheat the server
> into establishing a new CCM context with him. All he has to do is to get an
> IPSec association with the server and fake a handle (opaque bytes with no
> cryptographic protection) to a previously established authentication
> context.
> 
> The problem here is the lack of binding between the authentication context
> established through traditional GSS mechanisms and the secure transport
> channel used in CCM.
> 
> In order to provide this binding, we must integrity protect the application
> context handle among other things passed in the rpc_gss_init_arg. For
> example, we could generate a checksum over the application context handle,
> among other things if the handle does not have enough bytes, using the
> session key found in the soon-to-be-replaced authentication context, and
> pass the whole thing as the opaque token in rpc_gss_init_arg. In the
> response, the server has to do the same with the CCM status.
> 
> 2. Implementation caveats
> 
> A new mechanism that leverages IPSec to provide user-based authentication
> does provide comparable security to that of the traditional GSS mechanisms.
> Yet there are some caveats unique to this new mechanism that should be
> avoided when it comes to implementation.
> 
> a. The new mechanism does away with compute intensive cryptographic
> operation needed for authentication using a traditional GSS mechanism.
> However, it would be wrong to think authentication is totally obsoleted. I'd
> like to think authentication takes a different form now - ensuring the
> binding between the CCM context and the secure transport channel is legit
> for each incoming request. In other words, the CCM context referenced in the
> request has been established using the same secure transport channel as the
> request.
> 
> b. When the same secure transport channel is multiplexed on the client side
> for multiple users, the client has to ensure the CCM context is only
> accessible to the user that has established it in the first place. One
> possible way to ensure that is by placing CCM contexts in the privileged
> address space offering only controlled indexed access. Imagine a user level
> process faking a CCM context handle (established by a legit user locally)
> through a shared secure transport channel without having to break into local
> privilege boundary and no cryptographics involved. It is much harder to do
> the same using for example Kerberos since that requires local privilege to
> access other user's ticket cache.
> 
> 3. Security consideration
> 
> Properly implemented CCM can offer comparable security.
> 
> a. CCM does not unnecessarily inflate the scope of the trust domain, as does
> for example AUTH_SYS over IPSec. By requiring the authentication in the CCM
> context initialization (using a previously established context), the trust
> domain does not extend to the client.
> 
> b. Both the traditional mechanisms and CCM rely on the security of the
> client to protect locally logged on users. Compromise of the client impact
> all users on the same client. CCM does not make the problem worse.
> 
> c. For CCM, users on the same client may share the same secure transport
> channel, meaning all traffic is protected with the same session key at a
> given time. However, IMHO, it does not make cryptoanalysis of the traffic
> easier compared to say Kerberos. Assuming reasonable NFS usage and typical
> ticket lifetime of several hours, the attacker would have gathered a lot of
> traffic anyways. On the other hand, the secure transport may provide added
> benefits of automatic key exchange (AKE) management. For example, the
> lifetime of an IPSec session key can be adjusted based on the traffic. This
> can be made shorter than the CCM context lifetime if necessary.
> 
> Peng
> 
> > -----Original Message-----
> > From: Mike Eisler [mailto:mike@eisler.com]
> > Sent: Wednesday, February 26, 2003 3:06 PM
> > To: Nicolas Williams
> > Cc: nfsv4-wg@sunroof.eng.sun.com
> > Subject: Re: draft-eisler-nfsv4-ccm-00.txt
> > 
> > 
> > 
> > Nicolas Williams wrote:
> > 
> > > It seems to me that the point of CCM is to use GSS for 
> > authentication
> > > but negotiate the non-use of GSS integrity/privacy services 
> > when such
> > > services are demonstrably provided by the network (e.g., 
> > IPsec secures
> > > the initiator's and acceptor's communication with each other).
> > >
> > > So here's an alternative CCM mechanism design: let CCM be a trivial
> > > wrapper around another mechanism, much the way SPNEGO is a
> > > pseudo-mechanism that uses other mechanisms, but simpler.
> > >
> > > The point of such a mechanism would be that after a CCM context is
> > > established the initiator and acceptor would delete the 
> > underlying GSS
> > > context, thus freeing resources, and that CCM would not support
> > > integrity or privacy protection, expecting, nay, requiring 
> > the network
> > > (IPsec) to provide those services instead.
> > >
> > > The biggest benefit to this model is that it would not change the
> > > GSS-API model in the least; and existing RPCSEC_GSS codes 
> > would have to
> > > change very little as well, perhaps not at all. There would 
> > only be a
> > > new set of mech OIDs, one for each GSS mech, prefixed with 
> > the OID for
> > > CCM[*].
> > >
> > > The only problem I find with this is that there may well be 
> > no way for
> > 
> > 
> > There is no way at all under existing GSS-API C and Java bindings, but
> > see below, I don't think that's an issue.
> > 
> > >
> > > the CCM mechanism to actually determine whether the the network is
> > > providing integrity/privacy for a given initiator/acceptor pair. The
> > > current draft already leaves that determination to 
> > RPCSEC_GSS, for this
> > > very reason I'm sure - the application, RPCSEC_GSS in this case, is
> > > better positioned to determine the level of protection 
> > afforded by the
> > > network.
> > 
> > 
> > Well, my initial reaction is that your approach is better. 
> > The impact on
> > implementations is far less than my approach.
> > 
> > Regarding the problem you find, I don't think it is a problem.
> > The application (e.g. the NFS server and client) makes the decision
> > whether to create CCM vs krb5 contexts based on the presence of
> > network layer integrity/privacy protection. If network level 
> > protection
> > is present, then client can optimistically try to use CCM, 
> > and the server
> > can optimistically downgrade the client to CCM. You'll still
> > see krb5i being downgraded to CCM-krb5 (note, no trailing 'i').
> > If network level protection disappears, the client and server can
> > delete the CCM-krb5 contexts.
> > 
> > Thanks. I'm going to change the i-d accordingly. During the
> > course of changing the i-d, I might find issues, and if so, 
> > report back to
> > the wg.
> > 
> >     -mre
> > 
> > 


From owner-nfsv4-wg@sunroof.eng.sun.com  Thu Feb 27 16:11:08 2003
Received: from nwkea-mail-2.sun.com (nwkea-mail-2.sun.com [192.18.42.14])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA24012
	for <nfsv4-archive@lists.ietf.org>; Thu, 27 Feb 2003 16:11:07 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by nwkea-mail-2.sun.com (8.9.3+Sun/8.9.3) with ESMTP id NAA05824;
	Thu, 27 Feb 2003 13:08:08 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1RL7AVL008656;
	Thu, 27 Feb 2003 13:07:11 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1RL6x7f013948
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Thu, 27 Feb 2003 13:06:59 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h1RL6xnt013947
	for nfsv4-wg-dist; Thu, 27 Feb 2003 13:06:59 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail1mpk.Eng.Sun.COM (engmail1mpk [129.146.1.45])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1RL6v7f013940
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 27 Feb 2003 13:06:57 -0800 (PST)
Received: from patan.sun.com (patan.Central.Sun.COM [129.147.5.43])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1RL75VK019191
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 27 Feb 2003 13:07:05 -0800 (PST)
Received: from relay2.sun.com (ip150143-103-24.mms.us.syntegra.com [150.143.103.24] (may be forged))
	by patan.sun.com (8.9.3+Sun/8.9.3) with ESMTP id OAA19830
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 27 Feb 2003 14:06:59 -0700 (MST)
From: Dai_Peng@emc.com
Received: from mms02es.mms.us.syntegra.com (mms02es.mms.us.syntegra.com [150.143.103.140]) by relay2i.sun.com with ESMTP for nfsv4-wg@sunroof.eng.sun.com; Thu, 27 Feb 2003 21:06:35 Z
Received: from mms01bms.mms.us.syntegra.com by mms02es.sun.com with ESMTP for nfsv4-wg@sunroof.eng.sun.com; Thu, 27 Feb 2003 21:06:35 Z
Received: from mms01bas.mms.us.syntegra.com (mms01bas.mms.us.syntegra.com [150.143.103.10]) by mms01bms.sun.com with ESMTP for nfsv4-wg@sunroof.eng.sun.com; Thu, 27 Feb 2003 21:06:34 Z
Received: from mxic2.corp.emc.com (mxic2.corp.emc.com [128.221.31.40]) by relay1.sun.com with ESMTP for nfsv4-wg@sunroof.eng.sun.com; Thu, 27 Feb 2003 21:06:34 Z
Received: by mxic2.corp.emc.com with Internet Mail Service (5.5.2653.19)
	id <1PRH6R4Z>; Thu, 27 Feb 2003 16:06:26 -0500
Message-Id: <6335CBB2F69AD411AD3100D0B7BA38E30CF0BF84@CORPUSMX2>
To: Nicolas.Williams@sun.com
Cc: mike@eisler.com, nfsv4-wg@sunroof.eng.sun.com
Subject: RE: draft-eisler-nfsv4-ccm-00.txt
Date: Thu, 27 Feb 2003 16:05:35 -0500
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

Nico,

Yes, I am also in favor of the wrapper approach. Since it requries one
context initialization rather than two as proposed with CCM, it does make
issue #1 void.

However, if my understanding is correct, we are only using the wrapper
mechanism for the initial authentication (the one involving cryptographics
anyways) during context initialization. Subsequent data requests will not
involve any cryptographics whether for authentication/integrity/privacy, at
least not at the RPCSEC_GSS and GSS level, for performance reasons. This
does introduce some significant differences from RPCSEC_GSS over a
traditional GSS mechanism. Because of this, I'd like to think issue #2 and
the security assessment in #3 still apply.

Peng

> -----Original Message-----
> From: Nicolas Williams [mailto:Nicolas.Williams@sun.com]
> Sent: Thursday, February 27, 2003 3:33 PM
> To: Dai_Peng@emc.com
> Cc: mike@eisler.com; nfsv4-wg@sunroof.eng.sun.com
> Subject: Re: draft-eisler-nfsv4-ccm-00.txt
> 
> 
> Dai,
> 
> I think Mike has agreed to change the CCM draft to do something rather
> very different from what appeared in -00.
> 
> The new approach is to have CCM be a trivial wrapper around other GSS
> mechanisms, with the implication that those mechanisms, when wrapped
> with CCM, will only be used for authentication and not for 
> integrity or
> privacy protection; it will be up to the clients and servers to ensure
> that the network provides integrity and/or privacy and therefore that
> use of CCM is acceptable.  I believe the new approach takes 
> care of all
> your concerns below; you can read more about it in the last 
> two posts on
> this subject prior to yours.
> 
> Cheers,
> 
> Nico
> 
> On Thu, Feb 27, 2003 at 03:02:11PM -0500, Dai_Peng@emc.com wrote:
> > Here are some thoughts of mine from a rather high level.
> > 
> > 1. Lack of authentication in CCM context initialization
> > 
> > According to Section 4, the way the CCM context 
> initialization works over
> > RPCSEC_GSS, it is not too difficult for a malicious user to 
> cheat the server
> > into establishing a new CCM context with him. All he has to 
> do is to get an
> > IPSec association with the server and fake a handle (opaque 
> bytes with no
> > cryptographic protection) to a previously established authentication
> > context.
> > 
> > The problem here is the lack of binding between the 
> authentication context
> > established through traditional GSS mechanisms and the 
> secure transport
> > channel used in CCM.
> > 
> > In order to provide this binding, we must integrity protect 
> the application
> > context handle among other things passed in the 
> rpc_gss_init_arg. For
> > example, we could generate a checksum over the application 
> context handle,
> > among other things if the handle does not have enough 
> bytes, using the
> > session key found in the soon-to-be-replaced authentication 
> context, and
> > pass the whole thing as the opaque token in rpc_gss_init_arg. In the
> > response, the server has to do the same with the CCM status.
> > 
> > 2. Implementation caveats
> > 
> > A new mechanism that leverages IPSec to provide user-based 
> authentication
> > does provide comparable security to that of the traditional 
> GSS mechanisms.
> > Yet there are some caveats unique to this new mechanism 
> that should be
> > avoided when it comes to implementation.
> > 
> > a. The new mechanism does away with compute intensive cryptographic
> > operation needed for authentication using a traditional GSS 
> mechanism.
> > However, it would be wrong to think authentication is 
> totally obsoleted. I'd
> > like to think authentication takes a different form now - 
> ensuring the
> > binding between the CCM context and the secure transport 
> channel is legit
> > for each incoming request. In other words, the CCM context 
> referenced in the
> > request has been established using the same secure 
> transport channel as the
> > request.
> > 
> > b. When the same secure transport channel is multiplexed on 
> the client side
> > for multiple users, the client has to ensure the CCM context is only
> > accessible to the user that has established it in the first 
> place. One
> > possible way to ensure that is by placing CCM contexts in 
> the privileged
> > address space offering only controlled indexed access. 
> Imagine a user level
> > process faking a CCM context handle (established by a legit 
> user locally)
> > through a shared secure transport channel without having to 
> break into local
> > privilege boundary and no cryptographics involved. It is 
> much harder to do
> > the same using for example Kerberos since that requires 
> local privilege to
> > access other user's ticket cache.
> > 
> > 3. Security consideration
> > 
> > Properly implemented CCM can offer comparable security.
> > 
> > a. CCM does not unnecessarily inflate the scope of the 
> trust domain, as does
> > for example AUTH_SYS over IPSec. By requiring the 
> authentication in the CCM
> > context initialization (using a previously established 
> context), the trust
> > domain does not extend to the client.
> > 
> > b. Both the traditional mechanisms and CCM rely on the 
> security of the
> > client to protect locally logged on users. Compromise of 
> the client impact
> > all users on the same client. CCM does not make the problem worse.
> > 
> > c. For CCM, users on the same client may share the same 
> secure transport
> > channel, meaning all traffic is protected with the same 
> session key at a
> > given time. However, IMHO, it does not make cryptoanalysis 
> of the traffic
> > easier compared to say Kerberos. Assuming reasonable NFS 
> usage and typical
> > ticket lifetime of several hours, the attacker would have 
> gathered a lot of
> > traffic anyways. On the other hand, the secure transport 
> may provide added
> > benefits of automatic key exchange (AKE) management. For 
> example, the
> > lifetime of an IPSec session key can be adjusted based on 
> the traffic. This
> > can be made shorter than the CCM context lifetime if necessary.
> > 
> > Peng
> > 
> > > -----Original Message-----
> > > From: Mike Eisler [mailto:mike@eisler.com]
> > > Sent: Wednesday, February 26, 2003 3:06 PM
> > > To: Nicolas Williams
> > > Cc: nfsv4-wg@sunroof.eng.sun.com
> > > Subject: Re: draft-eisler-nfsv4-ccm-00.txt
> > > 
> > > 
> > > 
> > > Nicolas Williams wrote:
> > > 
> > > > It seems to me that the point of CCM is to use GSS for 
> > > authentication
> > > > but negotiate the non-use of GSS integrity/privacy services 
> > > when such
> > > > services are demonstrably provided by the network (e.g., 
> > > IPsec secures
> > > > the initiator's and acceptor's communication with each other).
> > > >
> > > > So here's an alternative CCM mechanism design: let CCM 
> be a trivial
> > > > wrapper around another mechanism, much the way SPNEGO is a
> > > > pseudo-mechanism that uses other mechanisms, but simpler.
> > > >
> > > > The point of such a mechanism would be that after a CCM 
> context is
> > > > established the initiator and acceptor would delete the 
> > > underlying GSS
> > > > context, thus freeing resources, and that CCM would not support
> > > > integrity or privacy protection, expecting, nay, requiring 
> > > the network
> > > > (IPsec) to provide those services instead.
> > > >
> > > > The biggest benefit to this model is that it would not 
> change the
> > > > GSS-API model in the least; and existing RPCSEC_GSS codes 
> > > would have to
> > > > change very little as well, perhaps not at all. There would 
> > > only be a
> > > > new set of mech OIDs, one for each GSS mech, prefixed with 
> > > the OID for
> > > > CCM[*].
> > > >
> > > > The only problem I find with this is that there may well be 
> > > no way for
> > > 
> > > 
> > > There is no way at all under existing GSS-API C and Java 
> bindings, but
> > > see below, I don't think that's an issue.
> > > 
> > > >
> > > > the CCM mechanism to actually determine whether the the 
> network is
> > > > providing integrity/privacy for a given 
> initiator/acceptor pair. The
> > > > current draft already leaves that determination to 
> > > RPCSEC_GSS, for this
> > > > very reason I'm sure - the application, RPCSEC_GSS in 
> this case, is
> > > > better positioned to determine the level of protection 
> > > afforded by the
> > > > network.
> > > 
> > > 
> > > Well, my initial reaction is that your approach is better. 
> > > The impact on
> > > implementations is far less than my approach.
> > > 
> > > Regarding the problem you find, I don't think it is a problem.
> > > The application (e.g. the NFS server and client) makes 
> the decision
> > > whether to create CCM vs krb5 contexts based on the presence of
> > > network layer integrity/privacy protection. If network level 
> > > protection
> > > is present, then client can optimistically try to use CCM, 
> > > and the server
> > > can optimistically downgrade the client to CCM. You'll still
> > > see krb5i being downgraded to CCM-krb5 (note, no trailing 'i').
> > > If network level protection disappears, the client and server can
> > > delete the CCM-krb5 contexts.
> > > 
> > > Thanks. I'm going to change the i-d accordingly. During the
> > > course of changing the i-d, I might find issues, and if so, 
> > > report back to
> > > the wg.
> > > 
> > >     -mre
> > > 
> > > 
> 


From owner-nfsv4-wg@sunroof.eng.sun.com  Thu Feb 27 17:26:28 2003
Received: from nwkea-mail-2.sun.com (nwkea-mail-2.sun.com [192.18.42.14])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id RAA26369
	for <nfsv4-archive@lists.ietf.org>; Thu, 27 Feb 2003 17:26:27 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by nwkea-mail-2.sun.com (8.9.3+Sun/8.9.3) with ESMTP id OAA24663;
	Thu, 27 Feb 2003 14:23:45 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1RMMuVL003572;
	Thu, 27 Feb 2003 14:22:56 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1RMM57f014582
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Thu, 27 Feb 2003 14:22:05 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h1RMM5ZZ014581
	for nfsv4-wg-dist; Thu, 27 Feb 2003 14:22:05 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from centralmail1brm.Central.Sun.COM (centralmail1brm.Central.Sun.COM [129.147.62.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1RMM27f014574
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 27 Feb 2003 14:22:03 -0800 (PST)
Received: from binky.central.sun.com (binky.Central.Sun.COM [129.153.128.104])
	by centralmail1brm.Central.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1RMM97L004464;
	Thu, 27 Feb 2003 15:22:09 -0700 (MST)
Received: from binky.central.sun.com (localhost [127.0.0.1])
	by binky.central.sun.com (8.12.5+Sun/8.12.3) with ESMTP id h1RMKFQx005894;
	Thu, 27 Feb 2003 14:20:15 -0800 (PST)
Received: (from nw141292@localhost)
	by binky.central.sun.com (8.12.5+Sun/8.12.3/Submit) id h1RMKF4Q005893;
	Thu, 27 Feb 2003 16:20:15 -0600 (CST)
Date: Thu, 27 Feb 2003 16:20:15 -0600
From: Nicolas Williams <Nicolas.Williams@sun.com>
To: Dai_Peng@emc.com
Cc: mike@eisler.com, nfsv4-wg@sunroof.eng.sun.com
Subject: Re: draft-eisler-nfsv4-ccm-00.txt
Message-ID: <20030227162015.E26746@binky.central.sun.com>
References: <6335CBB2F69AD411AD3100D0B7BA38E30CF0BF84@CORPUSMX2>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <6335CBB2F69AD411AD3100D0B7BA38E30CF0BF84@CORPUSMX2>; from Dai_Peng@emc.com on Thu, Feb 27, 2003 at 04:05:35PM -0500
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

On Thu, Feb 27, 2003 at 04:05:35PM -0500, Dai_Peng@emc.com wrote:
> However, if my understanding is correct, we are only using the wrapper
> mechanism for the initial authentication (the one involving cryptographics
> anyways) during context initialization. Subsequent data requests will not
> involve any cryptographics whether for authentication/integrity/privacy, at
> least not at the RPCSEC_GSS and GSS level, for performance reasons. This
> does introduce some significant differences from RPCSEC_GSS over a
> traditional GSS mechanism. Because of this, I'd like to think issue #2 and
> the security assessment in #3 still apply.

Look at how "krb5," krb5i" and "krb5p" are defined.  You'll see that
RPCSEC_GSS already allows for using GSS only for authentication and not
for integrity or privacy protection, if desired.  If anything, CCM
(formulated as a GSS mechanism that wraps others) adds security because
it provides for high performance without having to sacrifice integrity
or privacy.  CCM should specifically be used only when the network
demonstrably provides integrity or privacy as required by local
administrative policy.

With respect to your issue #2(a), CCM is a GSS mechanism which provides
authentication services (it can [or should] only be used to wrap GSS
mechanisms which provide authentication services).

With respect to your Issue #2(b), this is, or should be, a security
consideration of RPCSEC_GSS or GSS-API, and not a security consideration
of a GSS mechanism.

With respect to your issue #3(a), new GSS mechanisms should not have to
state this; #3(a) is a feature of RPCSEC_GSS, not of GSS mechanisms.

Similarly, with respect to your issue #3(b), new mechanisms should not
have to state this; #3(b) is a feature of GSS-API, not of GSS
mechanisms.

As for your issue #3(c), this is a security consideration for use of
RPCSEC_GSS with GSS mechanisms that do not provide integrity or privacy
protection.  However, CCM should state that acceptors should not accept
contexts with CCM acceptor credentials unless they can confirm that the
underlying transport provides the requisite integrity or privacy
services.

Cheers,

Nico
-- 


From owner-nfsv4-wg@sunroof.eng.sun.com  Thu Feb 27 18:22:51 2003
Received: from nwkea-mail-2.sun.com (nwkea-mail-2.sun.com [192.18.42.14])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA27491
	for <nfsv4-archive@lists.ietf.org>; Thu, 27 Feb 2003 18:22:50 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by nwkea-mail-2.sun.com (8.9.3+Sun/8.9.3) with ESMTP id PAA29535;
	Thu, 27 Feb 2003 15:20:04 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1RNJEVL021902;
	Thu, 27 Feb 2003 15:19:14 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1RNIS7f015655
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Thu, 27 Feb 2003 15:18:28 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h1RNISus015654
	for nfsv4-wg-dist; Thu, 27 Feb 2003 15:18:28 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail1mpk.Eng.Sun.COM (engmail1mpk [129.146.1.45])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1RNIQ7f015647
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 27 Feb 2003 15:18:26 -0800 (PST)
Received: from lukla.Sun.COM (lukla.Central.Sun.COM [129.147.5.31])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1RNIXVK002192
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 27 Feb 2003 15:18:33 -0800 (PST)
Received: from relay11.sun.com (ip150143-167-14.us.syntegra.com [150.143.167.14])
	by lukla.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id QAA21542
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 27 Feb 2003 16:18:26 -0700 (MST)
From: Dai_Peng@emc.com
Received: from mms12es.mms.us.syntegra.com (mms12es.mms.us.syntegra.com [150.143.168.20]) by relay11i.sun.com with ESMTP for nfsv4-wg@sunroof.eng.sun.com; Thu, 27 Feb 2003 23:18:16 Z
Received: from mms11bms.mms.us.syntegra.com by mms12es.sun.com with ESMTP for nfsv4-wg@sunroof.eng.sun.com; Thu, 27 Feb 2003 23:16:28 Z
Received: from mms11bas.mms.us.syntegra.com (mms11bas.mms.us.syntegra.com [150.143.167.10]) by mms11bms.sun.com with ESMTP for nfsv4-wg@sunroof.eng.sun.com; Thu, 27 Feb 2003 23:18:15 Z
Received: from mxic2.corp.emc.com (mxic2.corp.emc.com [128.221.31.40]) by relay11.sun.com with ESMTP for nfsv4-wg@sunroof.eng.sun.com; Thu, 27 Feb 2003 23:18:14 Z
Received: by mxic2.corp.emc.com with Internet Mail Service (5.5.2653.19)
	id <1PRH6YSB>; Thu, 27 Feb 2003 18:18:14 -0500
Message-Id: <6335CBB2F69AD411AD3100D0B7BA38E30CF0BF85@CORPUSMX2>
To: Nicolas.Williams@sun.com
Cc: mike@eisler.com, nfsv4-wg@sunroof.eng.sun.com
Subject: RE: draft-eisler-nfsv4-ccm-00.txt
Date: Thu, 27 Feb 2003 18:17:30 -0500
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>


> -----Original Message-----
> From: Nicolas Williams [mailto:Nicolas.Williams@sun.com]
> Sent: Thursday, February 27, 2003 5:20 PM
> To: Dai_Peng@emc.com
> Cc: mike@eisler.com; nfsv4-wg@sunroof.eng.sun.com
> Subject: Re: draft-eisler-nfsv4-ccm-00.txt
> 
> 
> On Thu, Feb 27, 2003 at 04:05:35PM -0500, Dai_Peng@emc.com wrote:
> > However, if my understanding is correct, we are only using 
> the wrapper
> > mechanism for the initial authentication (the one involving 
> cryptographics
> > anyways) during context initialization. Subsequent data 
> requests will not
> > involve any cryptographics whether for 
> authentication/integrity/privacy, at
> > least not at the RPCSEC_GSS and GSS level, for performance 
> reasons. This
> > does introduce some significant differences from RPCSEC_GSS over a
> > traditional GSS mechanism. Because of this, I'd like to 
> think issue #2 and
> > the security assessment in #3 still apply.
> 
> Look at how "krb5," krb5i" and "krb5p" are defined.  You'll see that
> RPCSEC_GSS already allows for using GSS only for 
> authentication and not

The goal for creating a new GSS mechanism here is for protocols such as
RPCSEC_GSS, that previously conduct user authentication for each request, to
authenticate once during context initialization and forego expensive user
authentication for subsequent data requests. To me, this is a major, major
difference from "krb5", by which I assume you mean the use of Kerberos v5 by
RPCSEC_GSS to provide various data services, not the Kerberos v5 mechanism
itself. The security implications as a result of this difference should be
examined carefully to determine how a protocol like RPCSEC_GSS should use
the new GSS mechanism.

> for integrity or privacy protection, if desired.  If anything, CCM
> (formulated as a GSS mechanism that wraps others) adds 
> security because
> it provides for high performance without having to sacrifice integrity
> or privacy.  CCM should specifically be used only when the network
> demonstrably provides integrity or privacy as required by local
> administrative policy.
> 
> With respect to your issue #2(a), CCM is a GSS mechanism 
> which provides
> authentication services (it can [or should] only be used to wrap GSS
> mechanisms which provide authentication services).
> 

The word authentication is overloaded. In GSS, it means authenticated
context initialization exchanges. In RPCSEC_GSS, it means using the session
key established during the context initialization to sign a checksum over
the RPC header. The goal is to get rid of the crypto checksum in RPCSEC_GSS
without sacrificing authentication.

> With respect to your Issue #2(b), this is, or should be, a security
> consideration of RPCSEC_GSS or GSS-API, and not a security 
> consideration
> of a GSS mechanism.
> 
> With respect to your issue #3(a), new GSS mechanisms should 
> not have to
> state this; #3(a) is a feature of RPCSEC_GSS, not of GSS mechanisms.
> 
> Similarly, with respect to your issue #3(b), new mechanisms should not
> have to state this; #3(b) is a feature of GSS-API, not of GSS
> mechanisms.
> 
> As for your issue #3(c), this is a security consideration for use of
> RPCSEC_GSS with GSS mechanisms that do not provide integrity 
> or privacy
> protection.  However, CCM should state that acceptors should 
> not accept
> contexts with CCM acceptor credentials unless they can 
> confirm that the
> underlying transport provides the requisite integrity or privacy
> services.
> 

I get what you are saying. My focus is more on RPCSEC_GSS or any such
protocols and how they could most efficiently use the new GSS mechanism
while retaining the security characteristics. However, I don't think this is
the wrong place for such discussions since this is the reason the new
mechanism is needed in the first place.

> Cheers,
> 
> Nico
> -- 
> 

Also for the current RPCSEC_GSS implementation to work with the new
mechanism with minimal change, it is necessary for the get_mic to return
empty string and verify_mic to be nop. Believe this was mentioned in Mike's
draft. IMHO, this should also be the case for the new wrapper mechanism in
the making.

Peng


From owner-nfsv4-wg@sunroof.eng.sun.com  Thu Feb 27 18:30:50 2003
Received: from pheriche.sun.com (pheriche.sun.com [192.18.98.34])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA27651
	for <nfsv4-archive@lists.ietf.org>; Thu, 27 Feb 2003 18:30:50 -0500 (EST)
Received: from engmail1mpk.Eng.Sun.COM ([129.146.1.45])
	by pheriche.sun.com (8.9.3+Sun/8.9.3) with ESMTP id QAA06934;
	Thu, 27 Feb 2003 16:31:32 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1RNUhVK005928;
	Thu, 27 Feb 2003 15:30:43 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1RNTn7f015735
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Thu, 27 Feb 2003 15:29:49 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h1RNTnrj015734
	for nfsv4-wg-dist; Thu, 27 Feb 2003 15:29:49 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from centralmail2brm.Central.Sun.COM (centralmail2brm.Central.Sun.COM [129.147.62.14])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1RNTl7f015727
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 27 Feb 2003 15:29:47 -0800 (PST)
Received: from binky.central.sun.com (binky.Central.Sun.COM [129.153.128.104])
	by centralmail2brm.Central.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1RNTsln001386;
	Thu, 27 Feb 2003 16:29:54 -0700 (MST)
Received: from binky.central.sun.com (localhost [127.0.0.1])
	by binky.central.sun.com (8.12.5+Sun/8.12.3) with ESMTP id h1RNS0Qx005983;
	Thu, 27 Feb 2003 15:28:00 -0800 (PST)
Received: (from nw141292@localhost)
	by binky.central.sun.com (8.12.5+Sun/8.12.3/Submit) id h1RNRxrm005982;
	Thu, 27 Feb 2003 17:27:59 -0600 (CST)
Date: Thu, 27 Feb 2003 17:27:59 -0600
From: Nicolas Williams <Nicolas.Williams@sun.com>
To: Dai_Peng@emc.com
Cc: mike@eisler.com, nfsv4-wg@sunroof.eng.sun.com
Subject: Re: draft-eisler-nfsv4-ccm-00.txt
Message-ID: <20030227172759.F26746@binky.central.sun.com>
References: <6335CBB2F69AD411AD3100D0B7BA38E30CF0BF85@CORPUSMX2>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <6335CBB2F69AD411AD3100D0B7BA38E30CF0BF85@CORPUSMX2>; from Dai_Peng@emc.com on Thu, Feb 27, 2003 at 06:17:30PM -0500
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

On Thu, Feb 27, 2003 at 06:17:30PM -0500, Dai_Peng@emc.com wrote:
> 
> > Look at how "krb5," krb5i" and "krb5p" are defined.  You'll see that
> > RPCSEC_GSS already allows for using GSS only for 
> > authentication and not
> 
> The goal for creating a new GSS mechanism here is for protocols such as
> RPCSEC_GSS, that previously conduct user authentication for each request, to
> authenticate once during context initialization and forego expensive user
> authentication for subsequent data requests. To me, this is a major, major
> difference from "krb5", by which I assume you mean the use of Kerberos v5 by
> RPCSEC_GSS to provide various data services, not the Kerberos v5 mechanism
> itself. The security implications as a result of this difference should be
> examined carefully to determine how a protocol like RPCSEC_GSS should use
> the new GSS mechanism.

The security considerations for CCM with respect to not providing
integrity or privacy are the same as for any other GSS mechanism that
also fails to provide integrity or privacy services.  Nothing special
here.  It should suffice to state that CCM won't provide integrity or
privacy protection.

> > for integrity or privacy protection, if desired.  If anything, CCM
> > (formulated as a GSS mechanism that wraps others) adds 
> > security because
> > it provides for high performance without having to sacrifice integrity
> > or privacy.  CCM should specifically be used only when the network
> > demonstrably provides integrity or privacy as required by local
> > administrative policy.
> > 
> > With respect to your issue #2(a), CCM is a GSS mechanism 
> > which provides
> > authentication services (it can [or should] only be used to wrap GSS
> > mechanisms which provide authentication services).
> > 
> 
> The word authentication is overloaded. In GSS, it means authenticated
> context initialization exchanges. In RPCSEC_GSS, it means using the session
> key established during the context initialization to sign a checksum over
> the RPC header. The goal is to get rid of the crypto checksum in RPCSEC_GSS
> without sacrificing authentication.

CCM (new formulation) provides whatever authentication services are
provided by whatever GSS mechanisms it is used to wrap.

[...]
> I get what you are saying. My focus is more on RPCSEC_GSS or any such
> protocols and how they could most efficiently use the new GSS mechanism
> while retaining the security characteristics. However, I don't think this is
> the wrong place for such discussions since this is the reason the new
> mechanism is needed in the first place.

Sure.  I'm merely pointing out that these issues aren't special to CCM,
or even specific to CCM.

[...]
> Also for the current RPCSEC_GSS implementation to work with the new
> mechanism with minimal change, it is necessary for the get_mic to return
> empty string and verify_mic to be nop. Believe this was mentioned in Mike's
> draft. IMHO, this should also be the case for the new wrapper mechanism in
> the making.

RPCSEC_GSS should not even attempt to try to MIC with CCM, period,
because CCM won't provide the service.  There is no need to have a no-op
MIC or wrap function for CCM as GSS-API already provides for GSS
mechanisms that cannot provide integrity or privacy services.

Cheers,

Nico
-- 


From owner-nfsv4-wg@sunroof.eng.sun.com  Thu Feb 27 18:46:56 2003
Received: from nwkea-mail-2.sun.com (nwkea-mail-2.sun.com [192.18.42.14])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA28042
	for <nfsv4-archive@lists.ietf.org>; Thu, 27 Feb 2003 18:46:55 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by nwkea-mail-2.sun.com (8.9.3+Sun/8.9.3) with ESMTP id PAA13730;
	Thu, 27 Feb 2003 15:44:11 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1RNhLVL029741;
	Thu, 27 Feb 2003 15:43:21 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1RNgb7f016050
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Thu, 27 Feb 2003 15:42:38 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h1RNgbTh016049
	for nfsv4-wg-dist; Thu, 27 Feb 2003 15:42:37 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from centralmail2brm.Central.Sun.COM (centralmail2brm.Central.Sun.COM [129.147.62.14])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1RNgZ7f016042
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 27 Feb 2003 15:42:35 -0800 (PST)
Received: from binky.central.sun.com (binky.Central.Sun.COM [129.153.128.104])
	by centralmail2brm.Central.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1RNgeln005353;
	Thu, 27 Feb 2003 16:42:40 -0700 (MST)
Received: from binky.central.sun.com (localhost [127.0.0.1])
	by binky.central.sun.com (8.12.5+Sun/8.12.3) with ESMTP id h1RNekQx005992;
	Thu, 27 Feb 2003 15:40:47 -0800 (PST)
Received: (from nw141292@localhost)
	by binky.central.sun.com (8.12.5+Sun/8.12.3/Submit) id h1RNek2J005991;
	Thu, 27 Feb 2003 17:40:46 -0600 (CST)
Date: Thu, 27 Feb 2003 17:40:46 -0600
From: Nicolas Williams <Nicolas.Williams@sun.com>
To: Dai_Peng@emc.com
Cc: mike@eisler.com, nfsv4-wg@sunroof.eng.sun.com
Subject: Re: draft-eisler-nfsv4-ccm-00.txt
Message-ID: <20030227174046.G26746@binky.central.sun.com>
References: <6335CBB2F69AD411AD3100D0B7BA38E30CF0BF85@CORPUSMX2> <20030227172759.F26746@binky.central.sun.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <20030227172759.F26746@binky.central.sun.com>; from Nicolas.Williams@sun.com on Thu, Feb 27, 2003 at 05:27:59PM -0600
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

I'm not even sure that a new GSS mechanism is even necessary.  Can't
NFSv4 negotiate the use or non-use of GSS-API integrity/privacy
services?  I think so.  So perhaps all that is needed is for the server
to force the non-use of GSS-API integrity/privacy services when IPsec is
in use between it and the client, and for the client to not bother with
GSS-API integrity/privacy in initial context establishment attempts when
IPsec is in use between it and the client.

Cheers,

Nico
-- 


From owner-nfsv4-wg@sunroof.eng.sun.com  Thu Feb 27 19:13:46 2003
Received: from nwkea-mail-2.sun.com (nwkea-mail-2.sun.com [192.18.42.14])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id TAA28517
	for <nfsv4-archive@lists.ietf.org>; Thu, 27 Feb 2003 19:13:46 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by nwkea-mail-2.sun.com (8.9.3+Sun/8.9.3) with ESMTP id QAA29290;
	Thu, 27 Feb 2003 16:11:01 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1S09YVL008467;
	Thu, 27 Feb 2003 16:09:34 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1S08l7f016866
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Thu, 27 Feb 2003 16:08:47 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h1S08l6K016865
	for nfsv4-wg-dist; Thu, 27 Feb 2003 16:08:47 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail2sun.Eng.Sun.COM (engmail2sun [129.144.134.19])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1S08e7f016858
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 27 Feb 2003 16:08:40 -0800 (PST)
Received: from kathmandu.sun.com (kathmandu.Central.Sun.COM [129.147.5.36])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1S08lVL008210
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 27 Feb 2003 16:08:47 -0800 (PST)
Received: from relay12.sun.com (ip150143-167-24.us.syntegra.com [150.143.167.24])
	by kathmandu.sun.com (8.9.3+Sun/8.9.3) with ESMTP id RAA18586
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 27 Feb 2003 17:08:41 -0700 (MST)
Received: from mms12es.mms.us.syntegra.com (mms12es.mms.us.syntegra.com [150.143.168.20]) by relay12i.sun.com with ESMTP for nfsv4-wg@sunroof.eng.sun.com; Fri, 28 Feb 2003 00:08:38 Z
Received: from mms11bms.mms.us.syntegra.com by mms12es.sun.com with ESMTP for nfsv4-wg@sunroof.eng.sun.com; Fri, 28 Feb 2003 00:05:10 Z
Received: from mms11bas.mms.us.syntegra.com (mms11bas.mms.us.syntegra.com [150.143.167.10]) by mms11bms.sun.com with ESMTP for nfsv4-wg@sunroof.eng.sun.com; Fri, 28 Feb 2003 00:06:56 Z
Received: from sharedhosting.net ([206.127.192.10] [206.127.192.10]) by relay11.sun.com with ESMTP for nfsv4-wg@sunroof.eng.sun.com; Fri, 28 Feb 2003 00:06:55 Z
Received: from eisler.com (localhost [127.0.0.1])
	by sharedhosting.net (8.9.3+Sun/8.9.3) with SMTP id QAA15277
	for nfsv4-wg@sunroof.eng.sun.com; Thu, 27 Feb 2003 16:05:41 -0800 (PST)
Date: Thu, 27 Feb 2003 16:05:41 -0800 (PST)
From: Mike Eisler <mike@eisler.com>
Message-Id: <200302280005.QAA15277@sharedhosting.net>
To: nfsv4-wg@sunroof.eng.sun.com
Subject: RE: draft-eisler-nfsv4-ccm-00.txt
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

Thanks for feedback. I'll incorporate it into the next version
of the i-d.

Some responses to your comments.

> -----Original Message-----
> From: Dai_Peng@emc.com [mailto:Dai_Peng@emc.com]
> Sent: Thursday, February 27, 2003 12:02 PM
> To: mike@eisler.com; Nicolas.Williams@sun.com
> Cc: nfsv4-wg@sunroof.eng.sun.com
> Subject: RE: draft-eisler-nfsv4-ccm-00.txt
> 
> 
> Here are some thoughts of mine from a rather high level.
> 
> 1. Lack of authentication in CCM context initialization
> 
> According to Section 4, the way the CCM context 
> initialization works over
> RPCSEC_GSS, it is not too difficult for a malicious user to 
> cheat the server
> into establishing a new CCM context with him. All he has to 
> do is to get an
> IPSec association with the server and fake a handle (opaque 
> bytes with no
> cryptographic protection) to a previously established authentication
> context.

If a TCP connection is protected with IPsec, I don't see how
the malicious user can do anything bad. he can't hijack the
TCP connection (that's what IPsec is for). Without hijacking the TCP
connection, he'll be unable to use a CCM handle.

> The problem here is the lack of binding between the 
> authentication context
> established through traditional GSS mechanisms and the secure 
> transport
> channel used in CCM.
> 
> In order to provide this binding, we must integrity protect 
> the application
> context handle among other things passed in the rpc_gss_init_arg. For
> example, we could generate a checksum over the application 
> context handle,
> among other things if the handle does not have enough bytes, using the
> session key found in the soon-to-be-replaced authentication 
> context, and
> pass the whole thing as the opaque token in rpc_gss_init_arg. In the
> response, the server has to do the same with the CCM status.

I don't see how that solves the problem. Once you
have a established the CCM context, what prevents your malicious
user from using the CCM handle for its own requests? The only
thing that protects one from this sort of attack is
trsuting the integrity of the underlying TCP connection, and
IPsec is doing that.

> 2. Implementation caveats
> 
> A new mechanism that leverages IPSec to provide user-based 
> authentication
> does provide comparable security to that of the traditional 
> GSS mechanisms.
> Yet there are some caveats unique to this new mechanism that should be
> avoided when it comes to implementation.
> 
> a. The new mechanism does away with compute intensive cryptographic
> operation needed for authentication using a traditional GSS mechanism.
> However, it would be wrong to think authentication is totally 
> obsoleted. I'd
> like to think authentication takes a different form now - ensuring the
> binding between the CCM context and the secure transport 
> channel is legit
> for each incoming request. In other words, the CCM context 
> referenced in the
> request has been established using the same secure transport 
> channel as the
> request.

Ye, that is my intent, but I guess it didn't come across in the
i-d. I'll try better. :-)

> b. When the same secure transport channel is multiplexed on 
> the client side
> for multiple users, the client has to ensure the CCM context is only
> accessible to the user that has established it in the first place. One
> possible way to ensure that is by placing CCM contexts in the 
> privileged
> address space offering only controlled indexed access. 
> Imagine a user level
> process faking a CCM context handle (established by a legit 
> user locally)
> through a shared secure transport channel without having to 
> break into local
> privilege boundary and no cryptographics involved. It is much 
> harder to do
> the same using for example Kerberos since that requires local 
> privilege to
> access other user's ticket cache.

Fair enough, this can documented.

> 3. Security consideration
> 
> Properly implemented CCM can offer comparable security.
> 
> a. CCM does not unnecessarily inflate the scope of the trust 
> domain, as does
> for example AUTH_SYS over IPSec. By requiring the 
> authentication in the CCM
> context initialization (using a previously established 
> context), the trust
> domain does not extend to the client.

Agreed.

> b. Both the traditional mechanisms and CCM rely on the security of the
> client to protect locally logged on users. Compromise of the 
> client impact
> all users on the same client. CCM does not make the problem worse.

Agreed.

> c. For CCM, users on the same client may share the same 
> secure transport
> channel, meaning all traffic is protected with the same 
> session key at a
> given time. However, IMHO, it does not make cryptoanalysis of 
> the traffic
> easier compared to say Kerberos. Assuming reasonable NFS 

I disagree.

> usage and typical
> ticket lifetime of several hours, the attacker would have 
> gathered a lot of

Ticket lifetimes can be configured. Servers can delete
gss contexts at will.

> traffic anyways. On the other hand, the secure transport may 
> provide added
> benefits of automatic key exchange (AKE) management. For example, the
> lifetime of an IPSec session key can be adjusted based on the 
> traffic. This
> can be made shorter than the CCM context lifetime if necessary.

Evenif Kerberos does shared the advsntages of the
system you describe above, one could certainly implement a GSS
mechanism that does exactly waht you say. So at that point
we've got a comparison between the ciphetext being generated at the
IPsec level, versus the ciphertext generated at the RPCSEC_GSS
level by zillions of users.

There's a related issue, which is that if the system administrator
is careless in the management of the pair of IPsec
secret keys between a client and server, wherease if the user is
careful in the management of his own keys, then the user is at risk
due to negligence.

	-mre


From owner-nfsv4-wg@sunroof.eng.sun.com  Thu Feb 27 20:33:55 2003
Received: from patan.sun.com (patan.Sun.COM [192.18.98.43])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id UAA29794
	for <nfsv4-archive@lists.ietf.org>; Thu, 27 Feb 2003 20:33:54 -0500 (EST)
Received: from engmail1mpk.Eng.Sun.COM ([129.146.1.45])
	by patan.sun.com (8.9.3+Sun/8.9.3) with ESMTP id SAA28086;
	Thu, 27 Feb 2003 18:35:09 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1S1YPVK014427;
	Thu, 27 Feb 2003 17:34:25 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1S1Xg7f017292
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Thu, 27 Feb 2003 17:33:42 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h1S1Xgcq017291
	for nfsv4-wg-dist; Thu, 27 Feb 2003 17:33:42 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail1mpk.Eng.Sun.COM (engmail1mpk [129.146.1.45])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1S1Xe7f017284
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 27 Feb 2003 17:33:40 -0800 (PST)
Received: from nwkea-mail-1.sun.com ([192.18.42.13])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1S1XlVK014211
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 27 Feb 2003 17:33:47 -0800 (PST)
Received: from relay12.sun.com (bt [150.143.167.24])
	by nwkea-mail-1.sun.com (8.9.3+Sun/8.9.3) with ESMTP id RAA15638
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 27 Feb 2003 17:33:41 -0800 (PST)
Received: from mms11es.mms.us.syntegra.com (mms11es.mms.us.syntegra.com [150.143.168.10]) by relay12i.sun.com with ESMTP for nfsv4-wg@sunroof.eng.sun.com; Fri, 28 Feb 2003 01:33:39 Z
Received: from mms11bms.mms.us.syntegra.com by mms11es.sun.com with ESMTP for nfsv4-wg@sunroof.eng.sun.com; Fri, 28 Feb 2003 01:33:31 Z
Received: from mms11bas.mms.us.syntegra.com (mms11bas.mms.us.syntegra.com [150.143.167.10]) by mms11bms.sun.com with ESMTP for nfsv4-wg@sunroof.eng.sun.com; Fri, 28 Feb 2003 01:33:30 Z
Received: from sharedhosting.net ([206.127.192.10] [206.127.192.10]) by relay11.sun.com with ESMTP for nfsv4-wg@sunroof.eng.sun.com; Fri, 28 Feb 2003 01:33:29 Z
Received: from eisler.com (localhost [127.0.0.1])
	by sharedhosting.net (8.9.3+Sun/8.9.3) with SMTP id RAA19805
	for nfsv4-wg@sunroof.eng.sun.com; Thu, 27 Feb 2003 17:32:25 -0800 (PST)
Date: Thu, 27 Feb 2003 17:32:25 -0800 (PST)
From: Mike Eisler <mike@eisler.com>
Message-Id: <200302280132.RAA19805@sharedhosting.net>
To: nfsv4-wg@sunroof.eng.sun.com
Subject: Re: draft-eisler-nfsv4-ccm-00.txt
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

> From: Nicolas Williams [mailto:Nicolas.Williams@sun.com]
> 
> I'm not even sure that a new GSS mechanism is even necessary.  Can't
> NFSv4 negotiate the use or non-use of GSS-API integrity/privacy
> services?  I think so.  So perhaps all that is needed is for 

Yes. That's what started me this direction (or rather
Dave Noveck's observation of the same thing a couple months ago).

But there is still per RPC overhead. CCM eliminates
all the overhead per RPC.

> the server
> to force the non-use of GSS-API integrity/privacy services 
> when IPsec is
> in use between it and the client, and for the client to not 
> bother with
> GSS-API integrity/privacy in initial context establishment 
> attempts when
> IPsec is in use between it and the client.
> 
> Cheers,
> 
> Nico
> -- 
> 



From owner-nfsv4-wg@sunroof.eng.sun.com  Thu Feb 27 22:25:14 2003
Received: from nwkea-mail-1.sun.com (nwkea-mail-1.sun.com [192.18.42.13])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id WAA02028
	for <nfsv4-archive@lists.ietf.org>; Thu, 27 Feb 2003 22:25:14 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by nwkea-mail-1.sun.com (8.9.3+Sun/8.9.3) with ESMTP id TAA07426;
	Thu, 27 Feb 2003 19:21:47 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1S3L1VL000392;
	Thu, 27 Feb 2003 19:21:06 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1S3KM7f017731
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Thu, 27 Feb 2003 19:20:23 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h1S3KMAW017730
	for nfsv4-wg-dist; Thu, 27 Feb 2003 19:20:22 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail1mpk.Eng.Sun.COM (engmail1mpk [129.146.1.45])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1S3KJ7f017723
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 27 Feb 2003 19:20:19 -0800 (PST)
Received: from kathmandu.sun.com (kathmandu.Central.Sun.COM [129.147.5.36])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1S3KQVK014873
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 27 Feb 2003 19:20:26 -0800 (PST)
Received: from relay1.sun.com (ip150143-103-14.mms.us.syntegra.com [150.143.103.14] (may be forged))
	by kathmandu.sun.com (8.9.3+Sun/8.9.3) with ESMTP id UAA24441
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 27 Feb 2003 20:20:20 -0700 (MST)
Received: from mms02es.mms.us.syntegra.com (mms02es.mms.us.syntegra.com [150.143.103.140]) by relay1i.sun.com with ESMTP for nfsv4-wg@sunroof.eng.sun.com; Fri, 28 Feb 2003 03:20:19 Z
Received: from mms01bms.mms.us.syntegra.com by mms02es.sun.com with ESMTP for nfsv4-wg@sunroof.eng.sun.com; Fri, 28 Feb 2003 03:20:15 Z
Received: from mms01bas.mms.us.syntegra.com (mms01bas.mms.us.syntegra.com [150.143.103.10]) by mms01bms.sun.com with ESMTP for nfsv4-wg@sunroof.eng.sun.com; Fri, 28 Feb 2003 03:20:15 Z
Received: from tor01x3.hcl.com ([199.71.120.66] [199.71.120.66]) by relay1.sun.com with ESMTP for nfsv4-wg@sunroof.eng.sun.com; Fri, 28 Feb 2003 03:20:14 Z
Received: from av0012 (av0012.hcl.com [10.1.42.241]) by tor01x3.hcl.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13)
	id 1SRF7LCM; Thu, 27 Feb 2003 22:20:12 -0500
Received: FROM mhoutside.hcl.com BY av0012 ; Thu Feb 27 22:20:28 2003 -0500
Received: from hummi101 (hummi-101.hcl.com [10.1.39.147])
	by mhoutside.hcl.com (8.11.2/8.11.2) with ESMTP id h1S3KGx01827;
	Thu, 27 Feb 2003 22:20:16 -0500 (EST)
From: "Sergey Klyushin" <sergey.klyushin@hummingbird.com>
To: <nfsv4-wg@sunroof.eng.sun.com>
Cc: "'Carl Beame'" <beame@bws.com>, "'Noveck, Dave'" <Dave.Noveck@netapp.com>,
        <spencer.shepler@sun.com>
Subject: ACL in NFSv4 protocol
Date: Thu, 27 Feb 2003 19:20:07 -0800
Message-Id: <000201c2ded8$4c315980$9327010a@Connectathon.ORG>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook, Build 10.0.4510
In-Reply-To: <Roam.SIMC.2.0.6.1046193616.5667.thurlow@jurassic.eng>
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by sunroof.eng.sun.com id h1S3KK7f017724
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>
Content-Transfer-Encoding: 8bit

We had a long discussion with Carl Beam about ACL in NFSv4 and finally 
decided to post the resume of our discussion here. (Carl, please add or 
correct me if I missed something)

First of all I do realize that now is very bad time to change NFSv4 
protocol. I hope that ACL issues could be resolved in NFSv4.1 or partially 
in NFSv4.0 without changing .x part or with a minimum changes (adding 
defines).

Secondly, hopefully there are not much implementations of NFSv4 ACL.
(Dave, I'll buy you a drink if you would agree to change your Server)

Thirdly, sorry for a long email and please try to read till the end.

I. Synchronization of ACL and mode.

================ from protocol ====================================
5.11.6.  Mode and ACL Attribute

   The server that supports both mode and ACL must take care to
   synchronize the MODE4_*USR, MODE4_*GRP, and MODE4_*OTH bits with the
   ACEs which have respective who fields of "OWNER@", "GROUP@", and
   "EVERYONE@" so that the client can see semantically equivalent access
   permissions exist whether the client asks for owner, owner_group and
   mode attributes, or for just the ACL.

   Because the mode attribute includes bits (e.g. MODE4_SVTX) that have
   nothing to do with ACL semantics, it is permitted for clients to
   specify both the ACL attribute and mode in the same SETATTR
   operation. However, because there is no prescribed order for
   processing the attributes in a SETATTR, the client must ensure that
   ACL attribute, if specified without mode, would produce the desired
   mode bits, and conversely, the mode attribute if specified without
   ACL, would produce the desired "OWNER@", "GROUP@", and "EVERYONE@"
   ACEs.
====================== end ====================================

Why mode MUST be synchronized with ACL? Does any OS do it? Windows does not.

I consider synchronization of mode and ACL as a biggest issue of ACL in
NFSv4.

mode bits are too narrow to define access and are really only used for an
approximation on an LS command. The ACCESS procedure is the only true way of

determining if a file is accessable.
 
Since NFSv3 we have ACCESS procedure that answer the question about access
permissions. In real life access permissions may be based on much more 
conditions than mode and ACL. For example, if user account is disabled on 
Windows OS, than user can't do anything with a file even though user has 
full access rights.

Requiring synchronization as MUST (even as low case must), just makes much 
more headache for both Client and Server, but doesn't guarantee real access 
rights.

If client wants to estimate access rights, client always may ask for mode 
and for ACL and combine them together. The rules how to estimate access
rights from mode and ACL may be specified if needed.

Moreover, NFSv4 protocol says:
==========================================================
   Although, the client can read and write the ACL attribute,
   the NFSv4 model is the server does all access control based on the
   server's interpretation of the ACL.  If at any point the client wants
   to check access without issuing an operation that modifies or reads
   data or metadata, the client can use the OPEN and ACCESS operations
   to do so.
==========================================================

I believe that synchronization requirement has to be removed from protocol.

II. Special "who" names OWNER@/GROUP@

The original idea of special identifiers OWNER@ and GROUP@ is quite 
different from what we have in protocol now. Originally OWNER@/GROUP@ came 
from Windows's CREATOR_OWNER/CREATOR_GROUP which is defined as following:

Creator Owner ID - A security identifier to be replaced by the security 
identifier of the user who created a new object. This SID is used in 
inheritable ACEs. 
Creator Group ID - Identifies a security identifier to be replaced by the 
primary-group SID of the user who created a new object. Use this SID in 
inheritable ACEs. 

So, CREATOR_OWNER/CREATOR_GROUP ACE

1. can be set on directories only (not on files) 
2. MUST be set with INHERIT_ONLY flag.
3. is a placeholder ACE whose "who" field will be replaced by real 
owner/group name on newly created files/directories.
 
However, now OWNER@/GROUP@ ACEs are very tied to mode synchronization and 
used in addition to ACEs of real owner/group:

============================================================
5.11.4.  ACE who

   There are several special identifiers ("who") which need to be
   understood universally, rather than in the context of a particular
   DNS domain. Some of these identifiers cannot be understood when an
   NFS client accesses the server, but have meaning when a local process
   accesses the file. The ability to display and modify these
   permissions is permitted over NFS, even if none of the access methods
   on the server understands the identifiers.


   Who                    Description
   _______________________________________________________________
   "OWNER"                The owner of the file.
   "GROUP"                The group associated with the file.
==============================================================

There is also requirement of mapping mode to/from OWNER@/GROUP@/Everyone@ 
ACEs. So, looks like NFSv4 uses OWNER@/GROUP@ ACEs ONLY for mapping mode 
into ACL. According to protocol Client and Server must always add 
OWNER@/GROUP@ ACEs to ACL in addition to ACE of REAL owner/group.
(see above about synchronization)

Let's look further. Protocol defines 
====================================================
  ACE4_IDENTIFIER_GROUP

   Indicates that the "who" refers to a GROUP as defined under UNIX.
====================================================

If we do need ACE4_IDENTIFIER_GROUP, then ACE4_IDENTIFIER_OWNER should be
also defined. Is there are reason why ACE4_IDENTIFIER_OWNER not defined in 
protocol? 

The questions are: 
1. Why do we need OWNER@/GROUP@ ACE in ADDITION to ACE[s] of real
owner/group? 
2. Do we need them for synchronization ONLY?
3. Is it possible to change wording in NFSv4 protocol to use OWNER@/GROUP@
ACE[s] in Windows manner like CREATOR_OWNER/CREATOR_GROUP?

III. chown/chgrp implementation

Special care should be taken in implementation of chown/chgrp.
The basic ideas are
1. new owner/group will get the same access rights as old one (or more???).
2. Consider the following example:
2.1 Owner of the file is Test_User_1
2.2 There is Test_User_2 ACE with full permissions.
2.3 Test_User_2 becomes an owner.
2.4 Test_User_3 becomes an owner.
2.5 Test_User_2 MUST NOT loose access rights he had before becoming an 
owner. 

IV. more special ACE names

Section " 5.11.4. ACE who" describes processing of special identifiers 
("who") and provides list of such ACEs. However, this list already missed
some "special" Windows names like "NETWORK SERVICE", "REMOTE INTERACTIVE
LOGON", etc. I am almost sure there are more "special" names on another OSs.

Like all things we (the NFS community) need to have some list somewhere that

is controlled that implementers can add well defined names to. 

Why not to add to "5.11.4. ACE who" something like this:

"The list of special identifiers ("who") is not restricted to the list 
specified here. If "who" name is constructed in the form "xxx@", the name
MUST be considered as special identifier. The meaning of special identifiers
not listed in the protocol could be checked at [some place]."

The same rules MUST apply to name of owner and owner_group.

V. Definition of EVERYONE@

Protocol defines EVERYONE@ as "The world", so EVERYONE@ includes owner and
group. However, in another places protocol discusses mapping of MODE4_*OTH
to "EVERYONE@" ACE. The protocol should state more clearly, that EVERYONE 
can't be DIRECTLY mapped to MODE4_*OTH.
For example, if mode is "------rwx", then creating ACL with only one ACE of
EVERYONE will give different access permissions for owner and group. So, ACL
should have DENY ACEs of owner and group that precedes EVERYONE ACE.

Once again, if we remove mode and ACL synchronization requirement, then this
problem won't exist.

Should we specify that "The world" includes owner and group?

VI. ACE4_INHERIT_ONLY_ACE and ACE4_NO_PROPAGATE_INHERIT_ACE

ACE4_INHERIT_ONLY_ACE and ACE4_NO_PROPAGATE_INHERIT_ACE flags can't be used 
alone without ACE4_DIRECTORY_INHERIT_ACE and/or ACE4_FILE_INHERIT_ACE flags?

It's not clear what error to return in this case. INVAL? ATTRNOTSUPP?

VII. NULL and empty ACL

Windows OS supports empty and NULL ACLs, however meaning of empty ACL (no 
access to anybody) is totally different from NULL ACL (full access to 
Everyone). Is there any other OS that distinguishes NULL and empty ACL?

Should it be added to protocol?
There is no way for NFS Server to report that there is no ACL (==NULL) set
on the file.

VIII. Clarification of ACL processing.
From protocol
========================================================================
   To determine if a request succeeds, each nfsace4 entry is processed
   in order by the server.  Only ACEs which have a "who" that matches
   the requester are considered.
......
   When the ACL is fully processed, if there are bits in
   requester's mask that have not been considered whether the server
   allows or denies the access is undefined.  If there is a mode
   attribute on the file, then this cannot happen, since the mode's
   MODE4_*OTH bits will map to EVERYONE@ ACEs that unambiguously specify
   the requester's access.
========================================================================
This part requires clarification.
(1. BTW, this is another place where protocol implies synchronization 
between mode and ACL.)
2. When it says matches it implies that match is based on the definition of
the ACE type and not only "Only ACEs which have a "who" that matches the 
requester are considered".
For example the BATCH ACE type matches any task which is batch vs
interactive. Thus user1 (if he is owner of the file) matches OWNER@ and 
OWNER@ ACE should be considered.
3. If synchronization is required, than description should be changed to
consider not only EVERYONE@ ACE, but OWNER@ and GROUP@ ACEs also.
4. Consider the following example:
- test_user_1 is an owner of the file
- test_user_1 is member of test_group_1
If there are test_user_1, test_group_1, OWNER@, GROUP@, EVERYONE@ ACEs set 
on the file, than test_user_1 access permissions will be based on all these 
ACEs.

5. Why access is not defined if there is no mode? 
It should be defined that
When the ACL is fully processed, if there are bits in requester's mask that 
have not been considered, than
- Server will not allow (*NOT DENY*) access at the end of ACL processing.
- If access is DENIED at the end of ACL processing, Server returns error
- Server may use other sources for access checking (like mode, user's 
privileges) and apply them if access is not allowed (BUT NOT DENIED) at the 
end of ACL processing.
- If there are no such additional sources for access checking, then Server 
returns error.

Note, there is no synchronization requirements needed here, because anyway
it's approximation of user's access rights and still only one ACCESS
procedure (OK two - OPEN also) will tell Client the truth.

Special description should be added for NULL ACL (no ACL at all).

IX. Dealing with inheritable ACEs

Protocol says
======================================
   ACE4_NO_PROPAGATE_INHERIT_ACE

   Can be placed on a directory. Normally when a new directory is
   created and an ACE exists on the parent directory which is marked
   ACL4_DIRECTORY_INHERIT_ACE, two ACEs are placed on the new directory.
   One for the directory itself and one which is an inheritable ACE for
   newly created directories.  This flag tells the server to not place
   an ACE on the newly created directory which is inheritable by
   subdirectories of the created directory.
======================================
"Normally" creating two ACEs is implementation depended.

Two ACEs are created unless the NO_PROPAGATE is set. This is so that the 
user can change the access permitted in the ACE which refers to the newly 
created directory without changing the default inheritable access.
In this scenario ACE without INHERIT flag should precede ACE with 
INHERIT flag, because both of them are effective ACEs or 
all ACEs with INHERIT flag should have INHERIT_ONLY_ACE flag also.

Second scenario does not add second ACE. In this case user always may add 
explicit ACE to a directory if he wants to change default inheritable access

and keep inheritable ACE in place. 

X. Automatic propagation of inheritable ACEs.

This question was brought to mailing list attention some time ago (I guess 
by Eric), but was not completely solved.

This is most complicated issue and probably could be postponed until 
version 4.1. Actually there are not much changes required in .x file to
allow automatic propagation of inheritable ACEs, just a few defines. Most
complicated part is wording in ACL section.

Major problem is (at least for Windows):
Protocol says that ACE's with INHERIT_* flags will apply on NEWLY created 
objects ONLY. So, if ACL is changed on parent directory EXISTING child 
objects keep OLD ACL. 
Windows (default) inheritance works differently on Windows 2000/XP and could
be set to work the same way on NT4 with service pack 6a (latest NT supported

by Microsoft). Changing ACL on parent directory will automatically change
inherited ACEs in EXISTING child ACLs if child's ACL is not protected from 
such changes.

So, we've got deadlock here. Following NFSv4 semantic (don't change ACL of
existing child objects) will break Windows ACL approach.
Following Windows semantic (change ACL of existing child objects) will break
NFSv4 ACL approach.

Here is list of defines required for automatic propagation of inheritable 
ACEs:
ACL4_AUTO_INHERIT_REQ - Requests that the provider for the object protected 
by the security descriptor automatically propagate the ACL to existing child

objects.
ACL4_AUTO_INHERITED - ACL is set up to support automatic propagation of 
inheritable ACEs to existing child objects.
ACL4_PROTECTED - Prevents the ACL of the security descriptor from being 
modified by inheritable ACEs.
ACE4_INHERITED_ACE - Indicates that the ACE was inherited

That's all required changes for .x file to be able to implement automatic
propagation of inheritable ACEs.

Minor problem:
To add/remove one ACE from ACL NFSv4 requires full ACL update.
Two procedures are required to set/remove particular ACE from ACL.

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
That's all. 
If you read everything above this line, you are the hero.

Waiting for comments.
Sergey





From owner-nfsv4-wg@sunroof.eng.sun.com  Fri Feb 28 01:25:25 2003
Received: from nwkea-mail-2.sun.com (nwkea-mail-2.sun.com [192.18.42.14])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id BAA04886
	for <nfsv4-archive@lists.ietf.org>; Fri, 28 Feb 2003 01:25:24 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by nwkea-mail-2.sun.com (8.9.3+Sun/8.9.3) with ESMTP id WAA21404;
	Thu, 27 Feb 2003 22:22:16 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1S6LXVL005527;
	Thu, 27 Feb 2003 22:21:33 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1S6Ki7f019560
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Thu, 27 Feb 2003 22:20:44 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h1S6Kia9019559
	for nfsv4-wg-dist; Thu, 27 Feb 2003 22:20:44 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail1mpk.Eng.Sun.COM (engmail1mpk [129.146.1.45])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1S6Kf7f019552
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 27 Feb 2003 22:20:41 -0800 (PST)
Received: from patan.sun.com (patan.Central.Sun.COM [129.147.5.43])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1S6KmVK020197
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 27 Feb 2003 22:20:48 -0800 (PST)
Received: from relay1.sun.com (ip150143-103-14.mms.us.syntegra.com [150.143.103.14] (may be forged))
	by patan.sun.com (8.9.3+Sun/8.9.3) with ESMTP id XAA12044
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 27 Feb 2003 23:20:43 -0700 (MST)
Received: from mms02es.mms.us.syntegra.com (mms02es.mms.us.syntegra.com [150.143.103.140]) by relay1i.sun.com with ESMTP for nfsv4-wg@sunroof.eng.sun.com; Fri, 28 Feb 2003 06:20:42 Z
Received: from mms02bms.mms.us.syntegra.com by mms02es.sun.com with ESMTP; Fri, 28 Feb 2003 06:20:37 Z
Received: from mms01bas.mms.us.syntegra.com (mms01bas.mms.us.syntegra.com [150.143.103.10]) by mms02bms.sun.com with ESMTP; Fri, 28 Feb 2003 06:20:37 Z
Received: from master.traakan.com (master.traakan.com [216.103.195.42]) by relay1.sun.com with ESMTP; Fri, 28 Feb 2003 06:20:36 Z
Received: from gww5 (gww5.bldg0.traakan [10.200.1.5])
	by master.traakan.com (8.9.3/8.9.3) with SMTP id WAA15586;
	Thu, 27 Feb 2003 22:13:14 -0800 (PST)
	(envelope-from gww@traakan.com)
From: "Gordon Waidhofer" <gww@traakan.com>
To: "Sergey Klyushin" <sergey.klyushin@hummingbird.com>,
        <nfsv4-wg@sunroof.eng.sun.com>
Cc: "'Carl Beame'" <beame@bws.com>, "'Noveck, Dave'" <Dave.Noveck@netapp.com>,
        <spencer.shepler@sun.com>
Subject: RE: ACL in NFSv4 protocol
Date: Thu, 27 Feb 2003 22:19:16 -0800
Message-Id: <HIEGIBOPEMBFAKKGEELDAEMJDAAA.gww@traakan.com>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0)
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
In-Reply-To: <000201c2ded8$4c315980$9327010a@Connectathon.ORG>
Importance: Normal
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>
Content-Transfer-Encoding: 7bit

Good post, Sergey. I'm looking forward to reading
a knowledgable response.

Here's two cents......

Some of the semantics about synchronizing mode and ACLs
come from the POSIX ACL design. It's an interesting
problem. For example, a Windows NFSv4 client talking
to a server with POSIX ACLs (Solaris) **MUST** meet
the OWNER@/ACL_USER_OBJ condition.

I see it as more necessary to maintain the OWNER@ and
GROUP@ special who identifiers than it being necessary
to have OWNER@ equivalent to CREATOR_OWNER. It came as
a bit of surprise the CREATOR_OWNER is only used for
inheritance in NT. I believe it, it's just a surprise.

Dave Noveck did a good presentation years ago about POSIX
ACLs v. NT ACLs. This presentation is well worth review
as NFSv4 ACLs are revisited.

  http://www.ietf.org/proceedings/99jul/slides/nfsv4-acl-99jul/

Among other tricky problems, Dave found differences in
POSIX ACL implementations. For example, a file
owner=fred mode=007 -- is fred denied access or granted
access? Some say denied, other say granted.
My reading of the POSIX ACL spec says that denied is the
official answer, but that also seem counterintuitive to me.
I concur that the right answer is ACCESS calls to the server.

NFS is most significant in UNIX land, and there is a
significant and growing presence of POSIX ACLs (Solaris,
Linux, *BSD, and many other recognizable flavors). POSIX
ACLs have the mode/ACL sync requirement. NFSv4 has no
choice but to take it quite seriously. It would be quite
wrong to cause POSIX ACLs a hardship because of NT, yet
it is also important to accomodate NT.

Here's about the only thing I do feel very strongly about.
NFSv4 ACL support is high on the list of benefits (over
NFSv3). It must be right. It must have consensus.
It must be done as part of 4.0, not 4.x. Flakey ACL
support in 4.0 (with a 4.x promise) would be detrimental
to NFSv4 acceptance and deployment.

Regards,
	-gww


> -----Original Message-----
> From: owner-nfsv4-wg@sunroof.eng.sun.com
> [mailto:owner-nfsv4-wg@sunroof.eng.sun.com]On Behalf Of Sergey Klyushin
> Sent: Thursday, February 27, 2003 7:20 PM
> To: nfsv4-wg@sunroof.eng.sun.com
> Cc: 'Carl Beame'; 'Noveck, Dave'; spencer.shepler@sun.com
> Subject: ACL in NFSv4 protocol
> 
> 
> We had a long discussion with Carl Beam about ACL in NFSv4 and finally 
> decided to post the resume of our discussion here. (Carl, please add or 
> correct me if I missed something)
> 
> First of all I do realize that now is very bad time to change NFSv4 
> protocol. I hope that ACL issues could be resolved in NFSv4.1 or partially 
> in NFSv4.0 without changing .x part or with a minimum changes (adding 
> defines).
> 
> Secondly, hopefully there are not much implementations of NFSv4 ACL.
> (Dave, I'll buy you a drink if you would agree to change your Server)
> 
> Thirdly, sorry for a long email and please try to read till the end.
> 
> I. Synchronization of ACL and mode.
> 
> ================ from protocol ====================================
> 5.11.6.  Mode and ACL Attribute
> 
>    The server that supports both mode and ACL must take care to
>    synchronize the MODE4_*USR, MODE4_*GRP, and MODE4_*OTH bits with the
>    ACEs which have respective who fields of "OWNER@", "GROUP@", and
>    "EVERYONE@" so that the client can see semantically equivalent access
>    permissions exist whether the client asks for owner, owner_group and
>    mode attributes, or for just the ACL.
> 
>    Because the mode attribute includes bits (e.g. MODE4_SVTX) that have
>    nothing to do with ACL semantics, it is permitted for clients to
>    specify both the ACL attribute and mode in the same SETATTR
>    operation. However, because there is no prescribed order for
>    processing the attributes in a SETATTR, the client must ensure that
>    ACL attribute, if specified without mode, would produce the desired
>    mode bits, and conversely, the mode attribute if specified without
>    ACL, would produce the desired "OWNER@", "GROUP@", and "EVERYONE@"
>    ACEs.
> ====================== end ====================================
> 
> Why mode MUST be synchronized with ACL? Does any OS do it? Windows does not.
> 
> I consider synchronization of mode and ACL as a biggest issue of ACL in
> NFSv4.
> 
> mode bits are too narrow to define access and are really only used for an
> approximation on an LS command. The ACCESS procedure is the only true way of
> 
> determining if a file is accessable.
>  
> Since NFSv3 we have ACCESS procedure that answer the question about access
> permissions. In real life access permissions may be based on much more 
> conditions than mode and ACL. For example, if user account is disabled on 
> Windows OS, than user can't do anything with a file even though user has 
> full access rights.
> 
> Requiring synchronization as MUST (even as low case must), just makes much 
> more headache for both Client and Server, but doesn't guarantee real access 
> rights.
> 
> If client wants to estimate access rights, client always may ask for mode 
> and for ACL and combine them together. The rules how to estimate access
> rights from mode and ACL may be specified if needed.
> 
> Moreover, NFSv4 protocol says:
> ==========================================================
>    Although, the client can read and write the ACL attribute,
>    the NFSv4 model is the server does all access control based on the
>    server's interpretation of the ACL.  If at any point the client wants
>    to check access without issuing an operation that modifies or reads
>    data or metadata, the client can use the OPEN and ACCESS operations
>    to do so.
> ==========================================================
> 
> I believe that synchronization requirement has to be removed from protocol.
> 
> II. Special "who" names OWNER@/GROUP@
> 
> The original idea of special identifiers OWNER@ and GROUP@ is quite 
> different from what we have in protocol now. Originally OWNER@/GROUP@ came 
> from Windows's CREATOR_OWNER/CREATOR_GROUP which is defined as following:
> 
> Creator Owner ID - A security identifier to be replaced by the security 
> identifier of the user who created a new object. This SID is used in 
> inheritable ACEs. 
> Creator Group ID - Identifies a security identifier to be replaced by the 
> primary-group SID of the user who created a new object. Use this SID in 
> inheritable ACEs. 
> 
> So, CREATOR_OWNER/CREATOR_GROUP ACE
> 
> 1. can be set on directories only (not on files) 
> 2. MUST be set with INHERIT_ONLY flag.
> 3. is a placeholder ACE whose "who" field will be replaced by real 
> owner/group name on newly created files/directories.
>  
> However, now OWNER@/GROUP@ ACEs are very tied to mode synchronization and 
> used in addition to ACEs of real owner/group:
> 
> ============================================================
> 5.11.4.  ACE who
> 
>    There are several special identifiers ("who") which need to be
>    understood universally, rather than in the context of a particular
>    DNS domain. Some of these identifiers cannot be understood when an
>    NFS client accesses the server, but have meaning when a local process
>    accesses the file. The ability to display and modify these
>    permissions is permitted over NFS, even if none of the access methods
>    on the server understands the identifiers.
> 
> 
>    Who                    Description
>    _______________________________________________________________
>    "OWNER"                The owner of the file.
>    "GROUP"                The group associated with the file.
> ==============================================================
> 
> There is also requirement of mapping mode to/from OWNER@/GROUP@/Everyone@ 
> ACEs. So, looks like NFSv4 uses OWNER@/GROUP@ ACEs ONLY for mapping mode 
> into ACL. According to protocol Client and Server must always add 
> OWNER@/GROUP@ ACEs to ACL in addition to ACE of REAL owner/group.
> (see above about synchronization)
> 
> Let's look further. Protocol defines 
> ====================================================
>   ACE4_IDENTIFIER_GROUP
> 
>    Indicates that the "who" refers to a GROUP as defined under UNIX.
> ====================================================
> 
> If we do need ACE4_IDENTIFIER_GROUP, then ACE4_IDENTIFIER_OWNER should be
> also defined. Is there are reason why ACE4_IDENTIFIER_OWNER not defined in 
> protocol? 
> 
> The questions are: 
> 1. Why do we need OWNER@/GROUP@ ACE in ADDITION to ACE[s] of real
> owner/group? 
> 2. Do we need them for synchronization ONLY?
> 3. Is it possible to change wording in NFSv4 protocol to use OWNER@/GROUP@
> ACE[s] in Windows manner like CREATOR_OWNER/CREATOR_GROUP?
> 
> III. chown/chgrp implementation
> 
> Special care should be taken in implementation of chown/chgrp.
> The basic ideas are
> 1. new owner/group will get the same access rights as old one (or more???).
> 2. Consider the following example:
> 2.1 Owner of the file is Test_User_1
> 2.2 There is Test_User_2 ACE with full permissions.
> 2.3 Test_User_2 becomes an owner.
> 2.4 Test_User_3 becomes an owner.
> 2.5 Test_User_2 MUST NOT loose access rights he had before becoming an 
> owner. 
> 
> IV. more special ACE names
> 
> Section " 5.11.4. ACE who" describes processing of special identifiers 
> ("who") and provides list of such ACEs. However, this list already missed
> some "special" Windows names like "NETWORK SERVICE", "REMOTE INTERACTIVE
> LOGON", etc. I am almost sure there are more "special" names on another OSs.
> 
> Like all things we (the NFS community) need to have some list somewhere that
> 
> is controlled that implementers can add well defined names to. 
> 
> Why not to add to "5.11.4. ACE who" something like this:
> 
> "The list of special identifiers ("who") is not restricted to the list 
> specified here. If "who" name is constructed in the form "xxx@", the name
> MUST be considered as special identifier. The meaning of special identifiers
> not listed in the protocol could be checked at [some place]."
> 
> The same rules MUST apply to name of owner and owner_group.
> 
> V. Definition of EVERYONE@
> 
> Protocol defines EVERYONE@ as "The world", so EVERYONE@ includes owner and
> group. However, in another places protocol discusses mapping of MODE4_*OTH
> to "EVERYONE@" ACE. The protocol should state more clearly, that EVERYONE 
> can't be DIRECTLY mapped to MODE4_*OTH.
> For example, if mode is "------rwx", then creating ACL with only one ACE of
> EVERYONE will give different access permissions for owner and group. So, ACL
> should have DENY ACEs of owner and group that precedes EVERYONE ACE.
> 
> Once again, if we remove mode and ACL synchronization requirement, then this
> problem won't exist.
> 
> Should we specify that "The world" includes owner and group?
> 
> VI. ACE4_INHERIT_ONLY_ACE and ACE4_NO_PROPAGATE_INHERIT_ACE
> 
> ACE4_INHERIT_ONLY_ACE and ACE4_NO_PROPAGATE_INHERIT_ACE flags can't be used 
> alone without ACE4_DIRECTORY_INHERIT_ACE and/or ACE4_FILE_INHERIT_ACE flags?
> 
> It's not clear what error to return in this case. INVAL? ATTRNOTSUPP?
> 
> VII. NULL and empty ACL
> 
> Windows OS supports empty and NULL ACLs, however meaning of empty ACL (no 
> access to anybody) is totally different from NULL ACL (full access to 
> Everyone). Is there any other OS that distinguishes NULL and empty ACL?
> 
> Should it be added to protocol?
> There is no way for NFS Server to report that there is no ACL (==NULL) set
> on the file.
> 
> VIII. Clarification of ACL processing.
> >From protocol
> ========================================================================
>    To determine if a request succeeds, each nfsace4 entry is processed
>    in order by the server.  Only ACEs which have a "who" that matches
>    the requester are considered.
> ......
>    When the ACL is fully processed, if there are bits in
>    requester's mask that have not been considered whether the server
>    allows or denies the access is undefined.  If there is a mode
>    attribute on the file, then this cannot happen, since the mode's
>    MODE4_*OTH bits will map to EVERYONE@ ACEs that unambiguously specify
>    the requester's access.
> ========================================================================
> This part requires clarification.
> (1. BTW, this is another place where protocol implies synchronization 
> between mode and ACL.)
> 2. When it says matches it implies that match is based on the definition of
> the ACE type and not only "Only ACEs which have a "who" that matches the 
> requester are considered".
> For example the BATCH ACE type matches any task which is batch vs
> interactive. Thus user1 (if he is owner of the file) matches OWNER@ and 
> OWNER@ ACE should be considered.
> 3. If synchronization is required, than description should be changed to
> consider not only EVERYONE@ ACE, but OWNER@ and GROUP@ ACEs also.
> 4. Consider the following example:
> - test_user_1 is an owner of the file
> - test_user_1 is member of test_group_1
> If there are test_user_1, test_group_1, OWNER@, GROUP@, EVERYONE@ ACEs set 
> on the file, than test_user_1 access permissions will be based on all these 
> ACEs.
> 
> 5. Why access is not defined if there is no mode? 
> It should be defined that
> When the ACL is fully processed, if there are bits in requester's mask that 
> have not been considered, than
> - Server will not allow (*NOT DENY*) access at the end of ACL processing.
> - If access is DENIED at the end of ACL processing, Server returns error
> - Server may use other sources for access checking (like mode, user's 
> privileges) and apply them if access is not allowed (BUT NOT DENIED) at the 
> end of ACL processing.
> - If there are no such additional sources for access checking, then Server 
> returns error.
> 
> Note, there is no synchronization requirements needed here, because anyway
> it's approximation of user's access rights and still only one ACCESS
> procedure (OK two - OPEN also) will tell Client the truth.
> 
> Special description should be added for NULL ACL (no ACL at all).
> 
> IX. Dealing with inheritable ACEs
> 
> Protocol says
> ======================================
>    ACE4_NO_PROPAGATE_INHERIT_ACE
> 
>    Can be placed on a directory. Normally when a new directory is
>    created and an ACE exists on the parent directory which is marked
>    ACL4_DIRECTORY_INHERIT_ACE, two ACEs are placed on the new directory.
>    One for the directory itself and one which is an inheritable ACE for
>    newly created directories.  This flag tells the server to not place
>    an ACE on the newly created directory which is inheritable by
>    subdirectories of the created directory.
> ======================================
> "Normally" creating two ACEs is implementation depended.
> 
> Two ACEs are created unless the NO_PROPAGATE is set. This is so that the 
> user can change the access permitted in the ACE which refers to the newly 
> created directory without changing the default inheritable access.
> In this scenario ACE without INHERIT flag should precede ACE with 
> INHERIT flag, because both of them are effective ACEs or 
> all ACEs with INHERIT flag should have INHERIT_ONLY_ACE flag also.
> 
> Second scenario does not add second ACE. In this case user always may add 
> explicit ACE to a directory if he wants to change default inheritable access
> 
> and keep inheritable ACE in place. 
> 
> X. Automatic propagation of inheritable ACEs.
> 
> This question was brought to mailing list attention some time ago (I guess 
> by Eric), but was not completely solved.
> 
> This is most complicated issue and probably could be postponed until 
> version 4.1. Actually there are not much changes required in .x file to
> allow automatic propagation of inheritable ACEs, just a few defines. Most
> complicated part is wording in ACL section.
> 
> Major problem is (at least for Windows):
> Protocol says that ACE's with INHERIT_* flags will apply on NEWLY created 
> objects ONLY. So, if ACL is changed on parent directory EXISTING child 
> objects keep OLD ACL. 
> Windows (default) inheritance works differently on Windows 2000/XP and could
> be set to work the same way on NT4 with service pack 6a (latest NT supported
> 
> by Microsoft). Changing ACL on parent directory will automatically change
> inherited ACEs in EXISTING child ACLs if child's ACL is not protected from 
> such changes.
> 
> So, we've got deadlock here. Following NFSv4 semantic (don't change ACL of
> existing child objects) will break Windows ACL approach.
> Following Windows semantic (change ACL of existing child objects) will break
> NFSv4 ACL approach.
> 
> Here is list of defines required for automatic propagation of inheritable 
> ACEs:
> ACL4_AUTO_INHERIT_REQ - Requests that the provider for the object protected 
> by the security descriptor automatically propagate the ACL to existing child
> 
> objects.
> ACL4_AUTO_INHERITED - ACL is set up to support automatic propagation of 
> inheritable ACEs to existing child objects.
> ACL4_PROTECTED - Prevents the ACL of the security descriptor from being 
> modified by inheritable ACEs.
> ACE4_INHERITED_ACE - Indicates that the ACE was inherited
> 
> That's all required changes for .x file to be able to implement automatic
> propagation of inheritable ACEs.
> 
> Minor problem:
> To add/remove one ACE from ACL NFSv4 requires full ACL update.
> Two procedures are required to set/remove particular ACE from ACL.
> 
> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
> That's all. 
> If you read everything above this line, you are the hero.
> 
> Waiting for comments.
> Sergey
> 
> 


From owner-nfsv4-wg@sunroof.eng.sun.com  Fri Feb 28 09:44:56 2003
Received: from patan.sun.com (patan.Sun.COM [192.18.98.43])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id JAA00164
	for <nfsv4-archive@lists.ietf.org>; Fri, 28 Feb 2003 09:44:56 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by patan.sun.com (8.9.3+Sun/8.9.3) with ESMTP id HAA17164;
	Fri, 28 Feb 2003 07:46:04 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1SEjLVL029072;
	Fri, 28 Feb 2003 06:45:21 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1SEj97f023426
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Fri, 28 Feb 2003 06:45:09 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h1SEj95C023425
	for nfsv4-wg-dist; Fri, 28 Feb 2003 06:45:09 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail1mpk.Eng.Sun.COM (engmail1mpk [129.146.1.45])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1SEj77f023418
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 28 Feb 2003 06:45:07 -0800 (PST)
Received: from nwkea-mail-2.sun.com ([192.18.42.14])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1SEjGVK022300
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 28 Feb 2003 06:45:16 -0800 (PST)
Received: from relay12.sun.com (ip150143-167-24.us.syntegra.com [150.143.167.24])
	by nwkea-mail-2.sun.com (8.9.3+Sun/8.9.3) with ESMTP id GAA26787
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 28 Feb 2003 06:45:10 -0800 (PST)
From: Black_David@emc.com
Received: from mms12es.mms.us.syntegra.com (mms12es.mms.us.syntegra.com [150.143.168.20]) by relay12i.sun.com with ESMTP for nfsv4-wg@sunroof.eng.sun.com; Fri, 28 Feb 2003 14:45:09 Z
Received: from mms11bms.mms.us.syntegra.com by mms12es.sun.com with ESMTP for nfsv4-wg@sunroof.eng.sun.com; Fri, 28 Feb 2003 14:43:21 Z
Received: from mms11bas.mms.us.syntegra.com (mms11bas.mms.us.syntegra.com [150.143.167.10]) by mms11bms.sun.com with ESMTP for nfsv4-wg@sunroof.eng.sun.com; Fri, 28 Feb 2003 14:45:08 Z
Received: from maho3msx2.corp.emc.com (maho3msx2.corp.emc.com [128.221.11.32]) by relay11.sun.com with ESMTP for nfsv4-wg@sunroof.eng.sun.com; Fri, 28 Feb 2003 14:45:08 Z
Received: by maho3msx2.corp.emc.com with Internet Mail Service (5.5.2653.19)
	id <1PRL1R68>; Fri, 28 Feb 2003 09:45:03 -0500
Message-Id: <277DD60FB639D511AC0400B0D068B71E0564C977@corpmx14.us.dg.com>
To: mike@eisler.com, nfsv4-wg@sunroof.eng.sun.com
Subject: RE: draft-eisler-nfsv4-ccm-00.txt
Date: Fri, 28 Feb 2003 09:42:18 -0500
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

Mike,

> > 1. Lack of authentication in CCM context initialization
> > 
> > According to Section 4, the way the CCM context initialization works
over
> > RPCSEC_GSS, it is not too difficult for a malicious user to cheat the
server
> > into establishing a new CCM context with him. All he has to do is to get
an
> > IPSec association with the server and fake a handle (opaque bytes with
no
> > cryptographic protection) to a previously established authentication
> > context.
> 
> If a TCP connection is protected with IPsec, I don't see how
> the malicious user can do anything bad. he can't hijack the
> TCP connection (that's what IPsec is for). Without hijacking the TCP
> connection, he'll be unable to use a CCM handle.

That's not as ironclad as it might appear.  The problem is that group
pre-shared keys are a rather common IPsec (IKE actually) authentication
methodology.  This involves every node in the group having the same
IPsec authentication key, so IPsec authentication only confirms
group membership, leaving distinguishing of individual access
privileges within the group to higher level protocols like NFS.
This and concerns about IPsec deployment/usage are why iSCSI has
inband authentication mechanisms in addition to requiring IPsec.

In this scenario, the enrollment controls (who can join the group,
and hence obtain the key) may not be wonderful, and whether a group
member can hijack another's TCP connection depends on some IPsec
implementation details.  In principle, hijacking can be prevented,
but this depends on exactly how the IPsec policy is configured in
the implementations (specifically the relationship between the IPsec
SAD and SPD entries - see Section 4.4 of RFC 2401 if you really
want to know more).

Thanks,
--David
----------------------------------------------------
David L. Black, Senior Technologist
EMC Corporation, 176 South St., Hopkinton, MA  01748
+1 (508) 293-7953             FAX: +1 (508) 293-7786
black_david@emc.com        Mobile: +1 (978) 394-7754
----------------------------------------------------


From owner-nfsv4-wg@sunroof.eng.sun.com  Fri Feb 28 10:42:22 2003
Received: from pheriche.sun.com (pheriche.sun.com [192.18.98.34])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id KAA02010
	for <nfsv4-archive@lists.ietf.org>; Fri, 28 Feb 2003 10:42:22 -0500 (EST)
Received: from engmail1mpk.Eng.Sun.COM ([129.146.1.45])
	by pheriche.sun.com (8.9.3+Sun/8.9.3) with ESMTP id IAA03347;
	Fri, 28 Feb 2003 08:44:02 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1SFhPVK004432;
	Fri, 28 Feb 2003 07:43:25 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1SFhD7f023858
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Fri, 28 Feb 2003 07:43:13 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h1SFhDDi023857
	for nfsv4-wg-dist; Fri, 28 Feb 2003 07:43:13 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail1mpk.Eng.Sun.COM (engmail1mpk [129.146.1.45])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1SFhB7f023850
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 28 Feb 2003 07:43:11 -0800 (PST)
Received: from patan.sun.com (patan.Central.Sun.COM [129.147.5.43])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1SFhKVK004385
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 28 Feb 2003 07:43:20 -0800 (PST)
Received: from relay11.sun.com (ip150143-167-14.us.syntegra.com [150.143.167.14])
	by patan.sun.com (8.9.3+Sun/8.9.3) with ESMTP id IAA28852
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 28 Feb 2003 08:43:14 -0700 (MST)
From: Dai_Peng@emc.com
Received: from mms12es.mms.us.syntegra.com (mms12es.mms.us.syntegra.com [150.143.168.20]) by relay11i.sun.com with ESMTP for nfsv4-wg@sunroof.eng.sun.com; Fri, 28 Feb 2003 15:43:13 Z
Received: from mms11bms.mms.us.syntegra.com by mms12es.sun.com with ESMTP for nfsv4-wg@sunroof.eng.sun.com; Fri, 28 Feb 2003 15:41:23 Z
Received: from mms12bas.mms.us.syntegra.com (mms12bas.mms.us.syntegra.com [150.143.167.20]) by mms11bms.sun.com with ESMTP for nfsv4-wg@sunroof.eng.sun.com; Fri, 28 Feb 2003 15:43:10 Z
Received: from maho3msx2.corp.emc.com (maho3msx2.corp.emc.com [128.221.11.32]) by relay12.sun.com with ESMTP for nfsv4-wg@sunroof.eng.sun.com; Fri, 28 Feb 2003 15:43:10 Z
Received: by maho3msx2.corp.emc.com with Internet Mail Service (5.5.2653.19)
	id <1PRL1XXY>; Fri, 28 Feb 2003 10:43:08 -0500
Message-Id: <6335CBB2F69AD411AD3100D0B7BA38E30CF0BF86@CORPUSMX2>
To: mike@eisler.com, nfsv4-wg@sunroof.eng.sun.com
Subject: RE: draft-eisler-nfsv4-ccm-00.txt
Date: Fri, 28 Feb 2003 10:42:25 -0500
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>


> -----Original Message-----
> From: Mike Eisler [mailto:mike@eisler.com]
> Sent: Thursday, February 27, 2003 7:06 PM
> To: nfsv4-wg@sunroof.eng.sun.com
> Subject: RE: draft-eisler-nfsv4-ccm-00.txt
> 
> 
> Thanks for feedback. I'll incorporate it into the next version
> of the i-d.
> 
> Some responses to your comments.
> 
> > -----Original Message-----
> > From: Dai_Peng@emc.com [mailto:Dai_Peng@emc.com]
> > Sent: Thursday, February 27, 2003 12:02 PM
> > To: mike@eisler.com; Nicolas.Williams@sun.com
> > Cc: nfsv4-wg@sunroof.eng.sun.com
> > Subject: RE: draft-eisler-nfsv4-ccm-00.txt
> > 
> > 
> > Here are some thoughts of mine from a rather high level.
> > 
> > 1. Lack of authentication in CCM context initialization
> > 
> > According to Section 4, the way the CCM context 
> > initialization works over
> > RPCSEC_GSS, it is not too difficult for a malicious user to 
> > cheat the server
> > into establishing a new CCM context with him. All he has to 
> > do is to get an
> > IPSec association with the server and fake a handle (opaque 
> > bytes with no
> > cryptographic protection) to a previously established authentication
> > context.
> 
> If a TCP connection is protected with IPsec, I don't see how
> the malicious user can do anything bad. he can't hijack the
> TCP connection (that's what IPsec is for). Without hijacking the TCP
> connection, he'll be unable to use a CCM handle.
> 

IPSec provides end-to-end security; but what is desired in NFSv4 is
user-to-user. Many hosts in the network can be configured to have the same
end-to-end security. But not all users that have access to those hosts might
be allowed to access NFSv4 server. Thus, the user that initiates the CCM
context has to prove to the server, once and for all during the lifetime of
the CCM context, that he has established the Kerberos v5 context, perhaps by
using a keyed MAC with the session key.

> > The problem here is the lack of binding between the 
> > authentication context
> > established through traditional GSS mechanisms and the secure 
> > transport
> > channel used in CCM.
> > 
> > In order to provide this binding, we must integrity protect 
> > the application
> > context handle among other things passed in the 
> rpc_gss_init_arg. For
> > example, we could generate a checksum over the application 
> > context handle,
> > among other things if the handle does not have enough 
> bytes, using the
> > session key found in the soon-to-be-replaced authentication 
> > context, and
> > pass the whole thing as the opaque token in rpc_gss_init_arg. In the
> > response, the server has to do the same with the CCM status.
> 
> I don't see how that solves the problem. Once you
> have a established the CCM context, what prevents your malicious
> user from using the CCM handle for its own requests? The only

This is prevented by ensuring the binding between the CCM context and the
secure channel is legit, as outlined in 2a. Additional crypto is not needed
here to achieve authentication because of IPSec.

> thing that protects one from this sort of attack is
> trsuting the integrity of the underlying TCP connection, and
> IPsec is doing that.
> 
> > 2. Implementation caveats
> > 
> > A new mechanism that leverages IPSec to provide user-based 
> > authentication
> > does provide comparable security to that of the traditional 
> > GSS mechanisms.
> > Yet there are some caveats unique to this new mechanism 
> that should be
> > avoided when it comes to implementation.
> > 
> > a. The new mechanism does away with compute intensive cryptographic
> > operation needed for authentication using a traditional GSS 
> mechanism.
> > However, it would be wrong to think authentication is totally 
> > obsoleted. I'd
> > like to think authentication takes a different form now - 
> ensuring the
> > binding between the CCM context and the secure transport 
> > channel is legit
> > for each incoming request. In other words, the CCM context 
> > referenced in the
> > request has been established using the same secure transport 
> > channel as the
> > request.
> 
> Ye, that is my intent, but I guess it didn't come across in the
> i-d. I'll try better. :-)
> 
> > b. When the same secure transport channel is multiplexed on 
> > the client side
> > for multiple users, the client has to ensure the CCM context is only
> > accessible to the user that has established it in the first 
> place. One
> > possible way to ensure that is by placing CCM contexts in the 
> > privileged
> > address space offering only controlled indexed access. 
> > Imagine a user level
> > process faking a CCM context handle (established by a legit 
> > user locally)
> > through a shared secure transport channel without having to 
> > break into local
> > privilege boundary and no cryptographics involved. It is much 
> > harder to do
> > the same using for example Kerberos since that requires local 
> > privilege to
> > access other user's ticket cache.
> 
> Fair enough, this can documented.
> 
> > 3. Security consideration
> > 
> > Properly implemented CCM can offer comparable security.
> > 
> > a. CCM does not unnecessarily inflate the scope of the trust 
> > domain, as does
> > for example AUTH_SYS over IPSec. By requiring the 
> > authentication in the CCM
> > context initialization (using a previously established 
> > context), the trust
> > domain does not extend to the client.
> 
> Agreed.
> 
> > b. Both the traditional mechanisms and CCM rely on the 
> security of the
> > client to protect locally logged on users. Compromise of the 
> > client impact
> > all users on the same client. CCM does not make the problem worse.
> 
> Agreed.
> 
> > c. For CCM, users on the same client may share the same 
> > secure transport
> > channel, meaning all traffic is protected with the same 
> > session key at a
> > given time. However, IMHO, it does not make cryptoanalysis of 
> > the traffic
> > easier compared to say Kerberos. Assuming reasonable NFS 
> 
> I disagree.
> 
> > usage and typical
> > ticket lifetime of several hours, the attacker would have 
> > gathered a lot of
> 
> Ticket lifetimes can be configured. Servers can delete
> gss contexts at will.
> 
> > traffic anyways. On the other hand, the secure transport may 
> > provide added
> > benefits of automatic key exchange (AKE) management. For 
> example, the
> > lifetime of an IPSec session key can be adjusted based on the 
> > traffic. This
> > can be made shorter than the CCM context lifetime if necessary.
> 
> Evenif Kerberos does shared the advsntages of the
> system you describe above, one could certainly implement a GSS
> mechanism that does exactly waht you say. So at that point
> we've got a comparison between the ciphetext being generated at the
> IPsec level, versus the ciphertext generated at the RPCSEC_GSS
> level by zillions of users.
> 
> There's a related issue, which is that if the system administrator
> is careless in the management of the pair of IPsec
> secret keys between a client and server, wherease if the user is
> careful in the management of his own keys, then the user is at risk
> due to negligence.
> 

Agreed there are differences between the two mechanisms, but it is not clear
to me that Kerberos is that much better. IMHO, a detailed comparison of the
two will help with understanding and therefore adoption.

The example above. Assuming strong authentication is used for IPSec (such as
certificates, not group-shared key), then compromising IPSec secret would
usually mean the hacker has gained privileged access to the local system. If
this is the case, all users on that system using Kerberos will be impacted
as well.

> 	-mre
> 


From owner-nfsv4-wg@sunroof.eng.sun.com  Fri Feb 28 16:51:38 2003
Received: from nwkea-mail-2.sun.com (nwkea-mail-2.sun.com [192.18.42.14])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA14449
	for <nfsv4-archive@lists.ietf.org>; Fri, 28 Feb 2003 16:51:38 -0500 (EST)
Received: from engmail1mpk.Eng.Sun.COM ([129.146.1.45])
	by nwkea-mail-2.sun.com (8.9.3+Sun/8.9.3) with ESMTP id NAA20703;
	Fri, 28 Feb 2003 13:46:26 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1SLk5VK004780;
	Fri, 28 Feb 2003 13:46:05 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1SLjr7f027777
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Fri, 28 Feb 2003 13:45:53 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h1SLjruc027776
	for nfsv4-wg-dist; Fri, 28 Feb 2003 13:45:53 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from sfbaymail2sca.SFBay.Sun.COM (sfbaymail2sca.SFBay.Sun.COM [129.145.155.42])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1SLjp7f027769
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 28 Feb 2003 13:45:51 -0800 (PST)
Received: from d-usca03-225-161.sfbay.sun.com (d-usca03-225-161.SFBay.Sun.COM [129.145.225.161])
	by sfbaymail2sca.SFBay.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h1SLk0Pv019099
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 28 Feb 2003 13:46:00 -0800 (PST)
Received: from d-usca03-225-161.sfbay.sun.com (localhost [127.0.0.1])
	by d-usca03-225-161.sfbay.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h1SLheSH000793
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 28 Feb 2003 15:43:40 -0600 (CST)
Received: (from shepler@localhost)
	by d-usca03-225-161.sfbay.sun.com (8.12.8+Sun/8.12.8/Submit) id h1SLheCH000792
	for nfsv4-wg@sunroof.eng.sun.com; Fri, 28 Feb 2003 15:43:40 -0600 (CST)
Date: Fri, 28 Feb 2003 15:43:40 -0600
From: Spencer Shepler <shepler@eng.sun.com>
To: nfsv4-wg@sunroof.eng.sun.com
Subject: recent problems with the NFSv4 WG alias and archive
Message-ID: <20030228214340.GD662@d-usca03-225-161.central.sun.com>
Reply-To: spencer.shepler@sun.com
Mail-Followup-To: Spencer Shepler <shepler@eng.sun.com>,
	nfsv4-wg@sunroof.eng.sun.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.4i
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

There have been a few problems of late with the NFSv4 WG archive
and the alias itself.  The archive problems are simple in that they
are currently offline.

The alias problems are less visible but do exist.  There was a SNMP
infrastructure change with Sun recently that resulted in more hops for
mail delivery.  This in turn has (for some recipients) turned out to
exceed the limits of SNMP hops for properly receiving mail.

Because of this (and other minor issues), I have submitted a request
to have the NFSv4 WG alias hosted by the IETF.  This should help in
identifying list location, availability of archives, and delivery
issues.  I expect that it will take a few days before the new list is
available and will post information as I have it.

Note that in the interim, some people are not receiving email properly
because of the hops issue.  There is an archive of everything being
sent to the alias so the information will be available eventually
(hopefully short term).  Please keep this in mind if you don't hear
back from your favorite WG member since they may not have received
your email in the first place. :-(

-- 
Spencer



