
From internet-drafts@ietf.org  Thu Jan 17 15:07:51 2013
Return-Path: <internet-drafts@ietf.org>
X-Original-To: nfsv4@ietfa.amsl.com
Delivered-To: nfsv4@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id DA08F21F889C; Thu, 17 Jan 2013 15:07:51 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.344
X-Spam-Level: 
X-Spam-Status: No, score=-102.344 tagged_above=-999 required=5 tests=[AWL=0.255, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lDqrtuH9raBZ; Thu, 17 Jan 2013 15:07:51 -0800 (PST)
Received: from ietfa.amsl.com (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 36F7A21F888B; Thu, 17 Jan 2013 15:07:51 -0800 (PST)
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
From: internet-drafts@ietf.org
To: i-d-announce@ietf.org
X-Test-IDTracker: no
X-IETF-IDTracker: 4.37
Message-ID: <20130117230751.28090.54792.idtracker@ietfa.amsl.com>
Date: Thu, 17 Jan 2013 15:07:51 -0800
Cc: nfsv4@ietf.org
Subject: [nfsv4] I-D Action: draft-ietf-nfsv4-rfc3530bis-dot-x-14.txt
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/nfsv4>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 17 Jan 2013 23:07:52 -0000

A New Internet-Draft is available from the on-line Internet-Drafts director=
ies.
 This draft is a work item of the Network File System Version 4 Working Gro=
up of the IETF.

	Title           : Network File System (NFS) Version 4 External Data Repres=
entation Standard (XDR) Description
	Author(s)       : Thomas Haynes
                          David Noveck
	Filename        : draft-ietf-nfsv4-rfc3530bis-dot-x-14.txt
	Pages           : 38
	Date            : 2013-01-17

Abstract:
   The Network File System (NFS) version 4 is a distributed filesystem
   protocol which owes heritage to NFS protocol version 2, RFC 1094, and
   version 3, RFC 1813.  Unlike earlier versions, the NFS version 4
   protocol supports traditional file access while integrating support
   for file locking and the mount protocol.  In addition, support for
   strong security (and its negotiation), compound operations, client
   caching, and internationalization have been added.  Of course,
   attention has been applied to making NFS version 4 operate well in an
   Internet environment.

   RFC3530bis is formally obsoleting RFC 3530.  But this document,
   together with RFC3530bis replaces RFC 3530 as the definition of the
   NFS version 4 protocol.



The IETF datatracker status page for this draft is:
https://datatracker.ietf.org/doc/draft-ietf-nfsv4-rfc3530bis-dot-x

There's also a htmlized version available at:
http://tools.ietf.org/html/draft-ietf-nfsv4-rfc3530bis-dot-x-14

A diff from the previous version is available at:
http://www.ietf.org/rfcdiff?url2=3Ddraft-ietf-nfsv4-rfc3530bis-dot-x-14


Internet-Drafts are also available by anonymous FTP at:
ftp://ftp.ietf.org/internet-drafts/


From bill.baker@oracle.com  Fri Jan 18 07:58:36 2013
Return-Path: <bill.baker@oracle.com>
X-Original-To: nfsv4@ietfa.amsl.com
Delivered-To: nfsv4@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 7C11A21F883E for <nfsv4@ietfa.amsl.com>; Fri, 18 Jan 2013 07:58:36 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.599
X-Spam-Level: 
X-Spam-Status: No, score=-6.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BRaf0-y2LhFs for <nfsv4@ietfa.amsl.com>; Fri, 18 Jan 2013 07:58:35 -0800 (PST)
Received: from userp1040.oracle.com (userp1040.oracle.com [156.151.31.81]) by ietfa.amsl.com (Postfix) with ESMTP id C599721F871D for <nfsv4@ietf.org>; Fri, 18 Jan 2013 07:58:35 -0800 (PST)
Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94]) by userp1040.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id r0IFwYAc026182 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 18 Jan 2013 15:58:35 GMT
Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by ucsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r0IFwXdk018743 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 18 Jan 2013 15:58:34 GMT
Received: from abhmt105.oracle.com (abhmt105.oracle.com [141.146.116.57]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id r0IFwXGO029351; Fri, 18 Jan 2013 09:58:33 -0600
Received: from [10.135.188.69] (/10.135.188.69) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 18 Jan 2013 07:58:33 -0800
Message-ID: <50F97129.6070004@oracle.com>
Date: Fri, 18 Jan 2013 09:58:33 -0600
From: Bill Baker <bill.baker@oracle.com>
User-Agent: Mozilla/5.0 (X11; SunOS i86pc; rv:10.0.6esrpre) Gecko/20120731 Thunderbird/10.0.6
MIME-Version: 1.0
To: nfsv4@ietf.org
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Source-IP: ucsinet22.oracle.com [156.151.31.94]
Cc: linux-nfs@vger.kernel.org
Subject: [nfsv4] Reminder: Connectathon 2013 is filling up fast, register soon
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/nfsv4>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 18 Jan 2013 15:58:36 -0000

Greetings,

Oracle is hosting Connectathon 2013 in
February (2/25 - 3/1) at the Agnews
auditorium on Oracle's Santa Clara Campus.

Event details are posted on the website:

http://hub.opensolaris.org/bin/view/Community+Group+nfs/Connectathon13

Please contact our event
coordinator, Tina.Hartshorn@oracle.com, if you need
additional information or have special requirements.

Also, Chuck Lever has graciously volunteered to
coordinate the talks, if you have a proposal for
a talk, please drop a note to Chuck.Lever@oracle.com
We'll post the schedule to the website as we have them,
but expect them to be Tuesday & Wednesday afternoon.

Regards,
-- 
Bill Baker - Oracle Solaris NFS


From bfields@fieldses.org  Tue Jan 22 14:06:23 2013
Return-Path: <bfields@fieldses.org>
X-Original-To: nfsv4@ietfa.amsl.com
Delivered-To: nfsv4@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 1551221F8956 for <nfsv4@ietfa.amsl.com>; Tue, 22 Jan 2013 14:06:23 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.74
X-Spam-Level: 
X-Spam-Status: No, score=-0.74 tagged_above=-999 required=5 tests=[BAYES_20=-0.74]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JBB1+HsrypD1 for <nfsv4@ietfa.amsl.com>; Tue, 22 Jan 2013 14:06:22 -0800 (PST)
Received: from fieldses.org (fieldses.org [174.143.236.118]) by ietfa.amsl.com (Postfix) with ESMTP id 9A48F21F881A for <nfsv4@ietf.org>; Tue, 22 Jan 2013 14:06:22 -0800 (PST)
Received: from bfields by fieldses.org with local (Exim 4.76) (envelope-from <bfields@fieldses.org>) id 1Txlz2-0003rl-CY; Tue, 22 Jan 2013 17:06:20 -0500
Date: Tue, 22 Jan 2013 17:06:20 -0500
To: nfsv4 list <nfsv4@ietf.org>
Message-ID: <20130122220619.GA14617@fieldses.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.21 (2010-09-15)
From: "J. Bruce Fields" <bfields@fieldses.org>
Cc: Trond Myklebust <trond@netapp.com>
Subject: [nfsv4] make change_sec_label optional
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/nfsv4>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 22 Jan 2013 22:06:23 -0000

The initial labeled NFS implementation people have been working on for
Linux doesn't appear to need the change_sec_label attribute--labels are
expected to be static.

So, let's make this optional.

Assuming we do end up needing this in the future, all this means is that
future clients will need a little logic to handle servers without
change_sec_label support.  That doesn't seem like a huge deal.

--b.

diff --git a/nfsv42_middle_fileattributes.xml b/nfsv42_middle_fileattributes.xml
index 116b794..ac92119 100644
--- a/nfsv42_middle_fileattributes.xml
+++ b/nfsv42_middle_fileattributes.xml
@@ -192,9 +192,8 @@ typedef uint32_t  policy4;
       </t>
 
       <t>
-        If a server supports sec_label, then it MUST also support
-        change_sec_label. Any modification to sec_label MUST modify
-        the value for change_sec_label.
+        A server that supports sec_label may still choose not to support
+	change_sec_label.
       </t>
     </section>
 

From Tom.Haynes@netapp.com  Tue Jan 22 20:03:49 2013
Return-Path: <Tom.Haynes@netapp.com>
X-Original-To: nfsv4@ietfa.amsl.com
Delivered-To: nfsv4@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 21F9121F8804 for <nfsv4@ietfa.amsl.com>; Tue, 22 Jan 2013 20:03:49 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level: 
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3Y3ZOKtNe3yu for <nfsv4@ietfa.amsl.com>; Tue, 22 Jan 2013 20:03:48 -0800 (PST)
Received: from mx12.netapp.com (mx12.netapp.com [216.240.18.77]) by ietfa.amsl.com (Postfix) with ESMTP id 59AAA21F87FF for <nfsv4@ietf.org>; Tue, 22 Jan 2013 20:03:48 -0800 (PST)
X-IronPort-AV: E=Sophos;i="4.84,518,1355126400"; d="scan'208";a="10597831"
Received: from smtp1.corp.netapp.com ([10.57.156.124]) by mx12-out.netapp.com with ESMTP; 22 Jan 2013 20:03:38 -0800
Received: from vmwexceht05-prd.hq.netapp.com (exchsmtp.hq.netapp.com [10.106.77.35]) by smtp1.corp.netapp.com (8.13.1/8.13.1/NTAP-1.6) with ESMTP id r0N43cFL009128; Tue, 22 Jan 2013 20:03:38 -0800 (PST)
Received: from SACEXCMBX05-PRD.hq.netapp.com ([169.254.9.231]) by vmwexceht05-prd.hq.netapp.com ([10.106.77.35]) with mapi id 14.02.0328.009; Tue, 22 Jan 2013 20:03:37 -0800
From: "Haynes, Tom" <Tom.Haynes@netapp.com>
To: "J. Bruce Fields" <bfields@fieldses.org>, Jarrett Lu <jarrett.lu@oracle.com>
Thread-Topic: [nfsv4] make change_sec_label optional
Thread-Index: AQHN+OzDZuNcdNHt40Obo16UaCV8iphW0YCA
Date: Wed, 23 Jan 2013 04:03:37 +0000
Message-ID: <D54C745FA96F75489B58FCBD8956AE8F18E3CD2A@sacexcmbx05-prd.hq.netapp.com>
References: <20130122220619.GA14617@fieldses.org>
In-Reply-To: <20130122220619.GA14617@fieldses.org>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [10.106.53.51]
Content-Type: text/plain; charset="us-ascii"
Content-ID: <E7A6BD8DEFD7964C8B217D8EBAD4C864@tahoe.netapp.com>
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Cc: "Myklebust, Trond" <Trond.Myklebust@netapp.com>, nfsv4 list <nfsv4@ietf.org>
Subject: Re: [nfsv4] make change_sec_label optional
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/nfsv4>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 23 Jan 2013 04:03:49 -0000

On Jan 22, 2013, at 4:06 PM, J. Bruce Fields <bfields@fieldses.org> wrote:

> The initial labeled NFS implementation people have been working on for
> Linux doesn't appear to need the change_sec_label attribute--labels are
> expected to be static.
>=20
> So, let's make this optional.
>=20
> Assuming we do end up needing this in the future, all this means is that
> future clients will need a little logic to handle servers without
> change_sec_label support.  That doesn't seem like a huge deal.
>=20
> --b.
>=20
> diff --git a/nfsv42_middle_fileattributes.xml b/nfsv42_middle_fileattribu=
tes.xml
> index 116b794..ac92119 100644
> --- a/nfsv42_middle_fileattributes.xml
> +++ b/nfsv42_middle_fileattributes.xml
> @@ -192,9 +192,8 @@ typedef uint32_t  policy4;
>       </t>
>=20
>       <t>
> -        If a server supports sec_label, then it MUST also support
> -        change_sec_label. Any modification to sec_label MUST modify
> -        the value for change_sec_label.
> +        A server that supports sec_label may still choose not to support
> +	change_sec_label.
>       </t>
>     </section>
>=20
> _______________________________________________
> nfsv4 mailing list
> nfsv4@ietf.org
> https://www.ietf.org/mailman/listinfo/nfsv4



Thanks Bruce, I'd still like to hear from Jarrett before we do that.=

From nico@cryptonector.com  Tue Jan 22 20:17:28 2013
Return-Path: <nico@cryptonector.com>
X-Original-To: nfsv4@ietfa.amsl.com
Delivered-To: nfsv4@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 098C721F84DA for <nfsv4@ietfa.amsl.com>; Tue, 22 Jan 2013 20:17:28 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.977
X-Spam-Level: 
X-Spam-Status: No, score=-1.977 tagged_above=-999 required=5 tests=[AWL=-0.000, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OSx7o80Ihupa for <nfsv4@ietfa.amsl.com>; Tue, 22 Jan 2013 20:17:27 -0800 (PST)
Received: from homiemail-a32.g.dreamhost.com (caiajhbdcagg.dreamhost.com [208.97.132.66]) by ietfa.amsl.com (Postfix) with ESMTP id 35DC521F84D7 for <nfsv4@ietf.org>; Tue, 22 Jan 2013 20:17:27 -0800 (PST)
Received: from homiemail-a32.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a32.g.dreamhost.com (Postfix) with ESMTP id 92E45584064 for <nfsv4@ietf.org>; Tue, 22 Jan 2013 20:17:26 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=cryptonector.com; h= mime-version:in-reply-to:references:date:message-id:subject:from :to:cc:content-type; s=cryptonector.com; bh=HiPRSf7+okp688lYgioH RLDgPek=; b=gJl6KzeiRg0rc03F6qYdl0b+IHr+km+nJDhwRG26Yew0iafqbDYU 516oqTaRZA6+TR+QXDAbU/pJXAnBxa0NEr8fDj8rBjGUOkP6yrRT/3GHfz1Vvfan leJVlrWs8ryVxyqhGjsKoEwvLIKEL8gZbHGh4GoI7ibeu638NcLVEi8=
Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com [209.85.212.182]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: nico@cryptonector.com) by homiemail-a32.g.dreamhost.com (Postfix) with ESMTPSA id 3D73E584057 for <nfsv4@ietf.org>; Tue, 22 Jan 2013 20:17:26 -0800 (PST)
Received: by mail-wi0-f182.google.com with SMTP id hn14so324277wib.9 for <nfsv4@ietf.org>; Tue, 22 Jan 2013 20:17:25 -0800 (PST)
MIME-Version: 1.0
X-Received: by 10.180.8.130 with SMTP id r2mr24879644wia.28.1358914644887; Tue, 22 Jan 2013 20:17:24 -0800 (PST)
Received: by 10.217.39.133 with HTTP; Tue, 22 Jan 2013 20:17:24 -0800 (PST)
In-Reply-To: <D54C745FA96F75489B58FCBD8956AE8F18E3CD2A@sacexcmbx05-prd.hq.netapp.com>
References: <20130122220619.GA14617@fieldses.org> <D54C745FA96F75489B58FCBD8956AE8F18E3CD2A@sacexcmbx05-prd.hq.netapp.com>
Date: Tue, 22 Jan 2013 22:17:24 -0600
Message-ID: <CAK3OfOigySeGPBuODq08LMsxJ45-96Khceh2POyLpXKdsEuiYQ@mail.gmail.com>
From: Nico Williams <nico@cryptonector.com>
To: "Haynes, Tom" <Tom.Haynes@netapp.com>
Content-Type: text/plain; charset=UTF-8
Cc: "J. Bruce Fields" <bfields@fieldses.org>, "Myklebust, Trond" <Trond.Myklebust@netapp.com>, nfsv4 list <nfsv4@ietf.org>
Subject: Re: [nfsv4] make change_sec_label optional
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/nfsv4>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 23 Jan 2013 04:17:28 -0000

The server could return ENOACCES or say it's not supported.  What's
the difference?

Well, if the client can see that the server doesn't implement it
without first trying it... that could be good, except that how's the
client going to tell the user about this?  It won't.  On the other
hand, the server might implement it but only for some filesystems and
not others, in which case making it optional does nothing (the server
will have to implement it).

In the end I think it's pointless to make this optional, and for a
server that truly doesn't support it to implement a trivial stub is
hardly a burden.

But maybe I'm missing some motivation?

And yes, in some label systems labels of resources *can* and *do*
change.  In MLS, for example, there's supposed to be a classification
officer who can re-classify (into more secret levels) files, and
there's also an officer who can reclassify down (i.e., declassify).

Nico
--

From bfields@fieldses.org  Wed Jan 23 08:52:37 2013
Return-Path: <bfields@fieldses.org>
X-Original-To: nfsv4@ietfa.amsl.com
Delivered-To: nfsv4@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id CD9FB21F8503 for <nfsv4@ietfa.amsl.com>; Wed, 23 Jan 2013 08:52:37 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.67
X-Spam-Level: 
X-Spam-Status: No, score=-1.67 tagged_above=-999 required=5 tests=[AWL=0.930,  BAYES_00=-2.599]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lrZH6nY1kg4n for <nfsv4@ietfa.amsl.com>; Wed, 23 Jan 2013 08:52:37 -0800 (PST)
Received: from fieldses.org (fieldses.org [174.143.236.118]) by ietfa.amsl.com (Postfix) with ESMTP id 19B8821F84B9 for <nfsv4@ietf.org>; Wed, 23 Jan 2013 08:52:36 -0800 (PST)
Received: from bfields by fieldses.org with local (Exim 4.76) (envelope-from <bfields@fieldses.org>) id 1Ty3Yt-0000zD-7L; Wed, 23 Jan 2013 11:52:31 -0500
Date: Wed, 23 Jan 2013 11:52:31 -0500
From: "J. Bruce Fields" <bfields@fieldses.org>
To: Nico Williams <nico@cryptonector.com>
Message-ID: <20130123165230.GA3315@fieldses.org>
References: <20130122220619.GA14617@fieldses.org> <D54C745FA96F75489B58FCBD8956AE8F18E3CD2A@sacexcmbx05-prd.hq.netapp.com> <CAK3OfOigySeGPBuODq08LMsxJ45-96Khceh2POyLpXKdsEuiYQ@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <CAK3OfOigySeGPBuODq08LMsxJ45-96Khceh2POyLpXKdsEuiYQ@mail.gmail.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
Cc: "Myklebust, Trond" <Trond.Myklebust@netapp.com>, "Haynes, Tom" <Tom.Haynes@netapp.com>, nfsv4 list <nfsv4@ietf.org>
Subject: Re: [nfsv4] make change_sec_label optional
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/nfsv4>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 23 Jan 2013 16:52:37 -0000

On Tue, Jan 22, 2013 at 10:17:24PM -0600, Nico Williams wrote:
> The server could return ENOACCES or say it's not supported.  What's
> the difference?

What's ENOACCES?

Sorry, I don't understand the question.

> Well, if the client can see that the server doesn't implement it
> without first trying it... that could be good, except that how's the
> client going to tell the user about this?  It won't.  On the other
> hand, the server might implement it but only for some filesystems and
> not others, in which case making it optional does nothing (the server
> will have to implement it).
> 
> In the end I think it's pointless to make this optional, and for a
> server that truly doesn't support it to implement a trivial stub is
> hardly a burden.

What trivial stub, exactly?

> But maybe I'm missing some motivation?

The only client implementation I've seen (for Linux) doesn't plan to use
this attribute.  I therefore see no reason to require a server to
implement it.

--b.

> And yes, in some label systems labels of resources *can* and *do*
> change.  In MLS, for example, there's supposed to be a classification
> officer who can re-classify (into more secret levels) files, and
> there's also an officer who can reclassify down (i.e., declassify).
> 
> Nico
> --

From nico@cryptonector.com  Wed Jan 23 08:56:05 2013
Return-Path: <nico@cryptonector.com>
X-Original-To: nfsv4@ietfa.amsl.com
Delivered-To: nfsv4@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 7C7F221F8566 for <nfsv4@ietfa.amsl.com>; Wed, 23 Jan 2013 08:56:05 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.287
X-Spam-Level: 
X-Spam-Status: No, score=-3.287 tagged_above=-999 required=5 tests=[AWL=-1.310, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6RSncrRFgTGj for <nfsv4@ietfa.amsl.com>; Wed, 23 Jan 2013 08:56:04 -0800 (PST)
Received: from homiemail-a65.g.dreamhost.com (caiajhbdcbef.dreamhost.com [208.97.132.145]) by ietfa.amsl.com (Postfix) with ESMTP id 97D2E21F854F for <nfsv4@ietf.org>; Wed, 23 Jan 2013 08:56:04 -0800 (PST)
Received: from homiemail-a65.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a65.g.dreamhost.com (Postfix) with ESMTP id 04C2F7E4083 for <nfsv4@ietf.org>; Wed, 23 Jan 2013 08:56:04 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=cryptonector.com; h= mime-version:in-reply-to:references:date:message-id:subject:from :to:cc:content-type; s=cryptonector.com; bh=HVj30llrPRx7+UYj/GEs 4fDyz9Q=; b=GboaRex5iZBFaBZOQY6nrK6lZ8gwE2VIPjuQUKvtSum0yypFuFiz vV2+FuDl6t/525r4vn1mZSIrrfQJaQb4ZgWqQq36wO+U7tX87hWg6t/W6iaWhsQy GkfOTta983eKivmvYfpVgaluFMjfXu6Ea1BkJJW6JTwrpaMXzx7dQJA=
Received: from mail-wg0-f54.google.com (mail-wg0-f54.google.com [74.125.82.54]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: nico@cryptonector.com) by homiemail-a65.g.dreamhost.com (Postfix) with ESMTPSA id 63A997E4086 for <nfsv4@ietf.org>; Wed, 23 Jan 2013 08:56:03 -0800 (PST)
Received: by mail-wg0-f54.google.com with SMTP id fg15so5240161wgb.33 for <nfsv4@ietf.org>; Wed, 23 Jan 2013 08:56:01 -0800 (PST)
MIME-Version: 1.0
X-Received: by 10.194.80.73 with SMTP id p9mr3999407wjx.4.1358960161463; Wed, 23 Jan 2013 08:56:01 -0800 (PST)
Received: by 10.217.39.133 with HTTP; Wed, 23 Jan 2013 08:56:01 -0800 (PST)
In-Reply-To: <20130123165230.GA3315@fieldses.org>
References: <20130122220619.GA14617@fieldses.org> <D54C745FA96F75489B58FCBD8956AE8F18E3CD2A@sacexcmbx05-prd.hq.netapp.com> <CAK3OfOigySeGPBuODq08LMsxJ45-96Khceh2POyLpXKdsEuiYQ@mail.gmail.com> <20130123165230.GA3315@fieldses.org>
Date: Wed, 23 Jan 2013 10:56:01 -0600
Message-ID: <CAK3OfOg_vF7ka0CZkeOkjKELwz2bx9pxQvkJ2RynbyQ2jJYofQ@mail.gmail.com>
From: Nico Williams <nico@cryptonector.com>
To: "J. Bruce Fields" <bfields@fieldses.org>
Content-Type: text/plain; charset=UTF-8
Cc: "Myklebust, Trond" <Trond.Myklebust@netapp.com>, "Haynes, Tom" <Tom.Haynes@netapp.com>, nfsv4 list <nfsv4@ietf.org>
Subject: Re: [nfsv4] make change_sec_label optional
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/nfsv4>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 23 Jan 2013 16:56:05 -0000

On Wed, Jan 23, 2013 at 10:52 AM, J. Bruce Fields <bfields@fieldses.org> wrote:
> On Tue, Jan 22, 2013 at 10:17:24PM -0600, Nico Williams wrote:
>> The server could return ENOACCES or say it's not supported.  What's
>> the difference?
>
> What's ENOACCES?
>
> Sorry, I don't understand the question.

If the operation is not supported, return an error.

>> Well, if the client can see that the server doesn't implement it
>> without first trying it... that could be good, except that how's the
>> client going to tell the user about this?  It won't.  On the other
>> hand, the server might implement it but only for some filesystems and
>> not others, in which case making it optional does nothing (the server
>> will have to implement it).
>>
>> In the end I think it's pointless to make this optional, and for a
>> server that truly doesn't support it to implement a trivial stub is
>> hardly a burden.
>
> What trivial stub, exactly?

A function (or method) that only returns an error back to the client.

>> But maybe I'm missing some motivation?
>
> The only client implementation I've seen (for Linux) doesn't plan to use
> this attribute.  I therefore see no reason to require a server to
> implement it.

What's that got to do with anything?  Solaris certainly has this
operation, and if it's NFSv4 client doesn't yet then it's only a
matter of time.  We know some people will need this operation, and we
know support for it will vary by filesystem, not just server, thus
negotiation seems useless.

Nico
--

From bfields@fieldses.org  Wed Jan 23 09:16:37 2013
Return-Path: <bfields@fieldses.org>
X-Original-To: nfsv4@ietfa.amsl.com
Delivered-To: nfsv4@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id CEE9D21F856F for <nfsv4@ietfa.amsl.com>; Wed, 23 Jan 2013 09:16:37 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.134
X-Spam-Level: 
X-Spam-Status: No, score=-2.134 tagged_above=-999 required=5 tests=[AWL=0.465,  BAYES_00=-2.599]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NG915o8HBvqo for <nfsv4@ietfa.amsl.com>; Wed, 23 Jan 2013 09:16:37 -0800 (PST)
Received: from fieldses.org (fieldses.org [174.143.236.118]) by ietfa.amsl.com (Postfix) with ESMTP id 6B10521F8479 for <nfsv4@ietf.org>; Wed, 23 Jan 2013 09:16:37 -0800 (PST)
Received: from bfields by fieldses.org with local (Exim 4.76) (envelope-from <bfields@fieldses.org>) id 1Ty3wA-00012S-Cx; Wed, 23 Jan 2013 12:16:34 -0500
Date: Wed, 23 Jan 2013 12:16:34 -0500
From: "J. Bruce Fields" <bfields@fieldses.org>
To: Nico Williams <nico@cryptonector.com>
Message-ID: <20130123171634.GB3315@fieldses.org>
References: <20130122220619.GA14617@fieldses.org> <D54C745FA96F75489B58FCBD8956AE8F18E3CD2A@sacexcmbx05-prd.hq.netapp.com> <CAK3OfOigySeGPBuODq08LMsxJ45-96Khceh2POyLpXKdsEuiYQ@mail.gmail.com> <20130123165230.GA3315@fieldses.org> <CAK3OfOg_vF7ka0CZkeOkjKELwz2bx9pxQvkJ2RynbyQ2jJYofQ@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <CAK3OfOg_vF7ka0CZkeOkjKELwz2bx9pxQvkJ2RynbyQ2jJYofQ@mail.gmail.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
Cc: "Myklebust, Trond" <Trond.Myklebust@netapp.com>, "Haynes, Tom" <Tom.Haynes@netapp.com>, nfsv4 list <nfsv4@ietf.org>
Subject: Re: [nfsv4] make change_sec_label optional
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/nfsv4>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 23 Jan 2013 17:16:37 -0000

On Wed, Jan 23, 2013 at 10:56:01AM -0600, Nico Williams wrote:
> On Wed, Jan 23, 2013 at 10:52 AM, J. Bruce Fields <bfields@fieldses.org> wrote:
> > On Tue, Jan 22, 2013 at 10:17:24PM -0600, Nico Williams wrote:
> >> The server could return ENOACCES or say it's not supported.  What's
> >> the difference?
> >
> > What's ENOACCES?
> >
> > Sorry, I don't understand the question.
> 
> If the operation is not supported, return an error.

change_sec_label is a read-only attribute.

--b.

From jarrett.lu@oracle.com  Wed Jan 23 10:33:50 2013
Return-Path: <jarrett.lu@oracle.com>
X-Original-To: nfsv4@ietfa.amsl.com
Delivered-To: nfsv4@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6F07B21F85B1 for <nfsv4@ietfa.amsl.com>; Wed, 23 Jan 2013 10:33:50 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.599
X-Spam-Level: 
X-Spam-Status: No, score=-6.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id E+5-634RI9gm for <nfsv4@ietfa.amsl.com>; Wed, 23 Jan 2013 10:33:50 -0800 (PST)
Received: from userp1040.oracle.com (userp1040.oracle.com [156.151.31.81]) by ietfa.amsl.com (Postfix) with ESMTP id E4E9821F85AC for <nfsv4@ietf.org>; Wed, 23 Jan 2013 10:33:49 -0800 (PST)
Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94]) by userp1040.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id r0NIXguh023517 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 23 Jan 2013 18:33:43 GMT
Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by ucsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r0NIXg3F020784 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 23 Jan 2013 18:33:42 GMT
Received: from abhmt118.oracle.com (abhmt118.oracle.com [141.146.116.70]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id r0NIXf4h017740; Wed, 23 Jan 2013 12:33:41 -0600
Received: from [10.132.148.74] (/10.132.148.74) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 23 Jan 2013 10:33:41 -0800
Message-ID: <51002EDA.6030106@oracle.com>
Date: Wed, 23 Jan 2013 10:41:30 -0800
From: Jarrett Lu <jarrett.lu@oracle.com>
User-Agent: Mozilla/5.0 (X11; SunOS i86pc; rv:10.0.7) Gecko/20120926 Thunderbird/10.0.7
MIME-Version: 1.0
To: "Haynes, Tom" <Tom.Haynes@netapp.com>
References: <20130122220619.GA14617@fieldses.org> <D54C745FA96F75489B58FCBD8956AE8F18E3CD2A@sacexcmbx05-prd.hq.netapp.com>
In-Reply-To: <D54C745FA96F75489B58FCBD8956AE8F18E3CD2A@sacexcmbx05-prd.hq.netapp.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Source-IP: ucsinet22.oracle.com [156.151.31.94]
Cc: "J. Bruce Fields" <bfields@fieldses.org>, "Myklebust, Trond" <Trond.Myklebust@netapp.com>, nfsv4 list <nfsv4@ietf.org>
Subject: Re: [nfsv4] make change_sec_label optional
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: jarrett.lu@oracle.com
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/nfsv4>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 23 Jan 2013 18:33:50 -0000

On 01/22/13 08:03 PM, Haynes, Tom wrote:
> On Jan 22, 2013, at 4:06 PM, J. Bruce Fields<bfields@fieldses.org>  wrote:
>
>> The initial labeled NFS implementation people have been working on for
>> Linux doesn't appear to need the change_sec_label attribute--labels are
>> expected to be static.
>>
>> So, let's make this optional.
>>
>> Assuming we do end up needing this in the future, all this means is that
>> future clients will need a little logic to handle servers without
>> change_sec_label support.  That doesn't seem like a huge deal.
>>
>> --b.
>>
>> diff --git a/nfsv42_middle_fileattributes.xml b/nfsv42_middle_fileattributes.xml
>> index 116b794..ac92119 100644
>> --- a/nfsv42_middle_fileattributes.xml
>> +++ b/nfsv42_middle_fileattributes.xml
>> @@ -192,9 +192,8 @@ typedef uint32_t  policy4;
>>        </t>
>>
>>        <t>
>> -        If a server supports sec_label, then it MUST also support
>> -        change_sec_label. Any modification to sec_label MUST modify
>> -        the value for change_sec_label.
>> +        A server that supports sec_label may still choose not to support
>> +	change_sec_label.
>>        </t>
>>      </section>
>>
>> _______________________________________________
>> nfsv4 mailing list
>> nfsv4@ietf.org
>> https://www.ietf.org/mailman/listinfo/nfsv4
>
>
> Thanks Bruce, I'd still like to hear from Jarrett before we do that.

 From reading the draft, the meaning and purpose of the change_sec_label 
attribute is to provide a way for client to know whether the label 
attribute of an object (on server) has changed, not whether the label 
may change at a future time or the operation of changing a label.

The combo of allowing setting/modifying label but having no way of 
knowing such change appears odd to me. When a client does a verify on 
change_sec_label and gets back a "not supported" error, what will that 
mean to the client, and what action should the client take? The 
change_sec_label is not needed if labels can't be changed. Current Linux 
client implementation does not verify the change_sec_label attribute 
does not seem to be a strong enough reason to change it to optional, IMO.

I do have a question on the change_sec_label attribute: Will the 
attribute ever get reset? If a client finds out a file label is changed 
and reopens the file, will it continue to say the label has changed?


- Jarrett


From nico@cryptonector.com  Wed Jan 23 10:40:26 2013
Return-Path: <nico@cryptonector.com>
X-Original-To: nfsv4@ietfa.amsl.com
Delivered-To: nfsv4@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id DD44B21F8678 for <nfsv4@ietfa.amsl.com>; Wed, 23 Jan 2013 10:40:26 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.977
X-Spam-Level: 
X-Spam-Status: No, score=-1.977 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id f7nAjfj7ZInL for <nfsv4@ietfa.amsl.com>; Wed, 23 Jan 2013 10:40:26 -0800 (PST)
Received: from homiemail-a25.g.dreamhost.com (caiajhbdccac.dreamhost.com [208.97.132.202]) by ietfa.amsl.com (Postfix) with ESMTP id EE57A21F85D9 for <nfsv4@ietf.org>; Wed, 23 Jan 2013 10:40:25 -0800 (PST)
Received: from homiemail-a25.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a25.g.dreamhost.com (Postfix) with ESMTP id 345E667809C for <nfsv4@ietf.org>; Wed, 23 Jan 2013 10:40:25 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=cryptonector.com; h= mime-version:in-reply-to:references:date:message-id:subject:from :to:cc:content-type; s=cryptonector.com; bh=2RcE/NN/8qbz0T3NqH0i mi5w6h4=; b=kfbGr+6dGCEWpaBQfHwjNKFD3hVRQDuCSyeYxBaAE4VojqdnJZwY x4CxsFU6Dr47fWlJQ+JkStztirCjWDwvoWlowGRDLquD10rIyxL9SJzURsDHA9CB RWQUIYvCptPXGplSzpIM7FEJy9A5vxS59XPsftfAd3V53Ao0xmbKj/Y=
Received: from mail-wi0-f177.google.com (mail-wi0-f177.google.com [209.85.212.177]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: nico@cryptonector.com) by homiemail-a25.g.dreamhost.com (Postfix) with ESMTPSA id 85E09678083 for <nfsv4@ietf.org>; Wed, 23 Jan 2013 10:40:23 -0800 (PST)
Received: by mail-wi0-f177.google.com with SMTP id hm2so1012054wib.16 for <nfsv4@ietf.org>; Wed, 23 Jan 2013 10:40:22 -0800 (PST)
MIME-Version: 1.0
X-Received: by 10.180.108.236 with SMTP id hn12mr29195594wib.6.1358966422019;  Wed, 23 Jan 2013 10:40:22 -0800 (PST)
Received: by 10.217.39.133 with HTTP; Wed, 23 Jan 2013 10:40:21 -0800 (PST)
In-Reply-To: <20130123171634.GB3315@fieldses.org>
References: <20130122220619.GA14617@fieldses.org> <D54C745FA96F75489B58FCBD8956AE8F18E3CD2A@sacexcmbx05-prd.hq.netapp.com> <CAK3OfOigySeGPBuODq08LMsxJ45-96Khceh2POyLpXKdsEuiYQ@mail.gmail.com> <20130123165230.GA3315@fieldses.org> <CAK3OfOg_vF7ka0CZkeOkjKELwz2bx9pxQvkJ2RynbyQ2jJYofQ@mail.gmail.com> <20130123171634.GB3315@fieldses.org>
Date: Wed, 23 Jan 2013 12:40:21 -0600
Message-ID: <CAK3OfOgjgqrPPQuLMgPmVSOq9wo7RUxJEcLnwMqoK8qo29EyFw@mail.gmail.com>
From: Nico Williams <nico@cryptonector.com>
To: "J. Bruce Fields" <bfields@fieldses.org>
Content-Type: text/plain; charset=UTF-8
Cc: "Myklebust, Trond" <Trond.Myklebust@netapp.com>, "Haynes, Tom" <Tom.Haynes@netapp.com>, nfsv4 list <nfsv4@ietf.org>
Subject: Re: [nfsv4] make change_sec_label optional
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/nfsv4>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 23 Jan 2013 18:40:27 -0000

On Wed, Jan 23, 2013 at 11:16 AM, J. Bruce Fields <bfields@fieldses.org> wrote:
>> If the operation is not supported, return an error.
>
> change_sec_label is a read-only attribute.

Oh.  Never mind then :)

From Trond.Myklebust@netapp.com  Wed Jan 23 10:48:28 2013
Return-Path: <Trond.Myklebust@netapp.com>
X-Original-To: nfsv4@ietfa.amsl.com
Delivered-To: nfsv4@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id C865D21F87D4 for <nfsv4@ietfa.amsl.com>; Wed, 23 Jan 2013 10:48:28 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level: 
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id W0NDKShigR-O for <nfsv4@ietfa.amsl.com>; Wed, 23 Jan 2013 10:48:28 -0800 (PST)
Received: from mx12.netapp.com (mx12.netapp.com [216.240.18.77]) by ietfa.amsl.com (Postfix) with ESMTP id 3E61821F87AC for <nfsv4@ietf.org>; Wed, 23 Jan 2013 10:48:28 -0800 (PST)
X-IronPort-AV: E=Sophos;i="4.84,523,1355126400"; d="scan'208";a="10877781"
Received: from smtp1.corp.netapp.com ([10.57.156.124]) by mx12-out.netapp.com with ESMTP; 23 Jan 2013 10:48:28 -0800
Received: from vmwexceht04-prd.hq.netapp.com (vmwexceht04-prd.hq.netapp.com [10.106.77.34]) by smtp1.corp.netapp.com (8.13.1/8.13.1/NTAP-1.6) with ESMTP id r0NImRtv012579; Wed, 23 Jan 2013 10:48:27 -0800 (PST)
Received: from VMWEXCEHT06-PRD.hq.netapp.com (10.106.77.104) by vmwexceht04-prd.hq.netapp.com (10.106.77.34) with Microsoft SMTP Server (TLS) id 14.2.328.9; Wed, 23 Jan 2013 10:48:27 -0800
Received: from SACEXCMBX05-PRD.hq.netapp.com ([169.254.9.231]) by vmwexceht06-prd.hq.netapp.com ([10.106.77.104]) with mapi id 14.02.0328.009; Wed, 23 Jan 2013 10:48:27 -0800
From: "Myklebust, Trond" <Trond.Myklebust@netapp.com>
To: "jarrett.lu@oracle.com" <jarrett.lu@oracle.com>, "Haynes, Tom" <Tom.Haynes@netapp.com>
Thread-Topic: [nfsv4] make change_sec_label optional
Thread-Index: AQHN+Oy4H/rpI13ZVUevE0dd9O7IDphW0YCAgAD1RwD//3pGoA==
Date: Wed, 23 Jan 2013 18:48:26 +0000
Message-ID: <4FA345DA4F4AE44899BD2B03EEEC2FA9183334FB@sacexcmbx05-prd.hq.netapp.com>
References: <20130122220619.GA14617@fieldses.org> <D54C745FA96F75489B58FCBD8956AE8F18E3CD2A@sacexcmbx05-prd.hq.netapp.com> <51002EDA.6030106@oracle.com>
In-Reply-To: <51002EDA.6030106@oracle.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [10.106.53.51]
Content-Type: text/plain; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Cc: "J. Bruce Fields" <bfields@fieldses.org>, nfsv4 list <nfsv4@ietf.org>
Subject: Re: [nfsv4] make change_sec_label optional
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/nfsv4>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 23 Jan 2013 18:48:28 -0000

> -----Original Message-----
> From: Jarrett Lu [mailto:jarrett.lu@oracle.com]
> Sent: Wednesday, January 23, 2013 1:42 PM
> To: Haynes, Tom
> Cc: J. Bruce Fields; nfsv4 list; Myklebust, Trond
> Subject: Re: [nfsv4] make change_sec_label optional
>=20
> On 01/22/13 08:03 PM, Haynes, Tom wrote:
> > On Jan 22, 2013, at 4:06 PM, J. Bruce Fields<bfields@fieldses.org>  wro=
te:
> >
> >> The initial labeled NFS implementation people have been working on
> >> for Linux doesn't appear to need the change_sec_label
> >> attribute--labels are expected to be static.
> >>
> >> So, let's make this optional.
> >>
> >> Assuming we do end up needing this in the future, all this means is
> >> that future clients will need a little logic to handle servers
> >> without change_sec_label support.  That doesn't seem like a huge deal.
> >>
> >> --b.
> >>
> >> diff --git a/nfsv42_middle_fileattributes.xml
> >> b/nfsv42_middle_fileattributes.xml
> >> index 116b794..ac92119 100644
> >> --- a/nfsv42_middle_fileattributes.xml
> >> +++ b/nfsv42_middle_fileattributes.xml
> >> @@ -192,9 +192,8 @@ typedef uint32_t  policy4;
> >>        </t>
> >>
> >>        <t>
> >> -        If a server supports sec_label, then it MUST also support
> >> -        change_sec_label. Any modification to sec_label MUST modify
> >> -        the value for change_sec_label.
> >> +        A server that supports sec_label may still choose not to supp=
ort
> >> +	change_sec_label.
> >>        </t>
> >>      </section>
> >>
> >> _______________________________________________
> >> nfsv4 mailing list
> >> nfsv4@ietf.org
> >> https://www.ietf.org/mailman/listinfo/nfsv4
> >
> >
> > Thanks Bruce, I'd still like to hear from Jarrett before we do that.
>=20
>  From reading the draft, the meaning and purpose of the change_sec_label
> attribute is to provide a way for client to know whether the label attrib=
ute of
> an object (on server) has changed, not whether the label may change at a
> future time or the operation of changing a label.
>=20
> The combo of allowing setting/modifying label but having no way of knowin=
g
> such change appears odd to me. When a client does a verify on
> change_sec_label and gets back a "not supported" error, what will that me=
an
> to the client, and what action should the client take? The change_sec_lab=
el is
> not needed if labels can't be changed. Current Linux client implementatio=
n
> does not verify the change_sec_label attribute does not seem to be a stro=
ng
> enough reason to change it to optional, IMO.

Unless the client is broken, it should never request change_sec_label. The =
server will simply not include change_sec_label in the list of supported at=
tributes.

> I do have a question on the change_sec_label attribute: Will the attribut=
e
> ever get reset? If a client finds out a file label is changed and reopens=
 the file,
> will it continue to say the label has changed?

A change attribute is a cookie that only changes when the thing it protects=
 changes.
IOW: there is no set/reset, only a 'current value is', and whenever the lab=
el changes, so does the value of the change attribute.

You can trivially implement a change attribute as a simple counter that is =
bumped every time the label changes.

Cheers
  Trond

From bfields@fieldses.org  Wed Jan 23 10:59:18 2013
Return-Path: <bfields@fieldses.org>
X-Original-To: nfsv4@ietfa.amsl.com
Delivered-To: nfsv4@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 1509D21F8678 for <nfsv4@ietfa.amsl.com>; Wed, 23 Jan 2013 10:59:18 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.289
X-Spam-Level: 
X-Spam-Status: No, score=-2.289 tagged_above=-999 required=5 tests=[AWL=0.310,  BAYES_00=-2.599]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Tse9LHyRbc6c for <nfsv4@ietfa.amsl.com>; Wed, 23 Jan 2013 10:59:17 -0800 (PST)
Received: from fieldses.org (fieldses.org [174.143.236.118]) by ietfa.amsl.com (Postfix) with ESMTP id A1C8921F84F8 for <nfsv4@ietf.org>; Wed, 23 Jan 2013 10:59:03 -0800 (PST)
Received: from bfields by fieldses.org with local (Exim 4.76) (envelope-from <bfields@fieldses.org>) id 1Ty5XJ-0001Pc-TD; Wed, 23 Jan 2013 13:59:01 -0500
Date: Wed, 23 Jan 2013 13:59:01 -0500
From: "J. Bruce Fields" <bfields@fieldses.org>
To: Jarrett Lu <jarrett.lu@oracle.com>
Message-ID: <20130123185901.GA4405@fieldses.org>
References: <20130122220619.GA14617@fieldses.org> <D54C745FA96F75489B58FCBD8956AE8F18E3CD2A@sacexcmbx05-prd.hq.netapp.com> <51002EDA.6030106@oracle.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <51002EDA.6030106@oracle.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
Cc: "Myklebust, Trond" <Trond.Myklebust@netapp.com>, "Haynes, Tom" <Tom.Haynes@netapp.com>, nfsv4 list <nfsv4@ietf.org>
Subject: Re: [nfsv4] make change_sec_label optional
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/nfsv4>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 23 Jan 2013 18:59:18 -0000

On Wed, Jan 23, 2013 at 10:41:30AM -0800, Jarrett Lu wrote:
> On 01/22/13 08:03 PM, Haynes, Tom wrote:
> >On Jan 22, 2013, at 4:06 PM, J. Bruce Fields<bfields@fieldses.org>  wrote:
> >
> >>The initial labeled NFS implementation people have been working on for
> >>Linux doesn't appear to need the change_sec_label attribute--labels are
> >>expected to be static.
> >>
> >>So, let's make this optional.
> >>
> >>Assuming we do end up needing this in the future, all this means is that
> >>future clients will need a little logic to handle servers without
> >>change_sec_label support.  That doesn't seem like a huge deal.
> >>
> >>--b.
> >>
> >>diff --git a/nfsv42_middle_fileattributes.xml b/nfsv42_middle_fileattributes.xml
> >>index 116b794..ac92119 100644
> >>--- a/nfsv42_middle_fileattributes.xml
> >>+++ b/nfsv42_middle_fileattributes.xml
> >>@@ -192,9 +192,8 @@ typedef uint32_t  policy4;
> >>       </t>
> >>
> >>       <t>
> >>-        If a server supports sec_label, then it MUST also support
> >>-        change_sec_label. Any modification to sec_label MUST modify
> >>-        the value for change_sec_label.
> >>+        A server that supports sec_label may still choose not to support
> >>+	change_sec_label.
> >>       </t>
> >>     </section>
> >>
> >>_______________________________________________
> >>nfsv4 mailing list
> >>nfsv4@ietf.org
> >>https://www.ietf.org/mailman/listinfo/nfsv4
> >
> >
> >Thanks Bruce, I'd still like to hear from Jarrett before we do that.
> 
> From reading the draft, the meaning and purpose of the
> change_sec_label attribute is to provide a way for client to know
> whether the label attribute of an object (on server) has changed,
> not whether the label may change at a future time or the operation
> of changing a label.

Right.

> The combo of allowing setting/modifying label but having no way of
> knowing such change appears odd to me.

For the use case people seem to care about now (vm images?) the label
will be set once on object creation and then never changed.

(Or if it is changed it would be such an exceptional event that it would
be acceptable to require the client to remount.)

> When a client does a verify
> on change_sec_label and gets back a "not supported" error, what will
> that mean to the client, and what action should the client take? The
> change_sec_label is not needed if labels can't be changed. Current
> Linux client implementation does not verify the change_sec_label
> attribute does not seem to be a strong enough reason to change it to
> optional, IMO.
> 
> I do have a question on the change_sec_label attribute: Will the
> attribute ever get reset? If a client finds out a file label is
> changed and reopens the file, will it continue to say the label has
> changed?

It's not a boolean, it's an integer that's incremented on every change.

(Nitpick: that's a lie, it could change in some other way other than
incrementing--the point is that you compare it to old values to
determine whether something changed.)

--b.

From jarrett.lu@oracle.com  Wed Jan 23 11:11:47 2013
Return-Path: <jarrett.lu@oracle.com>
X-Original-To: nfsv4@ietfa.amsl.com
Delivered-To: nfsv4@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E8AF121F87A9 for <nfsv4@ietfa.amsl.com>; Wed, 23 Jan 2013 11:11:47 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.599
X-Spam-Level: 
X-Spam-Status: No, score=-6.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ljqOY611CwFx for <nfsv4@ietfa.amsl.com>; Wed, 23 Jan 2013 11:11:47 -0800 (PST)
Received: from userp1040.oracle.com (userp1040.oracle.com [156.151.31.81]) by ietfa.amsl.com (Postfix) with ESMTP id 27A4521F8738 for <nfsv4@ietf.org>; Wed, 23 Jan 2013 11:11:47 -0800 (PST)
Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by userp1040.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id r0NJBdkh004750 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 23 Jan 2013 19:11:40 GMT
Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r0NJBc0E027919 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 23 Jan 2013 19:11:39 GMT
Received: from abhmt117.oracle.com (abhmt117.oracle.com [141.146.116.69]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id r0NJBcdn014809; Wed, 23 Jan 2013 13:11:38 -0600
Received: from [10.132.148.74] (/10.132.148.74) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 23 Jan 2013 11:11:38 -0800
Message-ID: <510037B5.6050909@oracle.com>
Date: Wed, 23 Jan 2013 11:19:17 -0800
From: Jarrett Lu <jarrett.lu@oracle.com>
User-Agent: Mozilla/5.0 (X11; SunOS i86pc; rv:10.0.7) Gecko/20120926 Thunderbird/10.0.7
MIME-Version: 1.0
To: "Myklebust, Trond" <Trond.Myklebust@netapp.com>
References: <20130122220619.GA14617@fieldses.org> <D54C745FA96F75489B58FCBD8956AE8F18E3CD2A@sacexcmbx05-prd.hq.netapp.com> <51002EDA.6030106@oracle.com> <4FA345DA4F4AE44899BD2B03EEEC2FA9183334FB@sacexcmbx05-prd.hq.netapp.com>
In-Reply-To: <4FA345DA4F4AE44899BD2B03EEEC2FA9183334FB@sacexcmbx05-prd.hq.netapp.com>
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
X-Source-IP: acsinet21.oracle.com [141.146.126.237]
Cc: "J. Bruce Fields" <bfields@fieldses.org>, "Haynes, Tom" <Tom.Haynes@netapp.com>, nfsv4 list <nfsv4@ietf.org>
Subject: Re: [nfsv4] make change_sec_label optional
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: jarrett.lu@oracle.com
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/nfsv4>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 23 Jan 2013 19:11:48 -0000

On 01/23/13 10:48 AM, Myklebust, Trond wrote:
>> -----Original Message-----
>> From: Jarrett Lu [mailto:jarrett.lu@oracle.com]
>> Sent: Wednesday, January 23, 2013 1:42 PM
>> To: Haynes, Tom
>> Cc: J. Bruce Fields; nfsv4 list; Myklebust, Trond
>> Subject: Re: [nfsv4] make change_sec_label optional
>>
>> On 01/22/13 08:03 PM, Haynes, Tom wrote:
>>> On Jan 22, 2013, at 4:06 PM, J. Bruce Fields<bfields@fieldses.org>   wrote:
>>>
>>>> The initial labeled NFS implementation people have been working on
>>>> for Linux doesn't appear to need the change_sec_label
>>>> attribute--labels are expected to be static.
>>>>
>>>> So, let's make this optional.
>>>>
>>>> Assuming we do end up needing this in the future, all this means is
>>>> that future clients will need a little logic to handle servers
>>>> without change_sec_label support.  That doesn't seem like a huge deal.
>>>>
>>>> --b.
>>>>
>>>> diff --git a/nfsv42_middle_fileattributes.xml
>>>> b/nfsv42_middle_fileattributes.xml
>>>> index 116b794..ac92119 100644
>>>> --- a/nfsv42_middle_fileattributes.xml
>>>> +++ b/nfsv42_middle_fileattributes.xml
>>>> @@ -192,9 +192,8 @@ typedef uint32_t  policy4;
>>>>         </t>
>>>>
>>>>         <t>
>>>> -        If a server supports sec_label, then it MUST also support
>>>> -        change_sec_label. Any modification to sec_label MUST modify
>>>> -        the value for change_sec_label.
>>>> +        A server that supports sec_label may still choose not to support
>>>> +	change_sec_label.
>>>>         </t>
>>>>       </section>
>>>>
>>>> _______________________________________________
>>>> nfsv4 mailing list
>>>> nfsv4@ietf.org
>>>> https://www.ietf.org/mailman/listinfo/nfsv4
>>>
>>> Thanks Bruce, I'd still like to hear from Jarrett before we do that.
>>    From reading the draft, the meaning and purpose of the change_sec_label
>> attribute is to provide a way for client to know whether the label attribute of
>> an object (on server) has changed, not whether the label may change at a
>> future time or the operation of changing a label.
>>
>> The combo of allowing setting/modifying label but having no way of knowing
>> such change appears odd to me. When a client does a verify on
>> change_sec_label and gets back a "not supported" error, what will that mean
>> to the client, and what action should the client take? The change_sec_label is
>> not needed if labels can't be changed. Current Linux client implementation
>> does not verify the change_sec_label attribute does not seem to be a strong
>> enough reason to change it to optional, IMO.
> Unless the client is broken, it should never request change_sec_label. The server will simply not include change_sec_label in the list of supported attributes.

OK, so clients won't ask. How will clients get notified when labels do 
change, by recall of delegation? Section 8.1 says:

    The second change is to provide methods for the client to determine
    if the security label has changed.  A client which needs to know if a
    label is going to change SHOULD register a delegation on that file.

How does a client know the label will change or does it always assume it 
needs to? I'd agree if clients can be reliably notified when label 
changes, then change_sec_label can be optional.

>
>> I do have a question on the change_sec_label attribute: Will the attribute
>> ever get reset? If a client finds out a file label is changed and reopens the file,
>> will it continue to say the label has changed?
> A change attribute is a cookie that only changes when the thing it protects changes.
> IOW: there is no set/reset, only a 'current value is', and whenever the label changes, so does the value of the change attribute.
>
> You can trivially implement a change attribute as a simple counter that is bumped every time the label changes.

Makes sense.

Thanks.

- Jarrett

>
> Cheers
>    Trond


From jarrett.lu@oracle.com  Wed Jan 23 11:37:31 2013
Return-Path: <jarrett.lu@oracle.com>
X-Original-To: nfsv4@ietfa.amsl.com
Delivered-To: nfsv4@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id BB36921F8566 for <nfsv4@ietfa.amsl.com>; Wed, 23 Jan 2013 11:37:31 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.599
X-Spam-Level: 
X-Spam-Status: No, score=-6.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id iw4Cchx33RsM for <nfsv4@ietfa.amsl.com>; Wed, 23 Jan 2013 11:37:31 -0800 (PST)
Received: from aserp1040.oracle.com (aserp1040.oracle.com [141.146.126.69]) by ietfa.amsl.com (Postfix) with ESMTP id 16C6621F84D1 for <nfsv4@ietf.org>; Wed, 23 Jan 2013 11:37:31 -0800 (PST)
Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by aserp1040.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id r0NJbJuN024145 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 23 Jan 2013 19:37:22 GMT
Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r0NJbIka023401 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 23 Jan 2013 19:37:19 GMT
Received: from abhmt103.oracle.com (abhmt103.oracle.com [141.146.116.55]) by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id r0NJbIWK001148; Wed, 23 Jan 2013 13:37:18 -0600
Received: from [10.132.148.74] (/10.132.148.74) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 23 Jan 2013 11:37:18 -0800
Message-ID: <51003DC3.3070109@oracle.com>
Date: Wed, 23 Jan 2013 11:45:07 -0800
From: Jarrett Lu <jarrett.lu@oracle.com>
User-Agent: Mozilla/5.0 (X11; SunOS i86pc; rv:10.0.7) Gecko/20120926 Thunderbird/10.0.7
MIME-Version: 1.0
To: "J. Bruce Fields" <bfields@fieldses.org>
References: <20130122220619.GA14617@fieldses.org> <D54C745FA96F75489B58FCBD8956AE8F18E3CD2A@sacexcmbx05-prd.hq.netapp.com> <51002EDA.6030106@oracle.com> <20130123185901.GA4405@fieldses.org>
In-Reply-To: <20130123185901.GA4405@fieldses.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Source-IP: ucsinet21.oracle.com [156.151.31.93]
Cc: "Myklebust, Trond" <Trond.Myklebust@netapp.com>, "Haynes, Tom" <Tom.Haynes@netapp.com>, nfsv4 list <nfsv4@ietf.org>
Subject: Re: [nfsv4] make change_sec_label optional
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: jarrett.lu@oracle.com
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/nfsv4>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 23 Jan 2013 19:37:31 -0000

On 01/23/13 10:59 AM, J. Bruce Fields wrote:
> On Wed, Jan 23, 2013 at 10:41:30AM -0800, Jarrett Lu wrote:
>> On 01/22/13 08:03 PM, Haynes, Tom wrote:
>>> On Jan 22, 2013, at 4:06 PM, J. Bruce Fields<bfields@fieldses.org>   wrote:
>>>
>>>> The initial labeled NFS implementation people have been working on for
>>>> Linux doesn't appear to need the change_sec_label attribute--labels are
>>>> expected to be static.
>>>>
>>>> So, let's make this optional.
>>>>
>>>> Assuming we do end up needing this in the future, all this means is that
>>>> future clients will need a little logic to handle servers without
>>>> change_sec_label support.  That doesn't seem like a huge deal.
>>>>
>>>> --b.
>>>>
>>>> diff --git a/nfsv42_middle_fileattributes.xml b/nfsv42_middle_fileattributes.xml
>>>> index 116b794..ac92119 100644
>>>> --- a/nfsv42_middle_fileattributes.xml
>>>> +++ b/nfsv42_middle_fileattributes.xml
>>>> @@ -192,9 +192,8 @@ typedef uint32_t  policy4;
>>>>        </t>
>>>>
>>>>        <t>
>>>> -        If a server supports sec_label, then it MUST also support
>>>> -        change_sec_label. Any modification to sec_label MUST modify
>>>> -        the value for change_sec_label.
>>>> +        A server that supports sec_label may still choose not to support
>>>> +	change_sec_label.
>>>>        </t>
>>>>      </section>
>>>>
>>>> _______________________________________________
>>>> nfsv4 mailing list
>>>> nfsv4@ietf.org
>>>> https://www.ietf.org/mailman/listinfo/nfsv4
>>>
>>> Thanks Bruce, I'd still like to hear from Jarrett before we do that.
>>  From reading the draft, the meaning and purpose of the
>> change_sec_label attribute is to provide a way for client to know
>> whether the label attribute of an object (on server) has changed,
>> not whether the label may change at a future time or the operation
>> of changing a label.
> Right.
>
>> The combo of allowing setting/modifying label but having no way of
>> knowing such change appears odd to me.
> For the use case people seem to care about now (vm images?) the label
> will be set once on object creation and then never changed.
>
> (Or if it is changed it would be such an exceptional event that it would
> be acceptable to require the client to remount.)

I agree that change_sec_label can be optional when (1) labels don't 
change, and (2) there are other means to reliably inform clients that 
label has changed, e.g. via recalling a delegation, forcing a remount, 
etc.. What's not acceptable is that clients aren't informed of a label 
change when they should be. This probably means that a server needs to 
realize it's not supporting the change_sec_label attribute and needs to 
take more drastic actions when labels do change.

>
>> When a client does a verify
>> on change_sec_label and gets back a "not supported" error, what will
>> that mean to the client, and what action should the client take? The
>> change_sec_label is not needed if labels can't be changed. Current
>> Linux client implementation does not verify the change_sec_label
>> attribute does not seem to be a strong enough reason to change it to
>> optional, IMO.
>>
>> I do have a question on the change_sec_label attribute: Will the
>> attribute ever get reset? If a client finds out a file label is
>> changed and reopens the file, will it continue to say the label has
>> changed?
> It's not a boolean, it's an integer that's incremented on every change.
>
> (Nitpick: that's a lie, it could change in some other way other than
> incrementing--the point is that you compare it to old values to
> determine whether something changed.)

Got that.

Thanks.

- Jarrett

>
> --b.


From Tom.Haynes@netapp.com  Wed Jan 23 11:38:09 2013
Return-Path: <Tom.Haynes@netapp.com>
X-Original-To: nfsv4@ietfa.amsl.com
Delivered-To: nfsv4@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id F259D21F8770 for <nfsv4@ietfa.amsl.com>; Wed, 23 Jan 2013 11:38:08 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level: 
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3Oq8C8RPKNtt for <nfsv4@ietfa.amsl.com>; Wed, 23 Jan 2013 11:38:08 -0800 (PST)
Received: from mx12.netapp.com (mx12.netapp.com [216.240.18.77]) by ietfa.amsl.com (Postfix) with ESMTP id 627BF21F86E6 for <nfsv4@ietf.org>; Wed, 23 Jan 2013 11:38:08 -0800 (PST)
X-IronPort-AV: E=Sophos;i="4.84,523,1355126400"; d="scan'208";a="10893495"
Received: from smtp1.corp.netapp.com ([10.57.156.124]) by mx12-out.netapp.com with ESMTP; 23 Jan 2013 11:38:08 -0800
Received: from vmwexceht03-prd.hq.netapp.com (exchsmtp.hq.netapp.com [10.106.76.241]) by smtp1.corp.netapp.com (8.13.1/8.13.1/NTAP-1.6) with ESMTP id r0NJc8h1011912; Wed, 23 Jan 2013 11:38:08 -0800 (PST)
Received: from SACEXCMBX05-PRD.hq.netapp.com ([169.254.9.231]) by vmwexceht03-prd.hq.netapp.com ([10.106.76.241]) with mapi id 14.02.0328.009; Wed, 23 Jan 2013 11:38:08 -0800
From: "Haynes, Tom" <Tom.Haynes@netapp.com>
To: "<jarrett.lu@oracle.com>" <jarrett.lu@oracle.com>
Thread-Topic: [nfsv4] make change_sec_label optional
Thread-Index: AQHN+OzDZuNcdNHt40Obo16UaCV8iphW0YCAgAD1RwCAAAHwAIAACJ6AgAAFQ4A=
Date: Wed, 23 Jan 2013 19:38:07 +0000
Message-ID: <D54C745FA96F75489B58FCBD8956AE8F18E4A2C6@sacexcmbx05-prd.hq.netapp.com>
References: <20130122220619.GA14617@fieldses.org> <D54C745FA96F75489B58FCBD8956AE8F18E3CD2A@sacexcmbx05-prd.hq.netapp.com> <51002EDA.6030106@oracle.com> <4FA345DA4F4AE44899BD2B03EEEC2FA9183334FB@sacexcmbx05-prd.hq.netapp.com> <510037B5.6050909@oracle.com>
In-Reply-To: <510037B5.6050909@oracle.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [10.106.53.51]
Content-Type: text/plain; charset="Windows-1252"
Content-ID: <087B94BA8626C34590A6DEFEF68347B2@tahoe.netapp.com>
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Cc: "J. Bruce Fields" <bfields@fieldses.org>, "Myklebust, Trond" <Trond.Myklebust@netapp.com>, nfsv4 list <nfsv4@ietf.org>
Subject: Re: [nfsv4] make change_sec_label optional
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/nfsv4>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 23 Jan 2013 19:38:09 -0000

On Jan 23, 2013, at 1:19 PM, Jarrett Lu <jarrett.lu@oracle.com> wrote:

> On 01/23/13 10:48 AM, Myklebust, Trond wrote:
>>> -----Original Message-----
>>> From: Jarrett Lu [mailto:jarrett.lu@oracle.com]
>>> Sent: Wednesday, January 23, 2013 1:42 PM
>>> To: Haynes, Tom
>>> Cc: J. Bruce Fields; nfsv4 list; Myklebust, Trond
>>> Subject: Re: [nfsv4] make change_sec_label optional
>>>=20
>>> On 01/22/13 08:03 PM, Haynes, Tom wrote:
>>>> On Jan 22, 2013, at 4:06 PM, J. Bruce Fields<bfields@fieldses.org>   w=
rote:
>>>>=20
>>>>> The initial labeled NFS implementation people have been working on
>>>>> for Linux doesn't appear to need the change_sec_label
>>>>> attribute--labels are expected to be static.
>>>>>=20
>>>>> So, let's make this optional.
>>>>>=20
>>>>> Assuming we do end up needing this in the future, all this means is
>>>>> that future clients will need a little logic to handle servers
>>>>> without change_sec_label support.  That doesn't seem like a huge deal=
.
>>>>>=20
>>>>> --b.
>>>>>=20
>>>>> diff --git a/nfsv42_middle_fileattributes.xml
>>>>> b/nfsv42_middle_fileattributes.xml
>>>>> index 116b794..ac92119 100644
>>>>> --- a/nfsv42_middle_fileattributes.xml
>>>>> +++ b/nfsv42_middle_fileattributes.xml
>>>>> @@ -192,9 +192,8 @@ typedef uint32_t  policy4;
>>>>>        </t>
>>>>>=20
>>>>>        <t>
>>>>> -        If a server supports sec_label, then it MUST also support
>>>>> -        change_sec_label. Any modification to sec_label MUST modify
>>>>> -        the value for change_sec_label.
>>>>> +        A server that supports sec_label may still choose not to sup=
port
>>>>> +	change_sec_label.
>>>>>        </t>
>>>>>      </section>
>>>>>=20
>>>>> _______________________________________________
>>>>> nfsv4 mailing list
>>>>> nfsv4@ietf.org
>>>>> https://www.ietf.org/mailman/listinfo/nfsv4
>>>>=20
>>>> Thanks Bruce, I'd still like to hear from Jarrett before we do that.
>>>   From reading the draft, the meaning and purpose of the change_sec_lab=
el
>>> attribute is to provide a way for client to know whether the label attr=
ibute of
>>> an object (on server) has changed, not whether the label may change at =
a
>>> future time or the operation of changing a label.
>>>=20
>>> The combo of allowing setting/modifying label but having no way of know=
ing
>>> such change appears odd to me. When a client does a verify on
>>> change_sec_label and gets back a "not supported" error, what will that =
mean
>>> to the client, and what action should the client take? The change_sec_l=
abel is
>>> not needed if labels can't be changed. Current Linux client implementat=
ion
>>> does not verify the change_sec_label attribute does not seem to be a st=
rong
>>> enough reason to change it to optional, IMO.
>> Unless the client is broken, it should never request change_sec_label. T=
he server will simply not include change_sec_label in the list of supported=
 attributes.
>=20
> OK, so clients won't ask. How will clients get notified when labels do ch=
ange, by recall of delegation? Section 8.1 says:
>=20
>   The second change is to provide methods for the client to determine
>   if the security label has changed.  A client which needs to know if a
>   label is going to change SHOULD register a delegation on that file.
>=20
> How does a client know the label will change or does it always assume it =
needs to? I'd agree if clients can be reliably notified when label changes,=
 then change_sec_label can be optional.


The client finds out pretty quickly on a given operation.

But, we had talked before about having the change_sec_label be a
timestamp. Could we not mandate that if the label is changed, the
ctime must also be modified?

Then if the client cared, it could scan the ctime to see if it needed
to get the label.




>=20
>>=20
>>> I do have a question on the change_sec_label attribute: Will the attrib=
ute
>>> ever get reset? If a client finds out a file label is changed and reope=
ns the file,
>>> will it continue to say the label has changed?
>> A change attribute is a cookie that only changes when the thing it prote=
cts changes.
>> IOW: there is no set/reset, only a 'current value is', and whenever the =
label changes, so does the value of the change attribute.
>>=20
>> You can trivially implement a change attribute as a simple counter that =
is bumped every time the label changes.
>=20
> Makes sense.
>=20
> Thanks.
>=20
> - Jarrett
>=20
>>=20
>> Cheers
>>   Trond
>=20


From jarrett.lu@oracle.com  Wed Jan 23 12:30:39 2013
Return-Path: <jarrett.lu@oracle.com>
X-Original-To: nfsv4@ietfa.amsl.com
Delivered-To: nfsv4@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id C0D9521F8740 for <nfsv4@ietfa.amsl.com>; Wed, 23 Jan 2013 12:30:39 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.599
X-Spam-Level: 
X-Spam-Status: No, score=-6.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Mqr28MkM89xF for <nfsv4@ietfa.amsl.com>; Wed, 23 Jan 2013 12:30:38 -0800 (PST)
Received: from aserp1040.oracle.com (aserp1040.oracle.com [141.146.126.69]) by ietfa.amsl.com (Postfix) with ESMTP id C496021F872E for <nfsv4@ietf.org>; Wed, 23 Jan 2013 12:30:38 -0800 (PST)
Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by aserp1040.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id r0NKUOst015115 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 23 Jan 2013 20:30:25 GMT
Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r0NKUNWe029482 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 23 Jan 2013 20:30:24 GMT
Received: from abhmt115.oracle.com (abhmt115.oracle.com [141.146.116.67]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id r0NKUNDC007076; Wed, 23 Jan 2013 14:30:23 -0600
Received: from [10.132.148.74] (/10.132.148.74) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 23 Jan 2013 12:30:23 -0800
Message-ID: <51004A28.7010303@oracle.com>
Date: Wed, 23 Jan 2013 12:38:00 -0800
From: Jarrett Lu <jarrett.lu@oracle.com>
User-Agent: Mozilla/5.0 (X11; SunOS i86pc; rv:10.0.7) Gecko/20120926 Thunderbird/10.0.7
MIME-Version: 1.0
To: "Haynes, Tom" <Tom.Haynes@netapp.com>
References: <20130122220619.GA14617@fieldses.org> <D54C745FA96F75489B58FCBD8956AE8F18E3CD2A@sacexcmbx05-prd.hq.netapp.com> <51002EDA.6030106@oracle.com> <4FA345DA4F4AE44899BD2B03EEEC2FA9183334FB@sacexcmbx05-prd.hq.netapp.com> <510037B5.6050909@oracle.com> <D54C745FA96F75489B58FCBD8956AE8F18E4A2C6@sacexcmbx05-prd.hq.netapp.com>
In-Reply-To: <D54C745FA96F75489B58FCBD8956AE8F18E4A2C6@sacexcmbx05-prd.hq.netapp.com>
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
X-Source-IP: ucsinet21.oracle.com [156.151.31.93]
Cc: "J. Bruce Fields" <bfields@fieldses.org>, "Myklebust, Trond" <Trond.Myklebust@netapp.com>, nfsv4 list <nfsv4@ietf.org>
Subject: Re: [nfsv4] make change_sec_label optional
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: jarrett.lu@oracle.com
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/nfsv4>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 23 Jan 2013 20:30:39 -0000

On 01/23/13 11:38 AM, Haynes, Tom wrote:
> On Jan 23, 2013, at 1:19 PM, Jarrett Lu<jarrett.lu@oracle.com>  wrote:
>
>> On 01/23/13 10:48 AM, Myklebust, Trond wrote:
>>>> -----Original Message-----
>>>> From: Jarrett Lu [mailto:jarrett.lu@oracle.com]
>>>> Sent: Wednesday, January 23, 2013 1:42 PM
>>>> To: Haynes, Tom
>>>> Cc: J. Bruce Fields; nfsv4 list; Myklebust, Trond
>>>> Subject: Re: [nfsv4] make change_sec_label optional
>>>>
>>>> On 01/22/13 08:03 PM, Haynes, Tom wrote:
>>>>> On Jan 22, 2013, at 4:06 PM, J. Bruce Fields<bfields@fieldses.org>    wrote:
>>>>>
>>>>>> The initial labeled NFS implementation people have been working on
>>>>>> for Linux doesn't appear to need the change_sec_label
>>>>>> attribute--labels are expected to be static.
>>>>>>
>>>>>> So, let's make this optional.
>>>>>>
>>>>>> Assuming we do end up needing this in the future, all this means is
>>>>>> that future clients will need a little logic to handle servers
>>>>>> without change_sec_label support.  That doesn't seem like a huge deal.
>>>>>>
>>>>>> --b.
>>>>>>
>>>>>> diff --git a/nfsv42_middle_fileattributes.xml
>>>>>> b/nfsv42_middle_fileattributes.xml
>>>>>> index 116b794..ac92119 100644
>>>>>> --- a/nfsv42_middle_fileattributes.xml
>>>>>> +++ b/nfsv42_middle_fileattributes.xml
>>>>>> @@ -192,9 +192,8 @@ typedef uint32_t  policy4;
>>>>>>         </t>
>>>>>>
>>>>>>         <t>
>>>>>> -        If a server supports sec_label, then it MUST also support
>>>>>> -        change_sec_label. Any modification to sec_label MUST modify
>>>>>> -        the value for change_sec_label.
>>>>>> +        A server that supports sec_label may still choose not to support
>>>>>> +	change_sec_label.
>>>>>>         </t>
>>>>>>       </section>
>>>>>>
>>>>>> _______________________________________________
>>>>>> nfsv4 mailing list
>>>>>> nfsv4@ietf.org
>>>>>> https://www.ietf.org/mailman/listinfo/nfsv4
>>>>> Thanks Bruce, I'd still like to hear from Jarrett before we do that.
>>>>     From reading the draft, the meaning and purpose of the change_sec_label
>>>> attribute is to provide a way for client to know whether the label attribute of
>>>> an object (on server) has changed, not whether the label may change at a
>>>> future time or the operation of changing a label.
>>>>
>>>> The combo of allowing setting/modifying label but having no way of knowing
>>>> such change appears odd to me. When a client does a verify on
>>>> change_sec_label and gets back a "not supported" error, what will that mean
>>>> to the client, and what action should the client take? The change_sec_label is
>>>> not needed if labels can't be changed. Current Linux client implementation
>>>> does not verify the change_sec_label attribute does not seem to be a strong
>>>> enough reason to change it to optional, IMO.
>>> Unless the client is broken, it should never request change_sec_label. The server will simply not include change_sec_label in the list of supported attributes.
>> OK, so clients won't ask. How will clients get notified when labels do change, by recall of delegation? Section 8.1 says:
>>
>>    The second change is to provide methods for the client to determine
>>    if the security label has changed.  A client which needs to know if a
>>    label is going to change SHOULD register a delegation on that file.
>>
>> How does a client know the label will change or does it always assume it needs to? I'd agree if clients can be reliably notified when label changes, then change_sec_label can be optional.
>
> The client finds out pretty quickly on a given operation.

I just like to understand the error case scenario a little better. A 
client which has registered a delegation will see the delegation 
recalled as a result of label change. A client which didn't register a 
delegation will be forced to do a remount as a result of a label change 
that it didn't expect?

>
> But, we had talked before about having the change_sec_label be a
> timestamp. Could we not mandate that if the label is changed, the
> ctime must also be modified?
>
> Then if the client cared, it could scan the ctime to see if it needed
> to get the label.

I'm OK with that.

When you make change_sec_label to be optional, I prefer to see some text 
to the effect of "existence of other means to notify clients of label 
change", as the "label change notification" requirement hasn't gone 
away. The other means are less graceful when needed.

BTW, while you are at it, sec_label_changed is a better name than 
change_sec_label which implies an operation.

Thanks.

- Jarrett

>
>
>
>
>>>> I do have a question on the change_sec_label attribute: Will the attribute
>>>> ever get reset? If a client finds out a file label is changed and reopens the file,
>>>> will it continue to say the label has changed?
>>> A change attribute is a cookie that only changes when the thing it protects changes.
>>> IOW: there is no set/reset, only a 'current value is', and whenever the label changes, so does the value of the change attribute.
>>>
>>> You can trivially implement a change attribute as a simple counter that is bumped every time the label changes.
>> Makes sense.
>>
>> Thanks.
>>
>> - Jarrett
>>
>>> Cheers
>>>    Trond


From david.noveck@emc.com  Wed Jan 23 14:08:49 2013
Return-Path: <david.noveck@emc.com>
X-Original-To: nfsv4@ietfa.amsl.com
Delivered-To: nfsv4@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5B67D21F8598 for <nfsv4@ietfa.amsl.com>; Wed, 23 Jan 2013 14:08:49 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level: 
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bhu9xjyjZPkC for <nfsv4@ietfa.amsl.com>; Wed, 23 Jan 2013 14:08:48 -0800 (PST)
Received: from mexforward.lss.emc.com (hop-nat-141.emc.com [168.159.213.141]) by ietfa.amsl.com (Postfix) with ESMTP id 1D2E521F858C for <nfsv4@ietf.org>; Wed, 23 Jan 2013 14:08:47 -0800 (PST)
Received: from hop04-l1d11-si01.isus.emc.com (HOP04-L1D11-SI01.isus.emc.com [10.254.111.54]) by mexforward.lss.emc.com (Switch-3.4.3/Switch-3.4.3) with ESMTP id r0NM8Ut9026530 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 23 Jan 2013 17:08:39 -0500
Received: from mailhub.lss.emc.com (mailhubhoprd02.lss.emc.com [10.254.221.253]) by hop04-l1d11-si01.isus.emc.com (RSA Interceptor); Wed, 23 Jan 2013 17:08:14 -0500
Received: from mxhub24.corp.emc.com (mxhub24.corp.emc.com [128.222.70.136]) by mailhub.lss.emc.com (Switch-3.4.3/Switch-3.4.3) with ESMTP id r0NM8ETN029598; Wed, 23 Jan 2013 17:08:14 -0500
Received: from mx31a.corp.emc.com ([169.254.1.226]) by mxhub24.corp.emc.com ([128.222.70.136]) with mapi; Wed, 23 Jan 2013 17:08:14 -0500
From: "Noveck, David" <david.noveck@emc.com>
To: "jarrett.lu@oracle.com" <jarrett.lu@oracle.com>, "Haynes, Tom" <Tom.Haynes@netapp.com>
Date: Wed, 23 Jan 2013 17:08:13 -0500
Thread-Topic: [nfsv4] make change_sec_label optional
Thread-Index: Ac35qKseZ6SFY+HSTaOAiwsLMK+I8QAC100w
Message-ID: <5DEA8DB993B81040A21CF3CB332489F60425A5AFAA@MX31A.corp.emc.com>
References: <20130122220619.GA14617@fieldses.org> <D54C745FA96F75489B58FCBD8956AE8F18E3CD2A@sacexcmbx05-prd.hq.netapp.com> <51002EDA.6030106@oracle.com> <4FA345DA4F4AE44899BD2B03EEEC2FA9183334FB@sacexcmbx05-prd.hq.netapp.com> <510037B5.6050909@oracle.com> <D54C745FA96F75489B58FCBD8956AE8F18E4A2C6@sacexcmbx05-prd.hq.netapp.com> <51004A28.7010303@oracle.com>
In-Reply-To: <51004A28.7010303@oracle.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-EMM-MHVC: 1
Cc: "J. Bruce Fields" <bfields@fieldses.org>, "Myklebust, Trond" <Trond.Myklebust@netapp.com>, nfsv4 list <nfsv4@ietf.org>
Subject: Re: [nfsv4] make change_sec_label optional
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/nfsv4>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 23 Jan 2013 22:08:49 -0000

> I just like to understand the error case scenario a little better.=20
> A client which has registered a delegation will see the delegation recall=
ed=20
> as a result of label change. A client which didn't register a delegation =
will=20
> be forced to do a remount as a result of a label change that it didn't ex=
pect?

I don't understand how "forced to do a remount" happens.  Can people sugges=
t=20
spec text that will make clear what the server has to do to force this to h=
appen
and to determine when it has happened?  Please keep in mind that "mount" is=
 not=20
an operation in the NFSv4 protocol.

> BTW, while you are at it, sec_label_changed is a better name than change_=
sec_label=20
> which implies an operation.

Agree that this is better but sec_label_changed suggests a boolean attribut=
e.

How about:

   sec_label_change?

   sec_label_changeval?

   sec_label_change_thingy :-)


-----Original Message-----
From: nfsv4-bounces@ietf.org [mailto:nfsv4-bounces@ietf.org] On Behalf Of J=
arrett Lu
Sent: Wednesday, January 23, 2013 3:38 PM
To: Haynes, Tom
Cc: J. Bruce Fields; Myklebust, Trond; nfsv4 list
Subject: Re: [nfsv4] make change_sec_label optional

On 01/23/13 11:38 AM, Haynes, Tom wrote:
> On Jan 23, 2013, at 1:19 PM, Jarrett Lu<jarrett.lu@oracle.com>  wrote:
>
>> On 01/23/13 10:48 AM, Myklebust, Trond wrote:
>>>> -----Original Message-----
>>>> From: Jarrett Lu [mailto:jarrett.lu@oracle.com]
>>>> Sent: Wednesday, January 23, 2013 1:42 PM
>>>> To: Haynes, Tom
>>>> Cc: J. Bruce Fields; nfsv4 list; Myklebust, Trond
>>>> Subject: Re: [nfsv4] make change_sec_label optional
>>>>
>>>> On 01/22/13 08:03 PM, Haynes, Tom wrote:
>>>>> On Jan 22, 2013, at 4:06 PM, J. Bruce Fields<bfields@fieldses.org>   =
 wrote:
>>>>>
>>>>>> The initial labeled NFS implementation people have been working=20
>>>>>> on for Linux doesn't appear to need the change_sec_label=20
>>>>>> attribute--labels are expected to be static.
>>>>>>
>>>>>> So, let's make this optional.
>>>>>>
>>>>>> Assuming we do end up needing this in the future, all this means=20
>>>>>> is that future clients will need a little logic to handle servers=20
>>>>>> without change_sec_label support.  That doesn't seem like a huge dea=
l.
>>>>>>
>>>>>> --b.
>>>>>>
>>>>>> diff --git a/nfsv42_middle_fileattributes.xml
>>>>>> b/nfsv42_middle_fileattributes.xml
>>>>>> index 116b794..ac92119 100644
>>>>>> --- a/nfsv42_middle_fileattributes.xml
>>>>>> +++ b/nfsv42_middle_fileattributes.xml
>>>>>> @@ -192,9 +192,8 @@ typedef uint32_t  policy4;
>>>>>>         </t>
>>>>>>
>>>>>>         <t>
>>>>>> -        If a server supports sec_label, then it MUST also support
>>>>>> -        change_sec_label. Any modification to sec_label MUST modify
>>>>>> -        the value for change_sec_label.
>>>>>> +        A server that supports sec_label may still choose not to su=
pport
>>>>>> +	change_sec_label.
>>>>>>         </t>
>>>>>>       </section>
>>>>>>
>>>>>> _______________________________________________
>>>>>> nfsv4 mailing list
>>>>>> nfsv4@ietf.org
>>>>>> https://www.ietf.org/mailman/listinfo/nfsv4
>>>>> Thanks Bruce, I'd still like to hear from Jarrett before we do that.
>>>>     From reading the draft, the meaning and purpose of the=20
>>>> change_sec_label attribute is to provide a way for client to know=20
>>>> whether the label attribute of an object (on server) has changed,=20
>>>> not whether the label may change at a future time or the operation of =
changing a label.
>>>>
>>>> The combo of allowing setting/modifying label but having no way of=20
>>>> knowing such change appears odd to me. When a client does a verify=20
>>>> on change_sec_label and gets back a "not supported" error, what=20
>>>> will that mean to the client, and what action should the client=20
>>>> take? The change_sec_label is not needed if labels can't be=20
>>>> changed. Current Linux client implementation does not verify the=20
>>>> change_sec_label attribute does not seem to be a strong enough reason =
to change it to optional, IMO.
>>> Unless the client is broken, it should never request change_sec_label. =
The server will simply not include change_sec_label in the list of supporte=
d attributes.
>> OK, so clients won't ask. How will clients get notified when labels do c=
hange, by recall of delegation? Section 8.1 says:
>>
>>    The second change is to provide methods for the client to determine
>>    if the security label has changed.  A client which needs to know if a
>>    label is going to change SHOULD register a delegation on that file.
>>
>> How does a client know the label will change or does it always assume it=
 needs to? I'd agree if clients can be reliably notified when label changes=
, then change_sec_label can be optional.
>
> The client finds out pretty quickly on a given operation.

I just like to understand the error case scenario a little better. A client=
 which has registered a delegation will see the delegation recalled as a re=
sult of label change. A client which didn't register a delegation will be f=
orced to do a remount as a result of a label change that it didn't expect?

>
> But, we had talked before about having the change_sec_label be a=20
> timestamp. Could we not mandate that if the label is changed, the=20
> ctime must also be modified?
>
> Then if the client cared, it could scan the ctime to see if it needed=20
> to get the label.

I'm OK with that.

When you make change_sec_label to be optional, I prefer to see some text to=
 the effect of "existence of other means to notify clients of label change"=
, as the "label change notification" requirement hasn't gone away. The othe=
r means are less graceful when needed.

BTW, while you are at it, sec_label_changed is a better name than change_se=
c_label which implies an operation.

Thanks.

- Jarrett

>
>
>
>
>>>> I do have a question on the change_sec_label attribute: Will the=20
>>>> attribute ever get reset? If a client finds out a file label is=20
>>>> changed and reopens the file, will it continue to say the label has ch=
anged?
>>> A change attribute is a cookie that only changes when the thing it prot=
ects changes.
>>> IOW: there is no set/reset, only a 'current value is', and whenever the=
 label changes, so does the value of the change attribute.
>>>
>>> You can trivially implement a change attribute as a simple counter that=
 is bumped every time the label changes.
>> Makes sense.
>>
>> Thanks.
>>
>> - Jarrett
>>
>>> Cheers
>>>    Trond

_______________________________________________
nfsv4 mailing list
nfsv4@ietf.org
https://www.ietf.org/mailman/listinfo/nfsv4


From jarrett.lu@oracle.com  Wed Jan 23 14:38:39 2013
Return-Path: <jarrett.lu@oracle.com>
X-Original-To: nfsv4@ietfa.amsl.com
Delivered-To: nfsv4@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id F3B8D21F85AC for <nfsv4@ietfa.amsl.com>; Wed, 23 Jan 2013 14:38:38 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.599
X-Spam-Level: 
X-Spam-Status: No, score=-6.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GYmDN5WyGpj2 for <nfsv4@ietfa.amsl.com>; Wed, 23 Jan 2013 14:38:38 -0800 (PST)
Received: from aserp1040.oracle.com (aserp1040.oracle.com [141.146.126.69]) by ietfa.amsl.com (Postfix) with ESMTP id 7A34221F8550 for <nfsv4@ietf.org>; Wed, 23 Jan 2013 14:38:38 -0800 (PST)
Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by aserp1040.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id r0NMcUJg011195 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 23 Jan 2013 22:38:31 GMT
Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r0NMcUhx029316 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 23 Jan 2013 22:38:30 GMT
Received: from abhmt101.oracle.com (abhmt101.oracle.com [141.146.116.53]) by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id r0NMcTrs025545; Wed, 23 Jan 2013 16:38:29 -0600
Received: from [10.132.148.74] (/10.132.148.74) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 23 Jan 2013 14:38:29 -0800
Message-ID: <51006830.4030400@oracle.com>
Date: Wed, 23 Jan 2013 14:46:08 -0800
From: Jarrett Lu <jarrett.lu@oracle.com>
User-Agent: Mozilla/5.0 (X11; SunOS i86pc; rv:10.0.7) Gecko/20120926 Thunderbird/10.0.7
MIME-Version: 1.0
To: "Noveck, David" <david.noveck@emc.com>
References: <20130122220619.GA14617@fieldses.org> <D54C745FA96F75489B58FCBD8956AE8F18E3CD2A@sacexcmbx05-prd.hq.netapp.com> <51002EDA.6030106@oracle.com> <4FA345DA4F4AE44899BD2B03EEEC2FA9183334FB@sacexcmbx05-prd.hq.netapp.com> <510037B5.6050909@oracle.com> <D54C745FA96F75489B58FCBD8956AE8F18E4A2C6@sacexcmbx05-prd.hq.netapp.com> <51004A28.7010303@oracle.com> <5DEA8DB993B81040A21CF3CB332489F60425A5AFAA@MX31A.corp.emc.com>
In-Reply-To: <5DEA8DB993B81040A21CF3CB332489F60425A5AFAA@MX31A.corp.emc.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Source-IP: acsinet21.oracle.com [141.146.126.237]
Cc: "J. Bruce Fields" <bfields@fieldses.org>, "Myklebust, Trond" <Trond.Myklebust@netapp.com>, "Haynes, Tom" <Tom.Haynes@netapp.com>, nfsv4 list <nfsv4@ietf.org>
Subject: Re: [nfsv4] make change_sec_label optional
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: jarrett.lu@oracle.com
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/nfsv4>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 23 Jan 2013 22:38:39 -0000

On 01/23/13 02:08 PM, Noveck, David wrote:
>> I just like to understand the error case scenario a little better.
>> A client which has registered a delegation will see the delegation recalled
>> as a result of label change. A client which didn't register a delegation will
>> be forced to do a remount as a result of a label change that it didn't expect?
> I don't understand how "forced to do a remount" happens.  Can people suggest
> spec text that will make clear what the server has to do to force this to happen
> and to determine when it has happened?  Please keep in mind that "mount" is not
> an operation in the NFSv4 protocol.

It may not need to be remount. If client's file handle can be made stale 
as a result of label change, that's probably sufficient. In this case 
the client needs to reopen the file object. What's important is that 
clients don't miss out on a label change event. On Solaris, I believe 
the client gets an EACCES error if file label is changed mid-stream. 
That will stop information flow right away but may not be the right 
error semantics as applications may not expect or be able to handle that 
error in the middle of reading a file.

>
>> BTW, while you are at it, sec_label_changed is a better name than change_sec_label
>> which implies an operation.
> Agree that this is better but sec_label_changed suggests a boolean attribute.
>
> How about:
>
>     sec_label_change?
>
>     sec_label_changeval?
>
>     sec_label_change_thingy :-)

Or sec_label_state?

Thanks.


- Jarrett

>
>


From bfields@fieldses.org  Wed Jan 23 14:46:27 2013
Return-Path: <bfields@fieldses.org>
X-Original-To: nfsv4@ietfa.amsl.com
Delivered-To: nfsv4@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 9771721F88FC for <nfsv4@ietfa.amsl.com>; Wed, 23 Jan 2013 14:46:27 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.367
X-Spam-Level: 
X-Spam-Status: No, score=-2.367 tagged_above=-999 required=5 tests=[AWL=0.232,  BAYES_00=-2.599]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1VWfT5n2cHN3 for <nfsv4@ietfa.amsl.com>; Wed, 23 Jan 2013 14:46:26 -0800 (PST)
Received: from fieldses.org (fieldses.org [174.143.236.118]) by ietfa.amsl.com (Postfix) with ESMTP id D6E1321F88EE for <nfsv4@ietf.org>; Wed, 23 Jan 2013 14:46:26 -0800 (PST)
Received: from bfields by fieldses.org with local (Exim 4.76) (envelope-from <bfields@fieldses.org>) id 1Ty95L-0001o2-1t; Wed, 23 Jan 2013 17:46:23 -0500
Date: Wed, 23 Jan 2013 17:46:23 -0500
From: "J. Bruce Fields" <bfields@fieldses.org>
To: Jarrett Lu <jarrett.lu@oracle.com>
Message-ID: <20130123224622.GA6565@fieldses.org>
References: <20130122220619.GA14617@fieldses.org> <D54C745FA96F75489B58FCBD8956AE8F18E3CD2A@sacexcmbx05-prd.hq.netapp.com> <51002EDA.6030106@oracle.com> <4FA345DA4F4AE44899BD2B03EEEC2FA9183334FB@sacexcmbx05-prd.hq.netapp.com> <510037B5.6050909@oracle.com> <D54C745FA96F75489B58FCBD8956AE8F18E4A2C6@sacexcmbx05-prd.hq.netapp.com> <51004A28.7010303@oracle.com> <5DEA8DB993B81040A21CF3CB332489F60425A5AFAA@MX31A.corp.emc.com> <51006830.4030400@oracle.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <51006830.4030400@oracle.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
Cc: "Haynes, Tom" <Tom.Haynes@netapp.com>, "Myklebust, Trond" <Trond.Myklebust@netapp.com>, nfsv4 list <nfsv4@ietf.org>
Subject: Re: [nfsv4] make change_sec_label optional
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/nfsv4>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 23 Jan 2013 22:46:27 -0000

On Wed, Jan 23, 2013 at 02:46:08PM -0800, Jarrett Lu wrote:
> On 01/23/13 02:08 PM, Noveck, David wrote:
> >>I just like to understand the error case scenario a little better.
> >>A client which has registered a delegation will see the delegation recalled
> >>as a result of label change. A client which didn't register a delegation will
> >>be forced to do a remount as a result of a label change that it didn't expect?
> >I don't understand how "forced to do a remount" happens.  Can people suggest
> >spec text that will make clear what the server has to do to force this to happen
> >and to determine when it has happened?  Please keep in mind that "mount" is not
> >an operation in the NFSv4 protocol.
> 
> It may not need to be remount. If client's file handle can be made
> stale as a result of label change, that's probably sufficient. In
> this case the client needs to reopen the file object. What's
> important is that clients don't miss out on a label change event. On
> Solaris, I believe the client gets an EACCES error if file label is
> changed mid-stream. That will stop information flow right away but
> may not be the right error semantics as applications may not expect
> or be able to handle that error in the middle of reading a file.

Will there be a Solaris client implementation at Connectathon?

For now the proposed Linux client implementation just assumes labels
don't change.  So that doesn't give a server implementation of
sec_label_change anyone to test against.

--b.

> 
> >
> >>BTW, while you are at it, sec_label_changed is a better name than change_sec_label
> >>which implies an operation.
> >Agree that this is better but sec_label_changed suggests a boolean attribute.
> >
> >How about:
> >
> >    sec_label_change?
> >
> >    sec_label_changeval?
> >
> >    sec_label_change_thingy :-)
> 
> Or sec_label_state?
> 
> Thanks.
> 
> 
> - Jarrett
> 
> >
> >
> 

From jarrett.lu@oracle.com  Wed Jan 23 14:53:51 2013
Return-Path: <jarrett.lu@oracle.com>
X-Original-To: nfsv4@ietfa.amsl.com
Delivered-To: nfsv4@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id CCE2721F8786 for <nfsv4@ietfa.amsl.com>; Wed, 23 Jan 2013 14:53:51 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.599
X-Spam-Level: 
X-Spam-Status: No, score=-6.599 tagged_above=-999 required=5 tests=[AWL=0.000,  BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8Fdn+ZlTLbhq for <nfsv4@ietfa.amsl.com>; Wed, 23 Jan 2013 14:53:51 -0800 (PST)
Received: from userp1040.oracle.com (userp1040.oracle.com [156.151.31.81]) by ietfa.amsl.com (Postfix) with ESMTP id 5548321F874F for <nfsv4@ietf.org>; Wed, 23 Jan 2013 14:53:51 -0800 (PST)
Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94]) by userp1040.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id r0NMrhTm014101 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 23 Jan 2013 22:53:43 GMT
Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by ucsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r0NMrggm008343 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 23 Jan 2013 22:53:42 GMT
Received: from abhmt106.oracle.com (abhmt106.oracle.com [141.146.116.58]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id r0NMrfNo007728; Wed, 23 Jan 2013 16:53:41 -0600
Received: from [10.132.148.74] (/10.132.148.74) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 23 Jan 2013 14:53:41 -0800
Message-ID: <51006BCA.8050009@oracle.com>
Date: Wed, 23 Jan 2013 15:01:30 -0800
From: Jarrett Lu <jarrett.lu@oracle.com>
User-Agent: Mozilla/5.0 (X11; SunOS i86pc; rv:10.0.7) Gecko/20120926 Thunderbird/10.0.7
MIME-Version: 1.0
To: "J. Bruce Fields" <bfields@fieldses.org>
References: <20130122220619.GA14617@fieldses.org> <D54C745FA96F75489B58FCBD8956AE8F18E3CD2A@sacexcmbx05-prd.hq.netapp.com> <51002EDA.6030106@oracle.com> <4FA345DA4F4AE44899BD2B03EEEC2FA9183334FB@sacexcmbx05-prd.hq.netapp.com> <510037B5.6050909@oracle.com> <D54C745FA96F75489B58FCBD8956AE8F18E4A2C6@sacexcmbx05-prd.hq.netapp.com> <51004A28.7010303@oracle.com> <5DEA8DB993B81040A21CF3CB332489F60425A5AFAA@MX31A.corp.emc.com> <51006830.4030400@oracle.com> <20130123224622.GA6565@fieldses.org>
In-Reply-To: <20130123224622.GA6565@fieldses.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Source-IP: ucsinet22.oracle.com [156.151.31.94]
Cc: "Haynes, Tom" <Tom.Haynes@netapp.com>, "Myklebust, Trond" <Trond.Myklebust@netapp.com>, nfsv4 list <nfsv4@ietf.org>
Subject: Re: [nfsv4] make change_sec_label optional
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: jarrett.lu@oracle.com
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/nfsv4>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 23 Jan 2013 22:53:51 -0000

On 01/23/13 02:46 PM, J. Bruce Fields wrote:
> On Wed, Jan 23, 2013 at 02:46:08PM -0800, Jarrett Lu wrote:
>> On 01/23/13 02:08 PM, Noveck, David wrote:
>>>> I just like to understand the error case scenario a little better.
>>>> A client which has registered a delegation will see the delegation recalled
>>>> as a result of label change. A client which didn't register a delegation will
>>>> be forced to do a remount as a result of a label change that it didn't expect?
>>> I don't understand how "forced to do a remount" happens.  Can people suggest
>>> spec text that will make clear what the server has to do to force this to happen
>>> and to determine when it has happened?  Please keep in mind that "mount" is not
>>> an operation in the NFSv4 protocol.
>> It may not need to be remount. If client's file handle can be made
>> stale as a result of label change, that's probably sufficient. In
>> this case the client needs to reopen the file object. What's
>> important is that clients don't miss out on a label change event. On
>> Solaris, I believe the client gets an EACCES error if file label is
>> changed mid-stream. That will stop information flow right away but
>> may not be the right error semantics as applications may not expect
>> or be able to handle that error in the middle of reading a file.
> Will there be a Solaris client implementation at Connectathon?
>
> For now the proposed Linux client implementation just assumes labels
> don't change.  So that doesn't give a server implementation of
> sec_label_change anyone to test against.

Solaris implemented labeled NFS based on NFS4.0 and is not compatible 
with current labeled NFS spec. I hope to have something for the June 
Connectathon. I know my manager isn't reading this thread. ;-)

- Jarrett

>
> --b.
>
>


From Tom.Haynes@netapp.com  Wed Jan 23 17:07:20 2013
Return-Path: <Tom.Haynes@netapp.com>
X-Original-To: nfsv4@ietfa.amsl.com
Delivered-To: nfsv4@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2C71B21F85C6 for <nfsv4@ietfa.amsl.com>; Wed, 23 Jan 2013 17:07:20 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level: 
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8ixshJ5IwXxK for <nfsv4@ietfa.amsl.com>; Wed, 23 Jan 2013 17:07:19 -0800 (PST)
Received: from mx1.netapp.com (mx1.netapp.com [216.240.18.38]) by ietfa.amsl.com (Postfix) with ESMTP id 5E03821F85B1 for <nfsv4@ietf.org>; Wed, 23 Jan 2013 17:07:18 -0800 (PST)
X-IronPort-AV: E=Sophos;i="4.84,525,1355126400"; d="scan'208";a="237191510"
Received: from smtp2.corp.netapp.com ([10.57.159.114]) by mx1-out.netapp.com with ESMTP; 23 Jan 2013 17:07:17 -0800
Received: from vmwexceht02-prd.hq.netapp.com (vmwexceht02-prd.hq.netapp.com [10.106.76.240]) by smtp2.corp.netapp.com (8.13.1/8.13.1/NTAP-1.6) with ESMTP id r0O17GW2014941; Wed, 23 Jan 2013 17:07:16 -0800 (PST)
Received: from SACEXCMBX05-PRD.hq.netapp.com ([169.254.9.231]) by vmwexceht02-prd.hq.netapp.com ([10.106.76.240]) with mapi id 14.02.0328.009; Wed, 23 Jan 2013 17:07:15 -0800
From: "Haynes, Tom" <Tom.Haynes@netapp.com>
To: "<jarrett.lu@oracle.com>" <jarrett.lu@oracle.com>
Thread-Topic: [nfsv4] make change_sec_label optional
Thread-Index: AQHN+OzDZuNcdNHt40Obo16UaCV8iphW0YCAgAD1RwCAAAHwAIAACJ6AgAAFQ4CAABC7AIAAGTWAgAAKmACAACdugA==
Date: Thu, 24 Jan 2013 01:07:15 +0000
Message-ID: <D54C745FA96F75489B58FCBD8956AE8F18E4C840@sacexcmbx05-prd.hq.netapp.com>
References: <20130122220619.GA14617@fieldses.org> <D54C745FA96F75489B58FCBD8956AE8F18E3CD2A@sacexcmbx05-prd.hq.netapp.com> <51002EDA.6030106@oracle.com> <4FA345DA4F4AE44899BD2B03EEEC2FA9183334FB@sacexcmbx05-prd.hq.netapp.com> <510037B5.6050909@oracle.com> <D54C745FA96F75489B58FCBD8956AE8F18E4A2C6@sacexcmbx05-prd.hq.netapp.com> <51004A28.7010303@oracle.com> <5DEA8DB993B81040A21CF3CB332489F60425A5AFAA@MX31A.corp.emc.com> <51006830.4030400@oracle.com>
In-Reply-To: <51006830.4030400@oracle.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [10.106.53.51]
Content-Type: text/plain; charset="iso-8859-1"
Content-ID: <E576796A8D93A444A1E654C5804D6CDD@tahoe.netapp.com>
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Cc: "J. Bruce Fields" <bfields@fieldses.org>, "Myklebust, Trond" <Trond.Myklebust@netapp.com>, nfsv4 list <nfsv4@ietf.org>
Subject: Re: [nfsv4] make change_sec_label optional
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/nfsv4>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 24 Jan 2013 01:07:20 -0000

On Jan 23, 2013, at 4:46 PM, Jarrett Lu <jarrett.lu@oracle.com> wrote:

> On 01/23/13 02:08 PM, Noveck, David wrote:
>>> I just like to understand the error case scenario a little better.
>>> A client which has registered a delegation will see the delegation reca=
lled
>>> as a result of label change. A client which didn't register a delegatio=
n will
>>> be forced to do a remount as a result of a label change that it didn't =
expect?
>> I don't understand how "forced to do a remount" happens.  Can people sug=
gest
>> spec text that will make clear what the server has to do to force this t=
o happen
>> and to determine when it has happened?  Please keep in mind that "mount"=
 is not
>> an operation in the NFSv4 protocol.
>=20
> It may not need to be remount. If client's file handle can be made stale =
as a result of label change, that's probably sufficient. In this case the c=
lient needs to reopen the file object. What's important is that clients don=
't miss out on a label change event. On Solaris, I believe the client gets =
an EACCES error if file label is changed mid-stream. That will stop informa=
tion flow right away but may not be the right error semantics as applicatio=
ns may not expect or be able to handle that error in the middle of reading =
a file.
>=20

Applications have to be able to deal with that already - an admin may chang=
e export permissions at any point.

There are two concerns here:


1) Admin changes the policy and we need to be able to stop all now unauthor=
ized access to the object.

This will work without change_sec_label.

2) Admin changes the policy and wants all client cached data flushed.

The delegation allows for this.

So the only uses I can see for change_sec_label is when the admin makes a c=
hange that is
more permissive or when they make one that is more permissive but still all=
owed by the subject's label.

I.e., consider the MLS of:

Top Secret
Secret
Confidential
Unclassified

If the subject has Secret and the object has Unclassified, then if the obje=
ct is changed to Confidential,
then access is still granted, but the client might want to reget the object=
 label to prevent
a subject with Unclassified access from being allowed to read the file.

Likewise if the subject has Secret and the object has Secret, then if they =
object is changed to
Confidential, the client might want to get the new object label to allow su=
bjects with a
Confidential access to be allowed to get the file.

But in either case, if the ctime changes, the client can deduce it needs to=
 get the possibly changed label.


>>=20
>>> BTW, while you are at it, sec_label_changed is a better name than chang=
e_sec_label
>>> which implies an operation.
>> Agree that this is better but sec_label_changed suggests a boolean attri=
bute.
>>=20
>> How about:
>>=20
>>    sec_label_change?
>>=20
>>    sec_label_changeval?
>>=20
>>    sec_label_change_thingy :-)
>=20
> Or sec_label_state?
>=20
> Thanks.
>=20
>=20
> - Jarrett
>=20
>>=20
>>=20
>=20


From jarrett.lu@oracle.com  Thu Jan 24 09:45:06 2013
Return-Path: <jarrett.lu@oracle.com>
X-Original-To: nfsv4@ietfa.amsl.com
Delivered-To: nfsv4@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6272A21F883C for <nfsv4@ietfa.amsl.com>; Thu, 24 Jan 2013 09:45:06 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.599
X-Spam-Level: 
X-Spam-Status: No, score=-6.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id iViRwsM7Wmfu for <nfsv4@ietfa.amsl.com>; Thu, 24 Jan 2013 09:45:05 -0800 (PST)
Received: from aserp1040.oracle.com (aserp1040.oracle.com [141.146.126.69]) by ietfa.amsl.com (Postfix) with ESMTP id 67EAA21F87C5 for <nfsv4@ietf.org>; Thu, 24 Jan 2013 09:45:05 -0800 (PST)
Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by aserp1040.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id r0OHitdY026210 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 24 Jan 2013 17:44:56 GMT
Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r0OHistE013884 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 24 Jan 2013 17:44:55 GMT
Received: from abhmt113.oracle.com (abhmt113.oracle.com [141.146.116.65]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id r0OHis8j012490; Thu, 24 Jan 2013 11:44:54 -0600
Received: from [10.132.148.74] (/10.132.148.74) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 24 Jan 2013 09:44:54 -0800
Message-ID: <510174E1.1000905@oracle.com>
Date: Thu, 24 Jan 2013 09:52:33 -0800
From: Jarrett Lu <jarrett.lu@oracle.com>
User-Agent: Mozilla/5.0 (X11; SunOS i86pc; rv:10.0.7) Gecko/20120926 Thunderbird/10.0.7
MIME-Version: 1.0
To: "Haynes, Tom" <Tom.Haynes@netapp.com>
References: <20130122220619.GA14617@fieldses.org> <D54C745FA96F75489B58FCBD8956AE8F18E3CD2A@sacexcmbx05-prd.hq.netapp.com> <51002EDA.6030106@oracle.com> <4FA345DA4F4AE44899BD2B03EEEC2FA9183334FB@sacexcmbx05-prd.hq.netapp.com> <510037B5.6050909@oracle.com> <D54C745FA96F75489B58FCBD8956AE8F18E4A2C6@sacexcmbx05-prd.hq.netapp.com> <51004A28.7010303@oracle.com> <5DEA8DB993B81040A21CF3CB332489F60425A5AFAA@MX31A.corp.emc.com> <51006830.4030400@oracle.com> <D54C745FA96F75489B58FCBD8956AE8F18E4C840@sacexcmbx05-prd.hq.netapp.com>
In-Reply-To: <D54C745FA96F75489B58FCBD8956AE8F18E4C840@sacexcmbx05-prd.hq.netapp.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Source-IP: ucsinet21.oracle.com [156.151.31.93]
Cc: "J. Bruce Fields" <bfields@fieldses.org>, "Myklebust, Trond" <Trond.Myklebust@netapp.com>, nfsv4 list <nfsv4@ietf.org>
Subject: Re: [nfsv4] make change_sec_label optional
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: jarrett.lu@oracle.com
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/nfsv4>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 24 Jan 2013 17:45:06 -0000

On 01/23/13 05:07 PM, Haynes, Tom wrote:
> On Jan 23, 2013, at 4:46 PM, Jarrett Lu<jarrett.lu@oracle.com>  wrote:
>
>> On 01/23/13 02:08 PM, Noveck, David wrote:
>>>> I just like to understand the error case scenario a little better.
>>>> A client which has registered a delegation will see the delegation recalled
>>>> as a result of label change. A client which didn't register a delegation will
>>>> be forced to do a remount as a result of a label change that it didn't expect?
>>> I don't understand how "forced to do a remount" happens.  Can people suggest
>>> spec text that will make clear what the server has to do to force this to happen
>>> and to determine when it has happened?  Please keep in mind that "mount" is not
>>> an operation in the NFSv4 protocol.
>> It may not need to be remount. If client's file handle can be made stale as a result of label change, that's probably sufficient. In this case the client needs to reopen the file object. What's important is that clients don't miss out on a label change event. On Solaris, I believe the client gets an EACCES error if file label is changed mid-stream. That will stop information flow right away but may not be the right error semantics as applications may not expect or be able to handle that error in the middle of reading a file.
>>
> Applications have to be able to deal with that already - an admin may change export permissions at any point.

This makes sense. Actually DAC access permission can be taken away 
asynchronously as well.

>
> There are two concerns here:
>
>
> 1) Admin changes the policy and we need to be able to stop all now unauthorized access to the object.
>
> This will work without change_sec_label.
>
> 2) Admin changes the policy and wants all client cached data flushed.
>
> The delegation allows for this.
>
> So the only uses I can see for change_sec_label is when the admin makes a change that is
> more permissive or when they make one that is more permissive but still allowed by the subject's label.
>
> I.e., consider the MLS of:
>
> Top Secret
> Secret
> Confidential
> Unclassified
>
> If the subject has Secret and the object has Unclassified, then if the object is changed to Confidential,
> then access is still granted, but the client might want to reget the object label to prevent
> a subject with Unclassified access from being allowed to read the file.
>
> Likewise if the subject has Secret and the object has Secret, then if they object is changed to
> Confidential, the client might want to get the new object label to allow subjects with a
> Confidential access to be allowed to get the file.

In MLS model, when an object label is lowered from Secret to 
Confidential, the Secret labeled subject should lose write access. The 
object becomes read only.

Given the use cases you provided for change_sec_label, I now believe 
this attribute is not worthwhile. In all cases, if clients are not made 
aware of a label change on the object, it's a risk to the MAC model 
although it may not in violation of a particular MAC operation. For 
example, a subject labeled SECRET is reading an object labeled 
CONFIDENTIAL. The object is then downgraded to UNCLASSIFIED. Although 
the subject can continue reading the object without violating MAC 
policy, the client should immediately update the label info on the 
object for obvious reasons. Without (1) and (2) you cited above, the 
only way for clients to find out such a label change is to do getattr on 
change_sec_label on every operation. Given label change is rare, that's 
hardly an optimization. If getattr becomes a local operation on clients 
when delegation is in effect, it's more broken. So I suggest that server 
MUST recall delegations when object label changes and do away with the 
change_sec_label attribute.

Thanks for presenting the use cases.


- Jarrett

>
> But in either case, if the ctime changes, the client can deduce it needs to get the possibly changed label.
>
>
>>>> BTW, while you are at it, sec_label_changed is a better name than change_sec_label
>>>> which implies an operation.
>>> Agree that this is better but sec_label_changed suggests a boolean attribute.
>>>
>>> How about:
>>>
>>>     sec_label_change?
>>>
>>>     sec_label_changeval?
>>>
>>>     sec_label_change_thingy :-)
>> Or sec_label_state?
>>
>> Thanks.
>>
>>
>> - Jarrett
>>
>>>


From dpquigl@davequigley.com  Thu Jan 24 09:45:09 2013
Return-Path: <dpquigl@davequigley.com>
X-Original-To: nfsv4@ietfa.amsl.com
Delivered-To: nfsv4@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 23C7A11E8097 for <nfsv4@ietfa.amsl.com>; Thu, 24 Jan 2013 09:45:09 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.447
X-Spam-Level: 
X-Spam-Status: No, score=-2.447 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, SARE_SUB_ENC_UTF8=0.152]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NYy7Rx5JOu1V for <nfsv4@ietfa.amsl.com>; Thu, 24 Jan 2013 09:45:08 -0800 (PST)
Received: from countercultured.net (countercultured.net [IPv6:2001:470:0:c0d3::2]) by ietfa.amsl.com (Postfix) with SMTP id 2504C21F87C5 for <nfsv4@ietf.org>; Thu, 24 Jan 2013 09:45:07 -0800 (PST)
Received: (qmail 5447 invoked from network); 24 Jan 2013 17:45:05 -0000
Received: from countercultured.net (HELO webmail.countercultured.net) (209.51.175.25) by countercultured.net with SMTP; 24 Jan 2013 17:45:05 -0000
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Date: Thu, 24 Jan 2013 12:45:05 -0500
From: David Quigley <dpquigl@davequigley.com>
To: <nfsv4@ietf.org>
In-Reply-To: <20130123185901.GA4405@fieldses.org>
References: <20130122220619.GA14617@fieldses.org> <D54C745FA96F75489B58FCBD8956AE8F18E3CD2A@sacexcmbx05-prd.hq.netapp.com> <51002EDA.6030106@oracle.com> <20130123185901.GA4405@fieldses.org>
Message-ID: <7448d5c3ba8bd78960552a19c6488768@countercultured.net>
X-Sender: dpquigl@davequigley.com
User-Agent: RoundCube Webmail/0.9-svn
Subject: Re: [nfsv4] =?utf-8?q?make_change=5Fsec=5Flabel_optional?=
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/nfsv4>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 24 Jan 2013 17:45:09 -0000

On 01/23/2013 13:59, J. Bruce Fields wrote:
> On Wed, Jan 23, 2013 at 10:41:30AM -0800, Jarrett Lu wrote:
>> On 01/22/13 08:03 PM, Haynes, Tom wrote:
>> >On Jan 22, 2013, at 4:06 PM, J. Bruce Fields<bfields@fieldses.org>  
>> wrote:
>> >
>> >>The initial labeled NFS implementation people have been working on 
>> for
>> >>Linux doesn't appear to need the change_sec_label 
>> attribute--labels are
>> >>expected to be static.
>> >>
>> >>So, let's make this optional.
>> >>
>> >>Assuming we do end up needing this in the future, all this means 
>> is that
>> >>future clients will need a little logic to handle servers without
>> >>change_sec_label support.  That doesn't seem like a huge deal.
>> >>
>> >>--b.
>> >>
>> >>diff --git a/nfsv42_middle_fileattributes.xml 
>> b/nfsv42_middle_fileattributes.xml
>> >>index 116b794..ac92119 100644
>> >>--- a/nfsv42_middle_fileattributes.xml
>> >>+++ b/nfsv42_middle_fileattributes.xml
>> >>@@ -192,9 +192,8 @@ typedef uint32_t  policy4;
>> >>       </t>
>> >>
>> >>       <t>
>> >>-        If a server supports sec_label, then it MUST also support
>> >>-        change_sec_label. Any modification to sec_label MUST 
>> modify
>> >>-        the value for change_sec_label.
>> >>+        A server that supports sec_label may still choose not to 
>> support
>> >>+	change_sec_label.
>> >>       </t>
>> >>     </section>
>> >>
>> >>_______________________________________________
>> >>nfsv4 mailing list
>> >>nfsv4@ietf.org
>> >>https://www.ietf.org/mailman/listinfo/nfsv4
>> >
>> >
>> >Thanks Bruce, I'd still like to hear from Jarrett before we do 
>> that.
>>
>> From reading the draft, the meaning and purpose of the
>> change_sec_label attribute is to provide a way for client to know
>> whether the label attribute of an object (on server) has changed,
>> not whether the label may change at a future time or the operation
>> of changing a label.
>
> Right.
>
>> The combo of allowing setting/modifying label but having no way of
>> knowing such change appears odd to me.
>
> For the use case people seem to care about now (vm images?) the label
> will be set once on object creation and then never changed.
>
> (Or if it is changed it would be such an exceptional event that it 
> would
> be acceptable to require the client to remount.)
>
>> When a client does a verify
>> on change_sec_label and gets back a "not supported" error, what will
>> that mean to the client, and what action should the client take? The
>> change_sec_label is not needed if labels can't be changed. Current
>> Linux client implementation does not verify the change_sec_label
>> attribute does not seem to be a strong enough reason to change it to
>> optional, IMO.
>>
>> I do have a question on the change_sec_label attribute: Will the
>> attribute ever get reset? If a client finds out a file label is
>> changed and reopens the file, will it continue to say the label has
>> changed?
>
> It's not a boolean, it's an integer that's incremented on every 
> change.
>
> (Nitpick: that's a lie, it could change in some other way other than
> incrementing--the point is that you compare it to old values to
> determine whether something changed.)
>
> --b.
> _______________________________________________
> nfsv4 mailing list
> nfsv4@ietf.org
> https://www.ietf.org/mailman/listinfo/nfsv4


Actually to clarify something. We do intend on implementing this. We do 
find it useful and it is on our list of things to do. The reason we 
don't currently have it implemented is that it wasn't part of the 
original spec we proposed and the current prototype was written against 
the earlier spec. In the VM image use case we do have the label 
changing. sVirt will use the category fields of the SELinux labels for 
process separation for individual qemu instances. For this to happen 
libvirt will set the qemu instance and modify the disk images for the vm 
in question to match the categories of the qemu instance. What I've said 
in the past is currently we've found that the 5 second attribute cache 
timeout that Linux currently has by default seems ok for now however 
there are definitely environments which needs quicker change 
notification.

Dave

From Trond.Myklebust@netapp.com  Thu Jan 24 09:56:30 2013
Return-Path: <Trond.Myklebust@netapp.com>
X-Original-To: nfsv4@ietfa.amsl.com
Delivered-To: nfsv4@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 48A3321F84F6 for <nfsv4@ietfa.amsl.com>; Thu, 24 Jan 2013 09:56:30 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level: 
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xI9bd0eAxX22 for <nfsv4@ietfa.amsl.com>; Thu, 24 Jan 2013 09:56:29 -0800 (PST)
Received: from mx12.netapp.com (mx12.netapp.com [216.240.18.77]) by ietfa.amsl.com (Postfix) with ESMTP id 6823521F84F3 for <nfsv4@ietf.org>; Thu, 24 Jan 2013 09:56:29 -0800 (PST)
X-IronPort-AV: E=Sophos;i="4.84,530,1355126400"; d="scan'208";a="11333137"
Received: from smtp1.corp.netapp.com ([10.57.156.124]) by mx12-out.netapp.com with ESMTP; 24 Jan 2013 09:56:28 -0800
Received: from vmwexceht04-prd.hq.netapp.com (vmwexceht04-prd.hq.netapp.com [10.106.77.34]) by smtp1.corp.netapp.com (8.13.1/8.13.1/NTAP-1.6) with ESMTP id r0OHuSd9009920; Thu, 24 Jan 2013 09:56:28 -0800 (PST)
Received: from SACEXCMBX05-PRD.hq.netapp.com ([169.254.9.231]) by vmwexceht04-prd.hq.netapp.com ([10.106.77.34]) with mapi id 14.02.0328.009; Thu, 24 Jan 2013 09:56:28 -0800
From: "Myklebust, Trond" <Trond.Myklebust@netapp.com>
To: "jarrett.lu@oracle.com" <jarrett.lu@oracle.com>, "Haynes, Tom" <Tom.Haynes@netapp.com>
Thread-Topic: [nfsv4] make change_sec_label optional
Thread-Index: AQHN+Oy4H/rpI13ZVUevE0dd9O7IDphW0YCAgAD1RwD//3pGoIAAkEiAgAAFQ4CAABC8AIAAGTSAgAAKmACAACdugIABGOCA//96hCA=
Date: Thu, 24 Jan 2013 17:56:27 +0000
Message-ID: <4FA345DA4F4AE44899BD2B03EEEC2FA91833761A@sacexcmbx05-prd.hq.netapp.com>
References: <20130122220619.GA14617@fieldses.org> <D54C745FA96F75489B58FCBD8956AE8F18E3CD2A@sacexcmbx05-prd.hq.netapp.com> <51002EDA.6030106@oracle.com> <4FA345DA4F4AE44899BD2B03EEEC2FA9183334FB@sacexcmbx05-prd.hq.netapp.com> <510037B5.6050909@oracle.com> <D54C745FA96F75489B58FCBD8956AE8F18E4A2C6@sacexcmbx05-prd.hq.netapp.com> <51004A28.7010303@oracle.com> <5DEA8DB993B81040A21CF3CB332489F60425A5AFAA@MX31A.corp.emc.com> <51006830.4030400@oracle.com> <D54C745FA96F75489B58FCBD8956AE8F18E4C840@sacexcmbx05-prd.hq.netapp.com> <510174E1.1000905@oracle.com>
In-Reply-To: <510174E1.1000905@oracle.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [10.106.53.53]
Content-Type: text/plain; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Cc: "J. Bruce Fields" <bfields@fieldses.org>, nfsv4 list <nfsv4@ietf.org>
Subject: Re: [nfsv4] make change_sec_label optional
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/nfsv4>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 24 Jan 2013 17:56:30 -0000

> -----Original Message-----
> From: Jarrett Lu [mailto:jarrett.lu@oracle.com]
> Sent: Thursday, January 24, 2013 12:53 PM
> To: Haynes, Tom
> Cc: David Noveck; J. Bruce Fields; Myklebust, Trond; nfsv4 list
> Subject: Re: [nfsv4] make change_sec_label optional
>=20
> On 01/23/13 05:07 PM, Haynes, Tom wrote:
> > On Jan 23, 2013, at 4:46 PM, Jarrett Lu<jarrett.lu@oracle.com>  wrote:
> >
> >> On 01/23/13 02:08 PM, Noveck, David wrote:
> >>>> I just like to understand the error case scenario a little better.
> >>>> A client which has registered a delegation will see the delegation
> >>>> recalled as a result of label change. A client which didn't
> >>>> register a delegation will be forced to do a remount as a result of =
a label
> change that it didn't expect?
> >>> I don't understand how "forced to do a remount" happens.  Can people
> >>> suggest spec text that will make clear what the server has to do to
> >>> force this to happen and to determine when it has happened?  Please
> >>> keep in mind that "mount" is not an operation in the NFSv4 protocol.
> >> It may not need to be remount. If client's file handle can be made sta=
le as
> a result of label change, that's probably sufficient. In this case the cl=
ient
> needs to reopen the file object. What's important is that clients don't m=
iss
> out on a label change event. On Solaris, I believe the client gets an EAC=
CES
> error if file label is changed mid-stream. That will stop information flo=
w right
> away but may not be the right error semantics as applications may not exp=
ect
> or be able to handle that error in the middle of reading a file.
> >>
> > Applications have to be able to deal with that already - an admin may
> change export permissions at any point.
>=20
> This makes sense. Actually DAC access permission can be taken away
> asynchronously as well.
>=20
> >
> > There are two concerns here:
> >
> >
> > 1) Admin changes the policy and we need to be able to stop all now
> unauthorized access to the object.
> >
> > This will work without change_sec_label.
> >
> > 2) Admin changes the policy and wants all client cached data flushed.
> >
> > The delegation allows for this.
> >
> > So the only uses I can see for change_sec_label is when the admin
> > makes a change that is more permissive or when they make one that is
> more permissive but still allowed by the subject's label.
> >
> > I.e., consider the MLS of:
> >
> > Top Secret
> > Secret
> > Confidential
> > Unclassified
> >
> > If the subject has Secret and the object has Unclassified, then if the
> > object is changed to Confidential, then access is still granted, but
> > the client might want to reget the object label to prevent a subject wi=
th
> Unclassified access from being allowed to read the file.
> >
> > Likewise if the subject has Secret and the object has Secret, then if
> > they object is changed to Confidential, the client might want to get
> > the new object label to allow subjects with a Confidential access to be
> allowed to get the file.
>=20
> In MLS model, when an object label is lowered from Secret to Confidential=
,
> the Secret labeled subject should lose write access. The object becomes r=
ead
> only.
>=20
> Given the use cases you provided for change_sec_label, I now believe this
> attribute is not worthwhile. In all cases, if clients are not made aware =
of a
> label change on the object, it's a risk to the MAC model although it may =
not in
> violation of a particular MAC operation. For example, a subject labeled
> SECRET is reading an object labeled CONFIDENTIAL. The object is then
> downgraded to UNCLASSIFIED. Although the subject can continue reading
> the object without violating MAC policy, the client should immediately
> update the label info on the object for obvious reasons. Without (1) and =
(2)
> you cited above, the only way for clients to find out such a label change=
 is to
> do getattr on change_sec_label on every operation. Given label change is
> rare, that's hardly an optimization. If getattr becomes a local operation=
 on
> clients when delegation is in effect, it's more broken. So I suggest that=
 server
> MUST recall delegations when object label changes and do away with the
> change_sec_label attribute.
>=20

Are you seriously proposing that we tie labels to delegations? How do you p=
ropose to make that scale?

Trond


From jarrett.lu@oracle.com  Thu Jan 24 10:11:51 2013
Return-Path: <jarrett.lu@oracle.com>
X-Original-To: nfsv4@ietfa.amsl.com
Delivered-To: nfsv4@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 317A621F87D5 for <nfsv4@ietfa.amsl.com>; Thu, 24 Jan 2013 10:11:47 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.599
X-Spam-Level: 
X-Spam-Status: No, score=-6.599 tagged_above=-999 required=5 tests=[AWL=0.000,  BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mcqXIYQLNlyH for <nfsv4@ietfa.amsl.com>; Thu, 24 Jan 2013 10:11:46 -0800 (PST)
Received: from aserp1040.oracle.com (aserp1040.oracle.com [141.146.126.69]) by ietfa.amsl.com (Postfix) with ESMTP id A65E421F87FB for <nfsv4@ietf.org>; Thu, 24 Jan 2013 10:11:44 -0800 (PST)
Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by aserp1040.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id r0OIBYvq023248 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 24 Jan 2013 18:11:35 GMT
Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r0OIBXmp020060 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 24 Jan 2013 18:11:34 GMT
Received: from abhmt102.oracle.com (abhmt102.oracle.com [141.146.116.54]) by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id r0OIBXrT026883; Thu, 24 Jan 2013 12:11:33 -0600
Received: from [10.132.148.74] (/10.132.148.74) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 24 Jan 2013 10:11:33 -0800
Message-ID: <51017B2B.30509@oracle.com>
Date: Thu, 24 Jan 2013 10:19:23 -0800
From: Jarrett Lu <jarrett.lu@oracle.com>
User-Agent: Mozilla/5.0 (X11; SunOS i86pc; rv:10.0.7) Gecko/20120926 Thunderbird/10.0.7
MIME-Version: 1.0
To: "Myklebust, Trond" <Trond.Myklebust@netapp.com>
References: <20130122220619.GA14617@fieldses.org> <D54C745FA96F75489B58FCBD8956AE8F18E3CD2A@sacexcmbx05-prd.hq.netapp.com> <51002EDA.6030106@oracle.com> <4FA345DA4F4AE44899BD2B03EEEC2FA9183334FB@sacexcmbx05-prd.hq.netapp.com> <510037B5.6050909@oracle.com> <D54C745FA96F75489B58FCBD8956AE8F18E4A2C6@sacexcmbx05-prd.hq.netapp.com> <51004A28.7010303@oracle.com> <5DEA8DB993B81040A21CF3CB332489F60425A5AFAA@MX31A.corp.emc.com> <51006830.4030400@oracle.com> <D54C745FA96F75489B58FCBD8956AE8F18E4C840@sacexcmbx05-prd.hq.netapp.com> <510174E1.1000905@oracle.com> <4FA345DA4F4AE44899BD2B03EEEC2FA91833761A@sacexcmbx05-prd.hq.netapp.com>
In-Reply-To: <4FA345DA4F4AE44899BD2B03EEEC2FA91833761A@sacexcmbx05-prd.hq.netapp.com>
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
X-Source-IP: acsinet21.oracle.com [141.146.126.237]
Cc: "J. Bruce Fields" <bfields@fieldses.org>, "Haynes, Tom" <Tom.Haynes@netapp.com>, nfsv4 list <nfsv4@ietf.org>
Subject: Re: [nfsv4] make change_sec_label optional
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: jarrett.lu@oracle.com
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/nfsv4>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 24 Jan 2013 18:11:51 -0000

On 01/24/13 09:56 AM, Myklebust, Trond wrote:
>
>> -----Original Message-----
>> From: Jarrett Lu [mailto:jarrett.lu@oracle.com]
>> Sent: Thursday, January 24, 2013 12:53 PM
>> To: Haynes, Tom
>> Cc: David Noveck; J. Bruce Fields; Myklebust, Trond; nfsv4 list
>> Subject: Re: [nfsv4] make change_sec_label optional
>>
>> On 01/23/13 05:07 PM, Haynes, Tom wrote:
>>> On Jan 23, 2013, at 4:46 PM, Jarrett Lu<jarrett.lu@oracle.com>   wrote:
>>>
>>>> On 01/23/13 02:08 PM, Noveck, David wrote:
>>>>>> I just like to understand the error case scenario a little better.
>>>>>> A client which has registered a delegation will see the delegation
>>>>>> recalled as a result of label change. A client which didn't
>>>>>> register a delegation will be forced to do a remount as a result of a label
>> change that it didn't expect?
>>>>> I don't understand how "forced to do a remount" happens.  Can people
>>>>> suggest spec text that will make clear what the server has to do to
>>>>> force this to happen and to determine when it has happened?  Please
>>>>> keep in mind that "mount" is not an operation in the NFSv4 protocol.
>>>> It may not need to be remount. If client's file handle can be made stale as
>> a result of label change, that's probably sufficient. In this case the client
>> needs to reopen the file object. What's important is that clients don't miss
>> out on a label change event. On Solaris, I believe the client gets an EACCES
>> error if file label is changed mid-stream. That will stop information flow right
>> away but may not be the right error semantics as applications may not expect
>> or be able to handle that error in the middle of reading a file.
>>> Applications have to be able to deal with that already - an admin may
>> change export permissions at any point.
>>
>> This makes sense. Actually DAC access permission can be taken away
>> asynchronously as well.
>>
>>> There are two concerns here:
>>>
>>>
>>> 1) Admin changes the policy and we need to be able to stop all now
>> unauthorized access to the object.
>>> This will work without change_sec_label.
>>>
>>> 2) Admin changes the policy and wants all client cached data flushed.
>>>
>>> The delegation allows for this.
>>>
>>> So the only uses I can see for change_sec_label is when the admin
>>> makes a change that is more permissive or when they make one that is
>> more permissive but still allowed by the subject's label.
>>> I.e., consider the MLS of:
>>>
>>> Top Secret
>>> Secret
>>> Confidential
>>> Unclassified
>>>
>>> If the subject has Secret and the object has Unclassified, then if the
>>> object is changed to Confidential, then access is still granted, but
>>> the client might want to reget the object label to prevent a subject with
>> Unclassified access from being allowed to read the file.
>>> Likewise if the subject has Secret and the object has Secret, then if
>>> they object is changed to Confidential, the client might want to get
>>> the new object label to allow subjects with a Confidential access to be
>> allowed to get the file.
>>
>> In MLS model, when an object label is lowered from Secret to Confidential,
>> the Secret labeled subject should lose write access. The object becomes read
>> only.
>>
>> Given the use cases you provided for change_sec_label, I now believe this
>> attribute is not worthwhile. In all cases, if clients are not made aware of a
>> label change on the object, it's a risk to the MAC model although it may not in
>> violation of a particular MAC operation. For example, a subject labeled
>> SECRET is reading an object labeled CONFIDENTIAL. The object is then
>> downgraded to UNCLASSIFIED. Although the subject can continue reading
>> the object without violating MAC policy, the client should immediately
>> update the label info on the object for obvious reasons. Without (1) and (2)
>> you cited above, the only way for clients to find out such a label change is to
>> do getattr on change_sec_label on every operation. Given label change is
>> rare, that's hardly an optimization. If getattr becomes a local operation on
>> clients when delegation is in effect, it's more broken. So I suggest that server
>> MUST recall delegations when object label changes and do away with the
>> change_sec_label attribute.
>>
> Are you seriously proposing that we tie labels to delegations? How do you propose to make that scale?

I have not thought about scalability. In MLS world, label change is 
rare, and delegation recall due to label change will be rare. It's very 
possible that I don't understand delegation well enough. Can you 
elaborate on the potential problems?

Thanks.

- Jarrett

>
> Trond
>


From Trond.Myklebust@netapp.com  Thu Jan 24 10:28:47 2013
Return-Path: <Trond.Myklebust@netapp.com>
X-Original-To: nfsv4@ietfa.amsl.com
Delivered-To: nfsv4@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id DB2AF21F8596 for <nfsv4@ietfa.amsl.com>; Thu, 24 Jan 2013 10:28:46 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level: 
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8Khc9aBhpOGw for <nfsv4@ietfa.amsl.com>; Thu, 24 Jan 2013 10:28:46 -0800 (PST)
Received: from mx12.netapp.com (mx12.netapp.com [216.240.18.77]) by ietfa.amsl.com (Postfix) with ESMTP id E090921F867B for <nfsv4@ietf.org>; Thu, 24 Jan 2013 10:28:45 -0800 (PST)
X-IronPort-AV: E=Sophos;i="4.84,530,1355126400"; d="scan'208";a="11345637"
Received: from smtp1.corp.netapp.com ([10.57.156.124]) by mx12-out.netapp.com with ESMTP; 24 Jan 2013 10:28:45 -0800
Received: from vmwexceht03-prd.hq.netapp.com (exchsmtp.hq.netapp.com [10.106.76.241]) by smtp1.corp.netapp.com (8.13.1/8.13.1/NTAP-1.6) with ESMTP id r0OISjs3025528; Thu, 24 Jan 2013 10:28:45 -0800 (PST)
Received: from SACEXCMBX05-PRD.hq.netapp.com ([169.254.9.231]) by vmwexceht03-prd.hq.netapp.com ([10.106.76.241]) with mapi id 14.02.0328.009; Thu, 24 Jan 2013 10:28:44 -0800
From: "Myklebust, Trond" <Trond.Myklebust@netapp.com>
To: "jarrett.lu@oracle.com" <jarrett.lu@oracle.com>
Thread-Topic: [nfsv4] make change_sec_label optional
Thread-Index: AQHN+Oy4H/rpI13ZVUevE0dd9O7IDphW0YCAgAD1RwD//3pGoIAAkEiAgAAFQ4CAABC8AIAAGTSAgAAKmACAACdugIABGOCA//96hCCAAIz8gP//d+fg
Date: Thu, 24 Jan 2013 18:28:43 +0000
Message-ID: <4FA345DA4F4AE44899BD2B03EEEC2FA9183376AA@sacexcmbx05-prd.hq.netapp.com>
References: <20130122220619.GA14617@fieldses.org> <D54C745FA96F75489B58FCBD8956AE8F18E3CD2A@sacexcmbx05-prd.hq.netapp.com> <51002EDA.6030106@oracle.com> <4FA345DA4F4AE44899BD2B03EEEC2FA9183334FB@sacexcmbx05-prd.hq.netapp.com> <510037B5.6050909@oracle.com> <D54C745FA96F75489B58FCBD8956AE8F18E4A2C6@sacexcmbx05-prd.hq.netapp.com> <51004A28.7010303@oracle.com> <5DEA8DB993B81040A21CF3CB332489F60425A5AFAA@MX31A.corp.emc.com> <51006830.4030400@oracle.com> <D54C745FA96F75489B58FCBD8956AE8F18E4C840@sacexcmbx05-prd.hq.netapp.com> <510174E1.1000905@oracle.com> <4FA345DA4F4AE44899BD2B03EEEC2FA91833761A@sacexcmbx05-prd.hq.netapp.com> <51017B2B.30509@oracle.com>
In-Reply-To: <51017B2B.30509@oracle.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [10.106.53.53]
Content-Type: text/plain; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Cc: "J. Bruce Fields" <bfields@fieldses.org>, "Haynes, Tom" <Tom.Haynes@netapp.com>, nfsv4 list <nfsv4@ietf.org>
Subject: Re: [nfsv4] make change_sec_label optional
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/nfsv4>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 24 Jan 2013 18:28:47 -0000

> -----Original Message-----
> From: Jarrett Lu [mailto:jarrett.lu@oracle.com]
> Sent: Thursday, January 24, 2013 1:19 PM
> To: Myklebust, Trond
> Cc: Haynes, Tom; David Noveck; J. Bruce Fields; nfsv4 list
> Subject: Re: [nfsv4] make change_sec_label optional
>=20
> On 01/24/13 09:56 AM, Myklebust, Trond wrote:
> >
> >> -----Original Message-----
> >> From: Jarrett Lu [mailto:jarrett.lu@oracle.com]
> >> Sent: Thursday, January 24, 2013 12:53 PM
> >> To: Haynes, Tom
> >> Cc: David Noveck; J. Bruce Fields; Myklebust, Trond; nfsv4 list
> >> Subject: Re: [nfsv4] make change_sec_label optional
> >>
> >> On 01/23/13 05:07 PM, Haynes, Tom wrote:
> >>> On Jan 23, 2013, at 4:46 PM, Jarrett Lu<jarrett.lu@oracle.com>   wrot=
e:
> >>>
> >>>> On 01/23/13 02:08 PM, Noveck, David wrote:
> >>>>>> I just like to understand the error case scenario a little better.
> >>>>>> A client which has registered a delegation will see the
> >>>>>> delegation recalled as a result of label change. A client which
> >>>>>> didn't register a delegation will be forced to do a remount as a
> >>>>>> result of a label
> >> change that it didn't expect?
> >>>>> I don't understand how "forced to do a remount" happens.  Can
> >>>>> people suggest spec text that will make clear what the server has
> >>>>> to do to force this to happen and to determine when it has
> >>>>> happened?  Please keep in mind that "mount" is not an operation in
> the NFSv4 protocol.
> >>>> It may not need to be remount. If client's file handle can be made
> >>>> stale as
> >> a result of label change, that's probably sufficient. In this case
> >> the client needs to reopen the file object. What's important is that
> >> clients don't miss out on a label change event. On Solaris, I believe
> >> the client gets an EACCES error if file label is changed mid-stream.
> >> That will stop information flow right away but may not be the right
> >> error semantics as applications may not expect or be able to handle th=
at
> error in the middle of reading a file.
> >>> Applications have to be able to deal with that already - an admin
> >>> may
> >> change export permissions at any point.
> >>
> >> This makes sense. Actually DAC access permission can be taken away
> >> asynchronously as well.
> >>
> >>> There are two concerns here:
> >>>
> >>>
> >>> 1) Admin changes the policy and we need to be able to stop all now
> >> unauthorized access to the object.
> >>> This will work without change_sec_label.
> >>>
> >>> 2) Admin changes the policy and wants all client cached data flushed.
> >>>
> >>> The delegation allows for this.
> >>>
> >>> So the only uses I can see for change_sec_label is when the admin
> >>> makes a change that is more permissive or when they make one that is
> >> more permissive but still allowed by the subject's label.
> >>> I.e., consider the MLS of:
> >>>
> >>> Top Secret
> >>> Secret
> >>> Confidential
> >>> Unclassified
> >>>
> >>> If the subject has Secret and the object has Unclassified, then if
> >>> the object is changed to Confidential, then access is still granted,
> >>> but the client might want to reget the object label to prevent a
> >>> subject with
> >> Unclassified access from being allowed to read the file.
> >>> Likewise if the subject has Secret and the object has Secret, then
> >>> if they object is changed to Confidential, the client might want to
> >>> get the new object label to allow subjects with a Confidential
> >>> access to be
> >> allowed to get the file.
> >>
> >> In MLS model, when an object label is lowered from Secret to
> >> Confidential, the Secret labeled subject should lose write access.
> >> The object becomes read only.
> >>
> >> Given the use cases you provided for change_sec_label, I now believe
> >> this attribute is not worthwhile. In all cases, if clients are not
> >> made aware of a label change on the object, it's a risk to the MAC
> >> model although it may not in violation of a particular MAC operation.
> >> For example, a subject labeled SECRET is reading an object labeled
> >> CONFIDENTIAL. The object is then downgraded to UNCLASSIFIED.
> Although
> >> the subject can continue reading the object without violating MAC
> >> policy, the client should immediately update the label info on the
> >> object for obvious reasons. Without (1) and (2) you cited above, the
> >> only way for clients to find out such a label change is to do getattr
> >> on change_sec_label on every operation. Given label change is rare,
> >> that's hardly an optimization. If getattr becomes a local operation
> >> on clients when delegation is in effect, it's more broken. So I
> >> suggest that server MUST recall delegations when object label changes
> and do away with the change_sec_label attribute.
> >>
> > Are you seriously proposing that we tie labels to delegations? How do y=
ou
> propose to make that scale?
>=20
> I have not thought about scalability. In MLS world, label change is rare,=
 and
> delegation recall due to label change will be rare. It's very possible th=
at I don't
> understand delegation well enough. Can you elaborate on the potential
> problems?
>=20

My point is that delegations are

a) not a lock.
b) only practical for a subset of applications.

Your colleagues in the database branch can't use them, for instance, so the=
y wouldn't be able to use a server with labeled nfs at all. All database re=
ads would have to check the label _before_ copying the data into the user b=
uffer (no O_DIRECT) and writes would not be possible at all (you're not cac=
hing a label).

In addition, directories only have read delegations, so operations like CRE=
ATE that change the directory would be out of the question.

IOW: Delegations are no option if you really want to protect all operations=
.
=20
The point of the change attribute was to allow the client to use VERIFY to =
check that the label is still unchanged before attempting a subsequent prot=
ected operation (like READ, WRITE, OPEN, CREATE,...). Maybe we can replace =
that with a VERIFY of the sec_label attribute itself, but the current spec =
assumes that there can be a large array of label data per sec_label, which =
would appear to make that option impractical (it will impose a ridiculously=
 high burden on the client and server, and so can't scale).

Trond

From nico@cryptonector.com  Thu Jan 24 11:18:53 2013
Return-Path: <nico@cryptonector.com>
X-Original-To: nfsv4@ietfa.amsl.com
Delivered-To: nfsv4@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 7166621F868E for <nfsv4@ietfa.amsl.com>; Thu, 24 Jan 2013 11:18:53 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.484
X-Spam-Level: 
X-Spam-Status: No, score=-3.484 tagged_above=-999 required=5 tests=[AWL=-1.507, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id R798bfuFgJtx for <nfsv4@ietfa.amsl.com>; Thu, 24 Jan 2013 11:18:52 -0800 (PST)
Received: from homiemail-a31.g.dreamhost.com (caiajhbdcbef.dreamhost.com [208.97.132.145]) by ietfa.amsl.com (Postfix) with ESMTP id DB2DE21F8682 for <nfsv4@ietf.org>; Thu, 24 Jan 2013 11:18:52 -0800 (PST)
Received: from homiemail-a31.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a31.g.dreamhost.com (Postfix) with ESMTP id 90EFD202045 for <nfsv4@ietf.org>; Thu, 24 Jan 2013 11:18:52 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=cryptonector.com; h= mime-version:in-reply-to:references:date:message-id:subject:from :to:cc:content-type; s=cryptonector.com; bh=E8ob0nH3wR6DimWaUvwn qWf/nJg=; b=Xx/hKQfxs+9zv0yUjP4pTUogLxN3KPQ7SNnCwapFu3jsondRx9Hj hfQNbX7/dy07VC/8caCswnLv9dO486k24albvollEhgbAhkCNaJf+8Weg37mytV9 Om6PLEDYGz+l79s8MONR2PeKB7gK/RoK8xemFHYPtBkUjlQhmtqWMVQ=
Received: from mail-we0-f173.google.com (mail-we0-f173.google.com [74.125.82.173]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: nico@cryptonector.com) by homiemail-a31.g.dreamhost.com (Postfix) with ESMTPSA id 28D1B20203C for <nfsv4@ietf.org>; Thu, 24 Jan 2013 11:18:51 -0800 (PST)
Received: by mail-we0-f173.google.com with SMTP id r5so938969wey.4 for <nfsv4@ietf.org>; Thu, 24 Jan 2013 11:18:49 -0800 (PST)
MIME-Version: 1.0
X-Received: by 10.194.80.73 with SMTP id p9mr5197623wjx.4.1359055129952; Thu, 24 Jan 2013 11:18:49 -0800 (PST)
Received: by 10.217.39.133 with HTTP; Thu, 24 Jan 2013 11:18:49 -0800 (PST)
In-Reply-To: <51006830.4030400@oracle.com>
References: <20130122220619.GA14617@fieldses.org> <D54C745FA96F75489B58FCBD8956AE8F18E3CD2A@sacexcmbx05-prd.hq.netapp.com> <51002EDA.6030106@oracle.com> <4FA345DA4F4AE44899BD2B03EEEC2FA9183334FB@sacexcmbx05-prd.hq.netapp.com> <510037B5.6050909@oracle.com> <D54C745FA96F75489B58FCBD8956AE8F18E4A2C6@sacexcmbx05-prd.hq.netapp.com> <51004A28.7010303@oracle.com> <5DEA8DB993B81040A21CF3CB332489F60425A5AFAA@MX31A.corp.emc.com> <51006830.4030400@oracle.com>
Date: Thu, 24 Jan 2013 13:18:49 -0600
Message-ID: <CAK3OfOj6KTK46ujw+WqDOJYTOakiegQkq58bMMMALqKFNompqg@mail.gmail.com>
From: Nico Williams <nico@cryptonector.com>
To: jarrett.lu@oracle.com
Content-Type: text/plain; charset=UTF-8
Cc: "J. Bruce Fields" <bfields@fieldses.org>, "Myklebust, Trond" <Trond.Myklebust@netapp.com>, nfsv4 list <nfsv4@ietf.org>, "Haynes, Tom" <Tom.Haynes@netapp.com>
Subject: Re: [nfsv4] make change_sec_label optional
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/nfsv4>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 24 Jan 2013 19:18:53 -0000

On Wed, Jan 23, 2013 at 4:46 PM, Jarrett Lu <jarrett.lu@oracle.com> wrote:
> It may not need to be remount. If client's file handle can be made stale as
> a result of label change, that's probably sufficient. In this case the
> client needs to reopen the file object. What's important is that clients
> don't miss out on a label change event. On Solaris, I believe the client
> gets an EACCES error if file label is changed mid-stream. That will stop
> information flow right away but may not be the right error semantics as
> applications may not expect or be able to handle that error in the middle of
> reading a file.

Returning EACCES from read(2) or write(2) is definitely not
POSIX-compliant.  Arguably labeling at all means you've left POSIX
because re-doing authorization *after* the file descriptor is created
is definitely non-POSIX behavior.  You might return EIO, but I think
any error you return will cause problems, given which I think EACCES
is the best error to return because it's appropriately descriptive.

This is something that should be taken the Unix standards bodies.
Standardized labeled system behavior at this level would be nice.

Anyways, forgive me for going off-topic.

Nico
--

From jarrett.lu@oracle.com  Thu Jan 24 11:32:58 2013
Return-Path: <jarrett.lu@oracle.com>
X-Original-To: nfsv4@ietfa.amsl.com
Delivered-To: nfsv4@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 73FEE21F84CC for <nfsv4@ietfa.amsl.com>; Thu, 24 Jan 2013 11:32:58 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.599
X-Spam-Level: 
X-Spam-Status: No, score=-6.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XWDsYrhYFt+u for <nfsv4@ietfa.amsl.com>; Thu, 24 Jan 2013 11:32:57 -0800 (PST)
Received: from userp1040.oracle.com (userp1040.oracle.com [156.151.31.81]) by ietfa.amsl.com (Postfix) with ESMTP id 688BB21F84C6 for <nfsv4@ietf.org>; Thu, 24 Jan 2013 11:32:57 -0800 (PST)
Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by userp1040.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id r0OJWjT9015471 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 24 Jan 2013 19:32:45 GMT
Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r0OJWiYO001489 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 24 Jan 2013 19:32:44 GMT
Received: from abhmt116.oracle.com (abhmt116.oracle.com [141.146.116.68]) by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id r0OJWipV024911; Thu, 24 Jan 2013 13:32:44 -0600
Received: from [10.132.148.74] (/10.132.148.74) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 24 Jan 2013 11:32:43 -0800
Message-ID: <51018E27.8050404@oracle.com>
Date: Thu, 24 Jan 2013 11:40:23 -0800
From: Jarrett Lu <jarrett.lu@oracle.com>
User-Agent: Mozilla/5.0 (X11; SunOS i86pc; rv:10.0.7) Gecko/20120926 Thunderbird/10.0.7
MIME-Version: 1.0
To: "Myklebust, Trond" <Trond.Myklebust@netapp.com>
References: <20130122220619.GA14617@fieldses.org> <D54C745FA96F75489B58FCBD8956AE8F18E3CD2A@sacexcmbx05-prd.hq.netapp.com> <51002EDA.6030106@oracle.com> <4FA345DA4F4AE44899BD2B03EEEC2FA9183334FB@sacexcmbx05-prd.hq.netapp.com> <510037B5.6050909@oracle.com> <D54C745FA96F75489B58FCBD8956AE8F18E4A2C6@sacexcmbx05-prd.hq.netapp.com> <51004A28.7010303@oracle.com> <5DEA8DB993B81040A21CF3CB332489F60425A5AFAA@MX31A.corp.emc.com> <51006830.4030400@oracle.com> <D54C745FA96F75489B58FCBD8956AE8F18E4C840@sacexcmbx05-prd.hq.netapp.com> <510174E1.1000905@oracle.com> <4FA345DA4F4AE44899BD2B03EEEC2FA91833761A@sacexcmbx05-prd.hq.netapp.com> <51017B2B.30509@oracle.com> <4FA345DA4F4AE44899BD2B03EEEC2FA9183376AA@sacexcmbx05-prd.hq.netapp.com>
In-Reply-To: <4FA345DA4F4AE44899BD2B03EEEC2FA9183376AA@sacexcmbx05-prd.hq.netapp.com>
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
X-Source-IP: acsinet22.oracle.com [141.146.126.238]
Cc: "J. Bruce Fields" <bfields@fieldses.org>, "Haynes, Tom" <Tom.Haynes@netapp.com>, nfsv4 list <nfsv4@ietf.org>
Subject: Re: [nfsv4] make change_sec_label optional
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: jarrett.lu@oracle.com
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/nfsv4>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 24 Jan 2013 19:32:58 -0000

On 01/24/13 10:28 AM, Myklebust, Trond wrote:
>> -----Original Message-----
>> From: Jarrett Lu [mailto:jarrett.lu@oracle.com]
>> Sent: Thursday, January 24, 2013 1:19 PM
>> To: Myklebust, Trond
>> Cc: Haynes, Tom; David Noveck; J. Bruce Fields; nfsv4 list
>> Subject: Re: [nfsv4] make change_sec_label optional
>>
>> On 01/24/13 09:56 AM, Myklebust, Trond wrote:
>>>> -----Original Message-----
>>>> From: Jarrett Lu [mailto:jarrett.lu@oracle.com]
>>>> Sent: Thursday, January 24, 2013 12:53 PM
>>>> To: Haynes, Tom
>>>> Cc: David Noveck; J. Bruce Fields; Myklebust, Trond; nfsv4 list
>>>> Subject: Re: [nfsv4] make change_sec_label optional
>>>>
>>>> On 01/23/13 05:07 PM, Haynes, Tom wrote:
>>>>> On Jan 23, 2013, at 4:46 PM, Jarrett Lu<jarrett.lu@oracle.com>    wrote:
>>>>>
>>>>>> On 01/23/13 02:08 PM, Noveck, David wrote:
>>>>>>>> I just like to understand the error case scenario a little better.
>>>>>>>> A client which has registered a delegation will see the
>>>>>>>> delegation recalled as a result of label change. A client which
>>>>>>>> didn't register a delegation will be forced to do a remount as a
>>>>>>>> result of a label
>>>> change that it didn't expect?
>>>>>>> I don't understand how "forced to do a remount" happens.  Can
>>>>>>> people suggest spec text that will make clear what the server has
>>>>>>> to do to force this to happen and to determine when it has
>>>>>>> happened?  Please keep in mind that "mount" is not an operation in
>> the NFSv4 protocol.
>>>>>> It may not need to be remount. If client's file handle can be made
>>>>>> stale as
>>>> a result of label change, that's probably sufficient. In this case
>>>> the client needs to reopen the file object. What's important is that
>>>> clients don't miss out on a label change event. On Solaris, I believe
>>>> the client gets an EACCES error if file label is changed mid-stream.
>>>> That will stop information flow right away but may not be the right
>>>> error semantics as applications may not expect or be able to handle that
>> error in the middle of reading a file.
>>>>> Applications have to be able to deal with that already - an admin
>>>>> may
>>>> change export permissions at any point.
>>>>
>>>> This makes sense. Actually DAC access permission can be taken away
>>>> asynchronously as well.
>>>>
>>>>> There are two concerns here:
>>>>>
>>>>>
>>>>> 1) Admin changes the policy and we need to be able to stop all now
>>>> unauthorized access to the object.
>>>>> This will work without change_sec_label.
>>>>>
>>>>> 2) Admin changes the policy and wants all client cached data flushed.
>>>>>
>>>>> The delegation allows for this.
>>>>>
>>>>> So the only uses I can see for change_sec_label is when the admin
>>>>> makes a change that is more permissive or when they make one that is
>>>> more permissive but still allowed by the subject's label.
>>>>> I.e., consider the MLS of:
>>>>>
>>>>> Top Secret
>>>>> Secret
>>>>> Confidential
>>>>> Unclassified
>>>>>
>>>>> If the subject has Secret and the object has Unclassified, then if
>>>>> the object is changed to Confidential, then access is still granted,
>>>>> but the client might want to reget the object label to prevent a
>>>>> subject with
>>>> Unclassified access from being allowed to read the file.
>>>>> Likewise if the subject has Secret and the object has Secret, then
>>>>> if they object is changed to Confidential, the client might want to
>>>>> get the new object label to allow subjects with a Confidential
>>>>> access to be
>>>> allowed to get the file.
>>>>
>>>> In MLS model, when an object label is lowered from Secret to
>>>> Confidential, the Secret labeled subject should lose write access.
>>>> The object becomes read only.
>>>>
>>>> Given the use cases you provided for change_sec_label, I now believe
>>>> this attribute is not worthwhile. In all cases, if clients are not
>>>> made aware of a label change on the object, it's a risk to the MAC
>>>> model although it may not in violation of a particular MAC operation.
>>>> For example, a subject labeled SECRET is reading an object labeled
>>>> CONFIDENTIAL. The object is then downgraded to UNCLASSIFIED.
>> Although
>>>> the subject can continue reading the object without violating MAC
>>>> policy, the client should immediately update the label info on the
>>>> object for obvious reasons. Without (1) and (2) you cited above, the
>>>> only way for clients to find out such a label change is to do getattr
>>>> on change_sec_label on every operation. Given label change is rare,
>>>> that's hardly an optimization. If getattr becomes a local operation
>>>> on clients when delegation is in effect, it's more broken. So I
>>>> suggest that server MUST recall delegations when object label changes
>> and do away with the change_sec_label attribute.
>>> Are you seriously proposing that we tie labels to delegations? How do you
>> propose to make that scale?
>>
>> I have not thought about scalability. In MLS world, label change is rare, and
>> delegation recall due to label change will be rare. It's very possible that I don't
>> understand delegation well enough. Can you elaborate on the potential
>> problems?
>>
> My point is that delegations are
>
> a) not a lock.
> b) only practical for a subset of applications.
>
> Your colleagues in the database branch can't use them, for instance, so they wouldn't be able to use a server with labeled nfs at all. All database reads would have to check the label _before_ copying the data into the user buffer (no O_DIRECT) and writes would not be possible at all (you're not caching a label).
>
> In addition, directories only have read delegations, so operations like CREATE that change the directory would be out of the question.
>
> IOW: Delegations are no option if you really want to protect all operations.

Thanks for the elaboration. Labeled NFS does not mandate or depend on 
delegation. If some apps can't use NFS, addling labeled NFS won't change 
that. If apps can use NFS but not delegation, they should be able to use 
labeled NFS without delegation. I'm also with you on that delegation is 
not a protection mechanism. On the other hand, when delegation is 
applicable, it needs to take label into consideration and preserve 
labeling semantics. For example, client cached data needs to be flushed 
back to server when a file label is changed. That's scenario (2) in 
Tom's earlier email.

>
> The point of the change attribute was to allow the client to use VERIFY to check that the label is still unchanged before attempting a subsequent protected operation (like READ, WRITE, OPEN, CREATE,...). Maybe we can replace that with a VERIFY of the sec_label attribute itself, but the current spec assumes that there can be a large array of label data per sec_label, which would appear to make that option impractical (it will impose a ridiculously high burden on the client and server, and so can't scale).

I see this as a trade off between (1) paying a small cost to verify 
label has not changed for every protected operation (very frequent), and 
(2) paying no cost when label does not change and incur a bigger cost 
when label does change (very rare). I believe (2) is easier to implement 
and require less protocol extensions.

As for the attribute size, typical usage is a single, small label. But 
we tend to design for "future"....

- Jarrett

>
> Trond


From bfields@fieldses.org  Thu Jan 24 12:14:08 2013
Return-Path: <bfields@fieldses.org>
X-Original-To: nfsv4@ietfa.amsl.com
Delivered-To: nfsv4@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id CF85821F85DA for <nfsv4@ietfa.amsl.com>; Thu, 24 Jan 2013 12:14:08 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.413
X-Spam-Level: 
X-Spam-Status: No, score=-2.413 tagged_above=-999 required=5 tests=[AWL=0.186,  BAYES_00=-2.599]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id K4AWst5tvJMF for <nfsv4@ietfa.amsl.com>; Thu, 24 Jan 2013 12:14:07 -0800 (PST)
Received: from fieldses.org (fieldses.org [174.143.236.118]) by ietfa.amsl.com (Postfix) with ESMTP id 4C8C521F84C5 for <nfsv4@ietf.org>; Thu, 24 Jan 2013 12:14:07 -0800 (PST)
Received: from bfields by fieldses.org with local (Exim 4.76) (envelope-from <bfields@fieldses.org>) id 1TyTBV-0004x3-17; Thu, 24 Jan 2013 15:14:05 -0500
Date: Thu, 24 Jan 2013 15:14:04 -0500
From: "J. Bruce Fields" <bfields@fieldses.org>
To: Jarrett Lu <jarrett.lu@oracle.com>
Message-ID: <20130124201404.GH6565@fieldses.org>
References: <D54C745FA96F75489B58FCBD8956AE8F18E4A2C6@sacexcmbx05-prd.hq.netapp.com> <51004A28.7010303@oracle.com> <5DEA8DB993B81040A21CF3CB332489F60425A5AFAA@MX31A.corp.emc.com> <51006830.4030400@oracle.com> <D54C745FA96F75489B58FCBD8956AE8F18E4C840@sacexcmbx05-prd.hq.netapp.com> <510174E1.1000905@oracle.com> <4FA345DA4F4AE44899BD2B03EEEC2FA91833761A@sacexcmbx05-prd.hq.netapp.com> <51017B2B.30509@oracle.com> <4FA345DA4F4AE44899BD2B03EEEC2FA9183376AA@sacexcmbx05-prd.hq.netapp.com> <51018E27.8050404@oracle.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <51018E27.8050404@oracle.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
Cc: "Haynes, Tom" <Tom.Haynes@netapp.com>, "Myklebust, Trond" <Trond.Myklebust@netapp.com>, nfsv4 list <nfsv4@ietf.org>
Subject: Re: [nfsv4] make change_sec_label optional
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/nfsv4>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 24 Jan 2013 20:14:09 -0000

On Thu, Jan 24, 2013 at 11:40:23AM -0800, Jarrett Lu wrote:
> On 01/24/13 10:28 AM, Myklebust, Trond wrote:
> >The point of the change attribute was to allow the client to use VERIFY to check that the label is still unchanged before attempting a subsequent protected operation (like READ, WRITE, OPEN, CREATE,...). Maybe we can replace that with a VERIFY of the sec_label attribute itself, but the current spec assumes that there can be a large array of label data per sec_label, which would appear to make that option impractical (it will impose a ridiculously high burden on the client and server, and so can't scale).
> 
> I see this as a trade off between (1) paying a small cost to verify
> label has not changed for every protected operation (very frequent),
> and (2) paying no cost when label does not change

If you're talking about delegations here--that's not true, there's a
cost to delegations even in the absence of label changes.

But I've lost the thread of the discussion.  We seem to be re-opening
the question of how to inform clients about label changes.  All the
possibilities that raised on this thread (callbacks, filehandle
revocation) have been discussed here before.

My only question is whether we can make change_sec_label optional.

The proposed Linux client implementation doesn't query change_sec_label,
because it just doesn't worry much about label changes, as far as I can
tell.  The effort of informing clients is wasted if they don't use the
information.

As I understand it we've already accepted that there are legitimate uses
of labelled NFS that don't require race-free notification of label
changes.  (If the server doesn't enforce, then even the VERIFY trick
doesn't close the check label/change label/do operation race.)

--b.

> and incur a bigger
> cost when label does change (very rare). I believe (2) is easier to
> implement and require less protocol extensions.
> 
> As for the attribute size, typical usage is a single, small label.
> But we tend to design for "future"....
> 
> - Jarrett
> 
> >
> >Trond
> 

From Tom.Haynes@netapp.com  Thu Jan 24 12:39:59 2013
Return-Path: <Tom.Haynes@netapp.com>
X-Original-To: nfsv4@ietfa.amsl.com
Delivered-To: nfsv4@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 9031811E80A3 for <nfsv4@ietfa.amsl.com>; Thu, 24 Jan 2013 12:39:59 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level: 
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ckZ8B4HS-xHB for <nfsv4@ietfa.amsl.com>; Thu, 24 Jan 2013 12:39:59 -0800 (PST)
Received: from mx12.netapp.com (mx12.netapp.com [216.240.18.77]) by ietfa.amsl.com (Postfix) with ESMTP id 0D9C411E809A for <nfsv4@ietf.org>; Thu, 24 Jan 2013 12:39:58 -0800 (PST)
X-IronPort-AV: E=Sophos;i="4.84,532,1355126400"; d="scan'208";a="11388782"
Received: from smtp1.corp.netapp.com ([10.57.156.124]) by mx12-out.netapp.com with ESMTP; 24 Jan 2013 12:39:58 -0800
Received: from vmwexceht03-prd.hq.netapp.com (vmwexceht03-prd.hq.netapp.com [10.106.76.241]) by smtp1.corp.netapp.com (8.13.1/8.13.1/NTAP-1.6) with ESMTP id r0OKdweP004170; Thu, 24 Jan 2013 12:39:58 -0800 (PST)
Received: from SACEXCMBX05-PRD.hq.netapp.com ([169.254.9.231]) by vmwexceht03-prd.hq.netapp.com ([10.106.76.241]) with mapi id 14.02.0328.009; Thu, 24 Jan 2013 12:39:57 -0800
From: "Haynes, Tom" <Tom.Haynes@netapp.com>
To: "J. Bruce Fields" <bfields@fieldses.org>
Thread-Topic: [nfsv4] make change_sec_label optional
Thread-Index: AQHN+OzDZuNcdNHt40Obo16UaCV8iphW0YCAgAD1RwCAAAHwAIAACJ6AgAAFQ4CAABC7AIAAGTWAgAAKmACAACdugIABGOCAgAABF4CAAAZpgIAAApuAgAAUBoCAAAlpAIAABzsA
Date: Thu, 24 Jan 2013 20:39:57 +0000
Message-ID: <D54C745FA96F75489B58FCBD8956AE8F18E56B4E@sacexcmbx05-prd.hq.netapp.com>
References: <D54C745FA96F75489B58FCBD8956AE8F18E4A2C6@sacexcmbx05-prd.hq.netapp.com> <51004A28.7010303@oracle.com> <5DEA8DB993B81040A21CF3CB332489F60425A5AFAA@MX31A.corp.emc.com> <51006830.4030400@oracle.com> <D54C745FA96F75489B58FCBD8956AE8F18E4C840@sacexcmbx05-prd.hq.netapp.com> <510174E1.1000905@oracle.com> <4FA345DA4F4AE44899BD2B03EEEC2FA91833761A@sacexcmbx05-prd.hq.netapp.com> <51017B2B.30509@oracle.com> <4FA345DA4F4AE44899BD2B03EEEC2FA9183376AA@sacexcmbx05-prd.hq.netapp.com> <51018E27.8050404@oracle.com> <20130124201404.GH6565@fieldses.org>
In-Reply-To: <20130124201404.GH6565@fieldses.org>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [10.106.53.51]
Content-Type: text/plain; charset="us-ascii"
Content-ID: <A06DF2FEAA29804996817C3ED45A02E0@tahoe.netapp.com>
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Cc: "Myklebust, Trond" <Trond.Myklebust@netapp.com>, nfsv4 list <nfsv4@ietf.org>
Subject: Re: [nfsv4] make change_sec_label optional
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/nfsv4>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 24 Jan 2013 20:39:59 -0000

On Jan 24, 2013, at 2:14 PM, J. Bruce Fields <bfields@fieldses.org> wrote:

> On Thu, Jan 24, 2013 at 11:40:23AM -0800, Jarrett Lu wrote:
>> On 01/24/13 10:28 AM, Myklebust, Trond wrote:
>>> The point of the change attribute was to allow the client to use VERIFY=
 to check that the label is still unchanged before attempting a subsequent =
protected operation (like READ, WRITE, OPEN, CREATE,...). Maybe we can repl=
ace that with a VERIFY of the sec_label attribute itself, but the current s=
pec assumes that there can be a large array of label data per sec_label, wh=
ich would appear to make that option impractical (it will impose a ridiculo=
usly high burden on the client and server, and so can't scale).
>>=20
>> I see this as a trade off between (1) paying a small cost to verify
>> label has not changed for every protected operation (very frequent),
>> and (2) paying no cost when label does not change
>=20
> If you're talking about delegations here--that's not true, there's a
> cost to delegations even in the absence of label changes.
>=20
> But I've lost the thread of the discussion.  We seem to be re-opening
> the question of how to inform clients about label changes.  All the
> possibilities that raised on this thread (callbacks, filehandle
> revocation) have been discussed here before.
>=20
> My only question is whether we can make change_sec_label optional.
>=20
> The proposed Linux client implementation doesn't query change_sec_label,
> because it just doesn't worry much about label changes, as far as I can
> tell.  The effort of informing clients is wasted if they don't use the
> information.

Here is my contention with this - the push to make the change comes
from one implementation for a specific use case. Quiqley has indicated
that might solely be an artifact of developing against an older version of
the spec.

If the change_sec_label an optional attribute, then at what level is it opt=
ional?

The file?
The filesystem?
The server?

I.e., if the client asks once for the change_sec_label and is told it is no=
t
set for the current object, can it make any assumptions about whether it
needs to ask for it again?



>=20
> As I understand it we've already accepted that there are legitimate uses
> of labelled NFS that don't require race-free notification of label
> changes. =20


Have we?


> (If the server doesn't enforce, then even the VERIFY trick
> doesn't close the check label/change label/do operation race.)
>=20
> --b.
>=20
>> and incur a bigger
>> cost when label does change (very rare). I believe (2) is easier to
>> implement and require less protocol extensions.
>>=20
>> As for the attribute size, typical usage is a single, small label.
>> But we tend to design for "future"....
>>=20
>> - Jarrett
>>=20
>>>=20
>>> Trond
>>=20


From nico@cryptonector.com  Thu Jan 24 12:56:16 2013
Return-Path: <nico@cryptonector.com>
X-Original-To: nfsv4@ietfa.amsl.com
Delivered-To: nfsv4@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 30BDD1F0CDF for <nfsv4@ietfa.amsl.com>; Thu, 24 Jan 2013 12:56:16 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.296
X-Spam-Level: 
X-Spam-Status: No, score=-3.296 tagged_above=-999 required=5 tests=[AWL=-1.319, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XCTvjYf8xpGL for <nfsv4@ietfa.amsl.com>; Thu, 24 Jan 2013 12:56:15 -0800 (PST)
Received: from homiemail-a98.g.dreamhost.com (caiajhbdccac.dreamhost.com [208.97.132.202]) by ietfa.amsl.com (Postfix) with ESMTP id 91F9021F8540 for <nfsv4@ietf.org>; Thu, 24 Jan 2013 12:56:15 -0800 (PST)
Received: from homiemail-a98.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a98.g.dreamhost.com (Postfix) with ESMTP id 260342C24D5 for <nfsv4@ietf.org>; Thu, 24 Jan 2013 12:33:42 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=cryptonector.com; h= mime-version:in-reply-to:references:date:message-id:subject:from :to:cc:content-type:content-transfer-encoding; s= cryptonector.com; bh=hDSZCMNaMvwrWBnqZZei7trYGLc=; b=tQplQ98JK9q LChZQt3ukgsi+YB0zfOd8OBE+tE9WQx4RHvoI1EANt5glPNwRkSBUBC3CYQgsC9J 286aduN1J5sR4Ngn2cUIQ9cupEl2S9jUMObY7WQvK/U467MYn2wzhKIw0rzzrbaY ePBgElnA6YzQ5SLtr4CUeW5A9DKFIh8E=
Received: from mail-wg0-f48.google.com (mail-wg0-f48.google.com [74.125.82.48]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: nico@cryptonector.com) by homiemail-a98.g.dreamhost.com (Postfix) with ESMTPSA id BB5312C29B3 for <nfsv4@ietf.org>; Thu, 24 Jan 2013 11:27:46 -0800 (PST)
Received: by mail-wg0-f48.google.com with SMTP id 16so2802354wgi.3 for <nfsv4@ietf.org>; Thu, 24 Jan 2013 11:27:44 -0800 (PST)
MIME-Version: 1.0
X-Received: by 10.180.99.227 with SMTP id et3mr5017554wib.6.1359055664302; Thu, 24 Jan 2013 11:27:44 -0800 (PST)
Received: by 10.217.39.133 with HTTP; Thu, 24 Jan 2013 11:27:44 -0800 (PST)
In-Reply-To: <D54C745FA96F75489B58FCBD8956AE8F18E4C840@sacexcmbx05-prd.hq.netapp.com>
References: <20130122220619.GA14617@fieldses.org> <D54C745FA96F75489B58FCBD8956AE8F18E3CD2A@sacexcmbx05-prd.hq.netapp.com> <51002EDA.6030106@oracle.com> <4FA345DA4F4AE44899BD2B03EEEC2FA9183334FB@sacexcmbx05-prd.hq.netapp.com> <510037B5.6050909@oracle.com> <D54C745FA96F75489B58FCBD8956AE8F18E4A2C6@sacexcmbx05-prd.hq.netapp.com> <51004A28.7010303@oracle.com> <5DEA8DB993B81040A21CF3CB332489F60425A5AFAA@MX31A.corp.emc.com> <51006830.4030400@oracle.com> <D54C745FA96F75489B58FCBD8956AE8F18E4C840@sacexcmbx05-prd.hq.netapp.com>
Date: Thu, 24 Jan 2013 13:27:44 -0600
Message-ID: <CAK3OfOji_NaP5yoBm2RPqT8YXRCGxAw4+V+h-RYx-NaD_mDcJg@mail.gmail.com>
From: Nico Williams <nico@cryptonector.com>
To: "Haynes, Tom" <Tom.Haynes@netapp.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Cc: "J. Bruce Fields" <bfields@fieldses.org>, "Myklebust, Trond" <Trond.Myklebust@netapp.com>, nfsv4 list <nfsv4@ietf.org>
Subject: Re: [nfsv4] make change_sec_label optional
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/nfsv4>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 24 Jan 2013 20:56:16 -0000

On Wed, Jan 23, 2013 at 7:07 PM, Haynes, Tom <Tom.Haynes@netapp.com> wrote:
> On Jan 23, 2013, at 4:46 PM, Jarrett Lu <jarrett.lu@oracle.com> wrote:
>> It may not need to be remount. If client's file handle can be made stale=
 as a result of label change, that's probably sufficient. In this case the =
client needs to reopen the file object. What's important is that clients do=
n't miss out on a label change event. On Solaris, I believe the client gets=
 an EACCES error if file label is changed mid-stream. That will stop inform=
ation flow right away but may not be the right error semantics as applicati=
ons may not expect or be able to handle that error in the middle of reading=
 a file.
>>
>
> Applications have to be able to deal with that already - an admin may cha=
nge export permissions at any point.

Ah, right.  Also NFSv3 servers re-check permissions on every READ and
WRITE -- statelessness leaves the server no choice.  NFSv4 servers
with stateless clients have to do the same.

That reminds me of the perennial revoke(2) discussion, that always
seems to fail to progress in Linux-land.  The BSD revoke(2) system
call was originally intended (and, I think, to this still is only for)
revoking access to ptys/ttys, but clearly it'd be useful to have
something like it for plain files as well.

One might want to be able to change DAC and/or MAC permissions and
possibly *separately* explicitly revoke access by subjects that are no
longer permitted by the new policy, or even revoke access by all
subjects that were accessing the object statefully (this last is
difficult to manage in distributed filesystems).  This would require a
revoke operation in the NFSv4 protocol.  Of course, it's easier to
stick to implicit revocation.

Nico
--

From bfields@fieldses.org  Thu Jan 24 13:03:21 2013
Return-Path: <bfields@fieldses.org>
X-Original-To: nfsv4@ietfa.amsl.com
Delivered-To: nfsv4@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6335F21F84D5 for <nfsv4@ietfa.amsl.com>; Thu, 24 Jan 2013 13:03:21 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.444
X-Spam-Level: 
X-Spam-Status: No, score=-2.444 tagged_above=-999 required=5 tests=[AWL=0.155,  BAYES_00=-2.599]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BrMRjvTe-uQ5 for <nfsv4@ietfa.amsl.com>; Thu, 24 Jan 2013 13:03:21 -0800 (PST)
Received: from fieldses.org (fieldses.org [174.143.236.118]) by ietfa.amsl.com (Postfix) with ESMTP id E743C21F84CA for <nfsv4@ietf.org>; Thu, 24 Jan 2013 13:03:20 -0800 (PST)
Received: from bfields by fieldses.org with local (Exim 4.76) (envelope-from <bfields@fieldses.org>) id 1TyTx8-0005Lq-GE; Thu, 24 Jan 2013 16:03:18 -0500
Date: Thu, 24 Jan 2013 16:03:18 -0500
From: "J. Bruce Fields" <bfields@fieldses.org>
To: "Haynes, Tom" <Tom.Haynes@netapp.com>
Message-ID: <20130124210318.GK6565@fieldses.org>
References: <5DEA8DB993B81040A21CF3CB332489F60425A5AFAA@MX31A.corp.emc.com> <51006830.4030400@oracle.com> <D54C745FA96F75489B58FCBD8956AE8F18E4C840@sacexcmbx05-prd.hq.netapp.com> <510174E1.1000905@oracle.com> <4FA345DA4F4AE44899BD2B03EEEC2FA91833761A@sacexcmbx05-prd.hq.netapp.com> <51017B2B.30509@oracle.com> <4FA345DA4F4AE44899BD2B03EEEC2FA9183376AA@sacexcmbx05-prd.hq.netapp.com> <51018E27.8050404@oracle.com> <20130124201404.GH6565@fieldses.org> <D54C745FA96F75489B58FCBD8956AE8F18E56B4E@sacexcmbx05-prd.hq.netapp.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <D54C745FA96F75489B58FCBD8956AE8F18E56B4E@sacexcmbx05-prd.hq.netapp.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
Cc: "Myklebust, Trond" <Trond.Myklebust@netapp.com>, nfsv4 list <nfsv4@ietf.org>
Subject: Re: [nfsv4] make change_sec_label optional
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/nfsv4>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 24 Jan 2013 21:03:21 -0000

On Thu, Jan 24, 2013 at 08:39:57PM +0000, Haynes, Tom wrote:
> On Jan 24, 2013, at 2:14 PM, J. Bruce Fields <bfields@fieldses.org> wrote:
> > The proposed Linux client implementation doesn't query change_sec_label,
> > because it just doesn't worry much about label changes, as far as I can
> > tell.  The effort of informing clients is wasted if they don't use the
> > information.
> 
> Here is my contention with this - the push to make the change comes
> from one implementation for a specific use case. Quiqley has indicated
> that might solely be an artifact of developing against an older version of
> the spec.

OK, maybe I misunderstood.

> If the change_sec_label an optional attribute, then at what level is it optional?
> 
> The file?
> The filesystem?
> The server?
> 
> I.e., if the client asks once for the change_sec_label and is told it is not
> set for the current object, can it make any assumptions about whether it
> needs to ask for it again?

Yes, it's per-filesystem.

(The supported_attrs attribute is per-filesystem, and the getattr
description says:

	The server MUST return a value for each attribute that the
	client requests if the attribute is supported by the server for
	the target file system.  If the server does not support a
	particular attribute on the target file system, then it MUST NOT
	return the attribute value and MUST NOT set the attribute bit in
	the result bitmap. 

So, file-by-file support for particular attributes.)

> > As I understand it we've already accepted that there are legitimate uses
> > of labelled NFS that don't require race-free notification of label
> > changes.  
> 
> 
> Have we?

As I said:

> > (If the server doesn't enforce, then even the VERIFY trick
> > doesn't close the check label/change label/do operation race.)

If we've decided to allow that, then we're OK with at least some race
window.

And from David Quigley's followup, it sounds like they don't need
immediate notification for their case.

--b.

From jarrett.lu@oracle.com  Thu Jan 24 13:09:27 2013
Return-Path: <jarrett.lu@oracle.com>
X-Original-To: nfsv4@ietfa.amsl.com
Delivered-To: nfsv4@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id AD3561F0CAF for <nfsv4@ietfa.amsl.com>; Thu, 24 Jan 2013 13:09:27 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.599
X-Spam-Level: 
X-Spam-Status: No, score=-6.599 tagged_above=-999 required=5 tests=[AWL=-0.001, BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-4]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jAznFbxiGmM6 for <nfsv4@ietfa.amsl.com>; Thu, 24 Jan 2013 13:09:27 -0800 (PST)
Received: from aserp1040.oracle.com (aserp1040.oracle.com [141.146.126.69]) by ietfa.amsl.com (Postfix) with ESMTP id 848B721F8584 for <nfsv4@ietf.org>; Thu, 24 Jan 2013 13:09:26 -0800 (PST)
Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by aserp1040.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id r0OL9IxD018632 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 24 Jan 2013 21:09:19 GMT
Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r0OL9H4H022091 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 24 Jan 2013 21:09:17 GMT
Received: from abhmt117.oracle.com (abhmt117.oracle.com [141.146.116.69]) by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id r0OL9Hgl030136; Thu, 24 Jan 2013 15:09:17 -0600
Received: from [10.132.148.74] (/10.132.148.74) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 24 Jan 2013 13:09:17 -0800
Message-ID: <5101A4C8.8010000@oracle.com>
Date: Thu, 24 Jan 2013 13:16:56 -0800
From: Jarrett Lu <jarrett.lu@oracle.com>
User-Agent: Mozilla/5.0 (X11; SunOS i86pc; rv:10.0.7) Gecko/20120926 Thunderbird/10.0.7
MIME-Version: 1.0
To: "J. Bruce Fields" <bfields@fieldses.org>
References: <D54C745FA96F75489B58FCBD8956AE8F18E4A2C6@sacexcmbx05-prd.hq.netapp.com> <51004A28.7010303@oracle.com> <5DEA8DB993B81040A21CF3CB332489F60425A5AFAA@MX31A.corp.emc.com> <51006830.4030400@oracle.com> <D54C745FA96F75489B58FCBD8956AE8F18E4C840@sacexcmbx05-prd.hq.netapp.com> <510174E1.1000905@oracle.com> <4FA345DA4F4AE44899BD2B03EEEC2FA91833761A@sacexcmbx05-prd.hq.netapp.com> <51017B2B.30509@oracle.com> <4FA345DA4F4AE44899BD2B03EEEC2FA9183376AA@sacexcmbx05-prd.hq.netapp.com> <51018E27.8050404@oracle.com> <20130124201404.GH6565@fieldses.org>
In-Reply-To: <20130124201404.GH6565@fieldses.org>
Content-Type: multipart/alternative; boundary="------------090501090804090408000502"
X-Source-IP: acsinet21.oracle.com [141.146.126.237]
Cc: "Haynes, Tom" <Tom.Haynes@netapp.com>, "Myklebust, Trond" <Trond.Myklebust@netapp.com>, nfsv4 list <nfsv4@ietf.org>
Subject: Re: [nfsv4] make change_sec_label optional
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: jarrett.lu@oracle.com
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/nfsv4>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 24 Jan 2013 21:09:27 -0000

This is a multi-part message in MIME format.
--------------090501090804090408000502
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

On 01/24/13 12:14 PM, J. Bruce Fields wrote:
> On Thu, Jan 24, 2013 at 11:40:23AM -0800, Jarrett Lu wrote:
>> On 01/24/13 10:28 AM, Myklebust, Trond wrote:
>>> The point of the change attribute was to allow the client to use VERIFY to check that the label is still unchanged before attempting a subsequent protected operation (like READ, WRITE, OPEN, CREATE,...). Maybe we can replace that with a VERIFY of the sec_label attribute itself, but the current spec assumes that there can be a large array of label data per sec_label, which would appear to make that option impractical (it will impose a ridiculously high burden on the client and server, and so can't scale).
>> I see this as a trade off between (1) paying a small cost to verify
>> label has not changed for every protected operation (very frequent),
>> and (2) paying no cost when label does not change
> If you're talking about delegations here--that's not true, there's a
> cost to delegations even in the absence of label changes.

Let me clarify: I didn't mean to say delegation is cost free. I was 
suggesting to use delegation recall as a way of notifying client that 
label has changed *when delegation is already in use*. In current spec, 
server already needs to recall delegation due to label change in some 
cases. I merely expanded its usage. I contrasted that with the 
"verifying change_sec_label attribute on every protected operation" 
approach. Not having to verify label change on fast path ops is 
desirable. When delegation is not in use, clients will have to contact 
server for every op and will get the current label value.

>
> But I've lost the thread of the discussion.  We seem to be re-opening
> the question of how to inform clients about label changes.  All the
> possibilities that raised on this thread (callbacks, filehandle
> revocation) have been discussed here before.

Sorry if I reopened settled issues. With Tom's use case for 
change_sec_label, I revisited its usefulness.

>
> My only question is whether we can make change_sec_label optional.

I think it can be make optional. I'm exploring whether this attr can be 
removed so that implementers won't even have to worry about it.

>
> The proposed Linux client implementation doesn't query change_sec_label,
> because it just doesn't worry much about label changes, as far as I can
> tell.  The effort of informing clients is wasted if they don't use the
> information.
>
> As I understand it we've already accepted that there are legitimate uses
> of labelled NFS that don't require race-free notification of label
> changes.  (If the server doesn't enforce, then even the VERIFY trick
> doesn't close the check label/change label/do operation race.)

We are not aiming to solve race problem. But it'd be wrong if clients 
are unaware of label change and continue to treat the object at the old 
label.

- Jarrett

>
> --b.
>
>> and incur a bigger
>> cost when label does change (very rare). I believe (2) is easier to
>> implement and require less protocol extensions.
>>
>> As for the attribute size, typical usage is a single, small label.
>> But we tend to design for "future"....
>>
>> - Jarrett
>>
>>> Trond


--------------090501090804090408000502
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    On 01/24/13 12:14 PM, J. Bruce Fields wrote:
    <blockquote cite="mid:20130124201404.GH6565@fieldses.org"
      type="cite">
      <pre wrap="">On Thu, Jan 24, 2013 at 11:40:23AM -0800, Jarrett Lu wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">On 01/24/13 10:28 AM, Myklebust, Trond wrote:
</pre>
        <blockquote type="cite">
          <pre wrap="">The point of the change attribute was to allow the client to use VERIFY to check that the label is still unchanged before attempting a subsequent protected operation (like READ, WRITE, OPEN, CREATE,...). Maybe we can replace that with a VERIFY of the sec_label attribute itself, but the current spec assumes that there can be a large array of label data per sec_label, which would appear to make that option impractical (it will impose a ridiculously high burden on the client and server, and so can't scale).
</pre>
        </blockquote>
        <pre wrap="">
I see this as a trade off between (1) paying a small cost to verify
label has not changed for every protected operation (very frequent),
and (2) paying no cost when label does not change
</pre>
      </blockquote>
      <pre wrap="">
If you're talking about delegations here--that's not true, there's a
cost to delegations even in the absence of label changes.</pre>
    </blockquote>
    <br>
    Let me clarify: I didn't mean to say delegation is cost free. I was
    suggesting to use delegation recall as a way of notifying client
    that label has changed <b>when delegation is already in use</b>. In
    current spec, server already needs to recall delegation due to label
    change in some cases. I merely expanded its usage. I contrasted that
    with the "verifying change_sec_label attribute on every protected
    operation" approach. Not having to verify label change on fast path
    ops is desirable. When delegation is not in use, clients will have
    to contact server for every op and will get the current label value.<br>
    <br>
    <blockquote cite="mid:20130124201404.GH6565@fieldses.org"
      type="cite">
      <pre wrap="">

But I've lost the thread of the discussion.  We seem to be re-opening
the question of how to inform clients about label changes.  All the
possibilities that raised on this thread (callbacks, filehandle
revocation) have been discussed here before.</pre>
    </blockquote>
    <br>
    Sorry if I reopened settled issues. With Tom's use case for
    change_sec_label, I revisited its usefulness.<br>
    <br>
    <blockquote cite="mid:20130124201404.GH6565@fieldses.org"
      type="cite">
      <pre wrap="">

My only question is whether we can make change_sec_label optional.</pre>
    </blockquote>
    <br>
    I think it can be make optional. I'm exploring whether this attr can
    be removed so that implementers won't even have to worry about it.<br>
    <br>
    <blockquote cite="mid:20130124201404.GH6565@fieldses.org"
      type="cite">
      <pre wrap="">

The proposed Linux client implementation doesn't query change_sec_label,
because it just doesn't worry much about label changes, as far as I can
tell.  The effort of informing clients is wasted if they don't use the
information.

As I understand it we've already accepted that there are legitimate uses
of labelled NFS that don't require race-free notification of label
changes.  (If the server doesn't enforce, then even the VERIFY trick
doesn't close the check label/change label/do operation race.)</pre>
    </blockquote>
    <br>
    We are not aiming to solve race problem. But it'd be wrong if
    clients are unaware of label change and continue to treat the object
    at the old label.<br>
    <br>
    - Jarrett<br>
    <br>
    <blockquote cite="mid:20130124201404.GH6565@fieldses.org"
      type="cite">
      <pre wrap="">

--b.

</pre>
      <blockquote type="cite">
        <pre wrap="">and incur a bigger
cost when label does change (very rare). I believe (2) is easier to
implement and require less protocol extensions.

As for the attribute size, typical usage is a single, small label.
But we tend to design for "future"....

- Jarrett

</pre>
        <blockquote type="cite">
          <pre wrap="">
Trond
</pre>
        </blockquote>
        <pre wrap="">
</pre>
      </blockquote>
    </blockquote>
    <br>
  </body>
</html>

--------------090501090804090408000502--

From bfields@fieldses.org  Thu Jan 24 13:32:13 2013
Return-Path: <bfields@fieldses.org>
X-Original-To: nfsv4@ietfa.amsl.com
Delivered-To: nfsv4@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A1B2111E80BF for <nfsv4@ietfa.amsl.com>; Thu, 24 Jan 2013 13:32:13 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.466
X-Spam-Level: 
X-Spam-Status: No, score=-2.466 tagged_above=-999 required=5 tests=[AWL=0.133,  BAYES_00=-2.599]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sHQVhYtv89Ue for <nfsv4@ietfa.amsl.com>; Thu, 24 Jan 2013 13:32:13 -0800 (PST)
Received: from fieldses.org (fieldses.org [174.143.236.118]) by ietfa.amsl.com (Postfix) with ESMTP id C8B9111E8099 for <nfsv4@ietf.org>; Thu, 24 Jan 2013 13:32:12 -0800 (PST)
Received: from bfields by fieldses.org with local (Exim 4.76) (envelope-from <bfields@fieldses.org>) id 1TyUP2-0005WD-0f; Thu, 24 Jan 2013 16:32:08 -0500
Date: Thu, 24 Jan 2013 16:32:07 -0500
From: "J. Bruce Fields" <bfields@fieldses.org>
To: "Haynes, Tom" <Tom.Haynes@netapp.com>
Message-ID: <20130124213207.GL6565@fieldses.org>
References: <51006830.4030400@oracle.com> <D54C745FA96F75489B58FCBD8956AE8F18E4C840@sacexcmbx05-prd.hq.netapp.com> <510174E1.1000905@oracle.com> <4FA345DA4F4AE44899BD2B03EEEC2FA91833761A@sacexcmbx05-prd.hq.netapp.com> <51017B2B.30509@oracle.com> <4FA345DA4F4AE44899BD2B03EEEC2FA9183376AA@sacexcmbx05-prd.hq.netapp.com> <51018E27.8050404@oracle.com> <20130124201404.GH6565@fieldses.org> <D54C745FA96F75489B58FCBD8956AE8F18E56B4E@sacexcmbx05-prd.hq.netapp.com> <20130124210318.GK6565@fieldses.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20130124210318.GK6565@fieldses.org>
User-Agent: Mutt/1.5.21 (2010-09-15)
Cc: "Myklebust, Trond" <Trond.Myklebust@netapp.com>, nfsv4 list <nfsv4@ietf.org>
Subject: Re: [nfsv4] make change_sec_label optional
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/nfsv4>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 24 Jan 2013 21:32:13 -0000

On Thu, Jan 24, 2013 at 04:03:18PM -0500, J. Bruce Fields wrote:
> On Thu, Jan 24, 2013 at 08:39:57PM +0000, Haynes, Tom wrote:
> > On Jan 24, 2013, at 2:14 PM, J. Bruce Fields <bfields@fieldses.org> wrote:
> > > The proposed Linux client implementation doesn't query change_sec_label,
> > > because it just doesn't worry much about label changes, as far as I can
> > > tell.  The effort of informing clients is wasted if they don't use the
> > > information.
> > 
> > Here is my contention with this - the push to make the change comes
> > from one implementation for a specific use case. Quiqley has indicated
> > that might solely be an artifact of developing against an older version of
> > the spec.
> 
> OK, maybe I misunderstood.
> 
> > If the change_sec_label an optional attribute, then at what level is it optional?
> > 
> > The file?
> > The filesystem?
> > The server?
> > 
> > I.e., if the client asks once for the change_sec_label and is told it is not
> > set for the current object, can it make any assumptions about whether it
> > needs to ask for it again?
> 
> Yes, it's per-filesystem.
> 
> (The supported_attrs attribute is per-filesystem, and the getattr
> description says:
> 
> 	The server MUST return a value for each attribute that the
> 	client requests if the attribute is supported by the server for
> 	the target file system.  If the server does not support a
> 	particular attribute on the target file system, then it MUST NOT
> 	return the attribute value and MUST NOT set the attribute bit in
> 	the result bitmap. 
> 
> So, file-by-file support for particular attributes.)

Uh, there was supposed to be a "no" somewhere in that last line.  You
knew what I meant!

--b.

From jarrett.lu@oracle.com  Thu Jan 24 13:43:13 2013
Return-Path: <jarrett.lu@oracle.com>
X-Original-To: nfsv4@ietfa.amsl.com
Delivered-To: nfsv4@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 67F701F0CF6 for <nfsv4@ietfa.amsl.com>; Thu, 24 Jan 2013 13:43:13 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.599
X-Spam-Level: 
X-Spam-Status: No, score=-6.599 tagged_above=-999 required=5 tests=[AWL=0.000,  BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PQZXKL801WkC for <nfsv4@ietfa.amsl.com>; Thu, 24 Jan 2013 13:43:12 -0800 (PST)
Received: from aserp1040.oracle.com (aserp1040.oracle.com [141.146.126.69]) by ietfa.amsl.com (Postfix) with ESMTP id AC5E321F857D for <nfsv4@ietf.org>; Thu, 24 Jan 2013 13:43:12 -0800 (PST)
Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by aserp1040.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id r0OLgt7W018955 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 24 Jan 2013 21:42:56 GMT
Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r0OLgtNs002270 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 24 Jan 2013 21:42:55 GMT
Received: from abhmt116.oracle.com (abhmt116.oracle.com [141.146.116.68]) by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id r0OLgt5c025632; Thu, 24 Jan 2013 15:42:55 -0600
Received: from [10.132.148.74] (/10.132.148.74) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 24 Jan 2013 13:42:54 -0800
Message-ID: <5101ACB4.1090809@oracle.com>
Date: Thu, 24 Jan 2013 13:50:44 -0800
From: Jarrett Lu <jarrett.lu@oracle.com>
User-Agent: Mozilla/5.0 (X11; SunOS i86pc; rv:10.0.7) Gecko/20120926 Thunderbird/10.0.7
MIME-Version: 1.0
To: "Haynes, Tom" <Tom.Haynes@netapp.com>
References: <D54C745FA96F75489B58FCBD8956AE8F18E4A2C6@sacexcmbx05-prd.hq.netapp.com> <51004A28.7010303@oracle.com> <5DEA8DB993B81040A21CF3CB332489F60425A5AFAA@MX31A.corp.emc.com> <51006830.4030400@oracle.com> <D54C745FA96F75489B58FCBD8956AE8F18E4C840@sacexcmbx05-prd.hq.netapp.com> <510174E1.1000905@oracle.com> <4FA345DA4F4AE44899BD2B03EEEC2FA91833761A@sacexcmbx05-prd.hq.netapp.com> <51017B2B.30509@oracle.com> <4FA345DA4F4AE44899BD2B03EEEC2FA9183376AA@sacexcmbx05-prd.hq.netapp.com> <51018E27.8050404@oracle.com> <20130124201404.GH6565@fieldses.org> <D54C745FA96F75489B58FCBD8956AE8F18E56B4E@sacexcmbx05-prd.hq.netapp.com>
In-Reply-To: <D54C745FA96F75489B58FCBD8956AE8F18E56B4E@sacexcmbx05-prd.hq.netapp.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Source-IP: acsinet22.oracle.com [141.146.126.238]
Cc: "J. Bruce Fields" <bfields@fieldses.org>, "Myklebust, Trond" <Trond.Myklebust@netapp.com>, nfsv4 list <nfsv4@ietf.org>
Subject: Re: [nfsv4] make change_sec_label optional
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: jarrett.lu@oracle.com
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/nfsv4>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 24 Jan 2013 21:43:13 -0000

On 01/24/13 12:39 PM, Haynes, Tom wrote:
> On Jan 24, 2013, at 2:14 PM, J. Bruce Fields<bfields@fieldses.org>  wrote:
>
>> On Thu, Jan 24, 2013 at 11:40:23AM -0800, Jarrett Lu wrote:
>>> On 01/24/13 10:28 AM, Myklebust, Trond wrote:
>>>> The point of the change attribute was to allow the client to use VERIFY to check that the label is still unchanged before attempting a subsequent protected operation (like READ, WRITE, OPEN, CREATE,...). Maybe we can replace that with a VERIFY of the sec_label attribute itself, but the current spec assumes that there can be a large array of label data per sec_label, which would appear to make that option impractical (it will impose a ridiculously high burden on the client and server, and so can't scale).
>>> I see this as a trade off between (1) paying a small cost to verify
>>> label has not changed for every protected operation (very frequent),
>>> and (2) paying no cost when label does not change
>> If you're talking about delegations here--that's not true, there's a
>> cost to delegations even in the absence of label changes.
>>
>> But I've lost the thread of the discussion.  We seem to be re-opening
>> the question of how to inform clients about label changes.  All the
>> possibilities that raised on this thread (callbacks, filehandle
>> revocation) have been discussed here before.
>>
>> My only question is whether we can make change_sec_label optional.
>>
>> The proposed Linux client implementation doesn't query change_sec_label,
>> because it just doesn't worry much about label changes, as far as I can
>> tell.  The effort of informing clients is wasted if they don't use the
>> information.
> Here is my contention with this - the push to make the change comes
> from one implementation for a specific use case. Quiqley has indicated
> that might solely be an artifact of developing against an older version of
> the spec.
>
> If the change_sec_label an optional attribute, then at what level is it optional?
>
> The file?
> The filesystem?
> The server?
>
> I.e., if the client asks once for the change_sec_label and is told it is not
> set for the current object, can it make any assumptions about whether it
> needs to ask for it again?

Wouldn't it save the day if change_sec_label is not needed? I still 
think the two existing mechanisms can cover all client notification 
requirements for label changes. IMO, they probably do a better job than 
the change_sec_label attribute approach.

- Jarrett


From bfields@fieldses.org  Thu Jan 24 13:53:21 2013
Return-Path: <bfields@fieldses.org>
X-Original-To: nfsv4@ietfa.amsl.com
Delivered-To: nfsv4@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 78A8D21F85A4 for <nfsv4@ietfa.amsl.com>; Thu, 24 Jan 2013 13:53:18 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.483
X-Spam-Level: 
X-Spam-Status: No, score=-2.483 tagged_above=-999 required=5 tests=[AWL=0.116,  BAYES_00=-2.599]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IIiKg6x7L0Lh for <nfsv4@ietfa.amsl.com>; Thu, 24 Jan 2013 13:53:17 -0800 (PST)
Received: from fieldses.org (fieldses.org [174.143.236.118]) by ietfa.amsl.com (Postfix) with ESMTP id 4979721F8583 for <nfsv4@ietf.org>; Thu, 24 Jan 2013 13:53:17 -0800 (PST)
Received: from bfields by fieldses.org with local (Exim 4.76) (envelope-from <bfields@fieldses.org>) id 1TyUjT-0005aU-Ae; Thu, 24 Jan 2013 16:53:15 -0500
Date: Thu, 24 Jan 2013 16:53:15 -0500
From: "J. Bruce Fields" <bfields@fieldses.org>
To: Jarrett Lu <jarrett.lu@oracle.com>
Message-ID: <20130124215315.GM6565@fieldses.org>
References: <51006830.4030400@oracle.com> <D54C745FA96F75489B58FCBD8956AE8F18E4C840@sacexcmbx05-prd.hq.netapp.com> <510174E1.1000905@oracle.com> <4FA345DA4F4AE44899BD2B03EEEC2FA91833761A@sacexcmbx05-prd.hq.netapp.com> <51017B2B.30509@oracle.com> <4FA345DA4F4AE44899BD2B03EEEC2FA9183376AA@sacexcmbx05-prd.hq.netapp.com> <51018E27.8050404@oracle.com> <20130124201404.GH6565@fieldses.org> <D54C745FA96F75489B58FCBD8956AE8F18E56B4E@sacexcmbx05-prd.hq.netapp.com> <5101ACB4.1090809@oracle.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <5101ACB4.1090809@oracle.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
Cc: "Myklebust, Trond" <Trond.Myklebust@netapp.com>, "Haynes, Tom" <Tom.Haynes@netapp.com>, nfsv4 list <nfsv4@ietf.org>
Subject: Re: [nfsv4] make change_sec_label optional
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/nfsv4>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 24 Jan 2013 21:53:21 -0000

On Thu, Jan 24, 2013 at 01:50:44PM -0800, Jarrett Lu wrote:
> On 01/24/13 12:39 PM, Haynes, Tom wrote:
> >On Jan 24, 2013, at 2:14 PM, J. Bruce Fields<bfields@fieldses.org>  wrote:
> >
> >>On Thu, Jan 24, 2013 at 11:40:23AM -0800, Jarrett Lu wrote:
> >>>On 01/24/13 10:28 AM, Myklebust, Trond wrote:
> >>>>The point of the change attribute was to allow the client to use VERIFY to check that the label is still unchanged before attempting a subsequent protected operation (like READ, WRITE, OPEN, CREATE,...). Maybe we can replace that with a VERIFY of the sec_label attribute itself, but the current spec assumes that there can be a large array of label data per sec_label, which would appear to make that option impractical (it will impose a ridiculously high burden on the client and server, and so can't scale).
> >>>I see this as a trade off between (1) paying a small cost to verify
> >>>label has not changed for every protected operation (very frequent),
> >>>and (2) paying no cost when label does not change
> >>If you're talking about delegations here--that's not true, there's a
> >>cost to delegations even in the absence of label changes.
> >>
> >>But I've lost the thread of the discussion.  We seem to be re-opening
> >>the question of how to inform clients about label changes.  All the
> >>possibilities that raised on this thread (callbacks, filehandle
> >>revocation) have been discussed here before.
> >>
> >>My only question is whether we can make change_sec_label optional.
> >>
> >>The proposed Linux client implementation doesn't query change_sec_label,
> >>because it just doesn't worry much about label changes, as far as I can
> >>tell.  The effort of informing clients is wasted if they don't use the
> >>information.
> >Here is my contention with this - the push to make the change comes
> >from one implementation for a specific use case. Quiqley has indicated
> >that might solely be an artifact of developing against an older version of
> >the spec.
> >
> >If the change_sec_label an optional attribute, then at what level is it optional?
> >
> >The file?
> >The filesystem?
> >The server?
> >
> >I.e., if the client asks once for the change_sec_label and is told it is not
> >set for the current object, can it make any assumptions about whether it
> >needs to ask for it again?
> 
> Wouldn't it save the day if change_sec_label is not needed? I still
> think the two existing mechanisms can cover all client notification
> requirements for label changes. IMO, they probably do a better job
> than the change_sec_label attribute approach.

You mean, delegations and the (already-existing) change attribute?

Fine by me.  (That's what Tom meant when he suggested ctime should
change, right?)

I don't remember (or wasn't paying attention): how did we end up giving
sec_label its own change attribute instead of treating it like any other
metadata?

Is it because we didn't want to have to re-fetch other attributes
whenever the label changed?  Probably not, because we assume label
changes are very rare.

So it must be because we don't want to have to re-fetch the label every
time the other attributes change?  Is that such a burden?

Despite the designers reserving the right for labels to be larger,
it sounds like typically they'll be no larger than file owners, and
probably smaller than ACLs.

--b.

From Trond.Myklebust@netapp.com  Thu Jan 24 13:55:06 2013
Return-Path: <Trond.Myklebust@netapp.com>
X-Original-To: nfsv4@ietfa.amsl.com
Delivered-To: nfsv4@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id CD07B21F85AD for <nfsv4@ietfa.amsl.com>; Thu, 24 Jan 2013 13:55:06 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level: 
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4ndShWDqzLxj for <nfsv4@ietfa.amsl.com>; Thu, 24 Jan 2013 13:55:06 -0800 (PST)
Received: from mx1.netapp.com (mx1.netapp.com [216.240.18.38]) by ietfa.amsl.com (Postfix) with ESMTP id 3213E21F85A4 for <nfsv4@ietf.org>; Thu, 24 Jan 2013 13:55:06 -0800 (PST)
X-IronPort-AV: E=Sophos;i="4.84,532,1355126400"; d="scan'208";a="237383280"
Received: from smtp2.corp.netapp.com ([10.57.159.114]) by mx1-out.netapp.com with ESMTP; 24 Jan 2013 13:55:06 -0800
Received: from vmwexceht05-prd.hq.netapp.com (exchsmtp.hq.netapp.com [10.106.77.35]) by smtp2.corp.netapp.com (8.13.1/8.13.1/NTAP-1.6) with ESMTP id r0OLt3Yg014202; Thu, 24 Jan 2013 13:55:05 -0800 (PST)
Received: from SACEXCMBX05-PRD.hq.netapp.com ([169.254.9.231]) by vmwexceht05-prd.hq.netapp.com ([10.106.77.35]) with mapi id 14.02.0328.009; Thu, 24 Jan 2013 13:55:03 -0800
From: "Myklebust, Trond" <Trond.Myklebust@netapp.com>
To: "jarrett.lu@oracle.com" <jarrett.lu@oracle.com>, "Haynes, Tom" <Tom.Haynes@netapp.com>
Thread-Topic: [nfsv4] make change_sec_label optional
Thread-Index: AQHN+Oy4H/rpI13ZVUevE0dd9O7IDphW0YCAgAD1RwD//3pGoIAAkEiAgAAFQ4CAABC8AIAAGTSAgAAKmACAACdugIABGOCA//96hCCAAIz8gP//d+fgABPXWIAAAS0nAAAA52uAAAJ42gAAEP+CQA==
Date: Thu, 24 Jan 2013 21:55:02 +0000
Message-ID: <4FA345DA4F4AE44899BD2B03EEEC2FA91833810F@sacexcmbx05-prd.hq.netapp.com>
References: <D54C745FA96F75489B58FCBD8956AE8F18E4A2C6@sacexcmbx05-prd.hq.netapp.com> <51004A28.7010303@oracle.com> <5DEA8DB993B81040A21CF3CB332489F60425A5AFAA@MX31A.corp.emc.com> <51006830.4030400@oracle.com> <D54C745FA96F75489B58FCBD8956AE8F18E4C840@sacexcmbx05-prd.hq.netapp.com> <510174E1.1000905@oracle.com> <4FA345DA4F4AE44899BD2B03EEEC2FA91833761A@sacexcmbx05-prd.hq.netapp.com> <51017B2B.30509@oracle.com> <4FA345DA4F4AE44899BD2B03EEEC2FA9183376AA@sacexcmbx05-prd.hq.netapp.com> <51018E27.8050404@oracle.com> <20130124201404.GH6565@fieldses.org> <D54C745FA96F75489B58FCBD8956AE8F18E56B4E@sacexcmbx05-prd.hq.netapp.com> <5101ACB4.1090809@oracle.com>
In-Reply-To: <5101ACB4.1090809@oracle.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [10.106.53.53]
Content-Type: text/plain; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Cc: "J. Bruce Fields" <bfields@fieldses.org>, nfsv4 list <nfsv4@ietf.org>
Subject: Re: [nfsv4] make change_sec_label optional
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/nfsv4>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 24 Jan 2013 21:55:06 -0000

> -----Original Message-----
> From: Jarrett Lu [mailto:jarrett.lu@oracle.com]
> Sent: Thursday, January 24, 2013 4:51 PM
> To: Haynes, Tom
> Cc: J. Bruce Fields; Myklebust, Trond; David Noveck; nfsv4 list
> Subject: Re: [nfsv4] make change_sec_label optional
>=20
> On 01/24/13 12:39 PM, Haynes, Tom wrote:
> > On Jan 24, 2013, at 2:14 PM, J. Bruce Fields<bfields@fieldses.org>  wro=
te:
> >
> >> On Thu, Jan 24, 2013 at 11:40:23AM -0800, Jarrett Lu wrote:
> >>> On 01/24/13 10:28 AM, Myklebust, Trond wrote:
> >>>> The point of the change attribute was to allow the client to use VER=
IFY
> to check that the label is still unchanged before attempting a subsequent
> protected operation (like READ, WRITE, OPEN, CREATE,...). Maybe we can
> replace that with a VERIFY of the sec_label attribute itself, but the cur=
rent
> spec assumes that there can be a large array of label data per sec_label,
> which would appear to make that option impractical (it will impose a
> ridiculously high burden on the client and server, and so can't scale).
> >>> I see this as a trade off between (1) paying a small cost to verify
> >>> label has not changed for every protected operation (very frequent),
> >>> and (2) paying no cost when label does not change
> >> If you're talking about delegations here--that's not true, there's a
> >> cost to delegations even in the absence of label changes.
> >>
> >> But I've lost the thread of the discussion.  We seem to be re-opening
> >> the question of how to inform clients about label changes.  All the
> >> possibilities that raised on this thread (callbacks, filehandle
> >> revocation) have been discussed here before.
> >>
> >> My only question is whether we can make change_sec_label optional.
> >>
> >> The proposed Linux client implementation doesn't query
> >> change_sec_label, because it just doesn't worry much about label
> >> changes, as far as I can tell.  The effort of informing clients is
> >> wasted if they don't use the information.
> > Here is my contention with this - the push to make the change comes
> > from one implementation for a specific use case. Quiqley has indicated
> > that might solely be an artifact of developing against an older
> > version of the spec.
> >
> > If the change_sec_label an optional attribute, then at what level is it
> optional?
> >
> > The file?
> > The filesystem?
> > The server?
> >
> > I.e., if the client asks once for the change_sec_label and is told it
> > is not set for the current object, can it make any assumptions about
> > whether it needs to ask for it again?
>=20
> Wouldn't it save the day if change_sec_label is not needed? I still think=
 the
> two existing mechanisms can cover all client notification requirements fo=
r
> label changes. IMO, they probably do a better job than the change_sec_lab=
el
> attribute approach.
>=20

No. You can't treat client-side security the way that you treat server-side=
 security. Close-to-open cache consistency works because the security is en=
forced by the server. If the client is caching attributes too aggressively,=
 it really doesn't matter because the server will stop it from doing a READ=
 or WRITE or MKDIR that is prohibited due to a permissions change.

Verifying that they are unchanged in a compound just before (and after) an =
operation is easily done. You can compare it to using a stateid to check th=
at locking state is still valid on a READ/WRITE.
Actually, that would be the other way to do this. I believe that a couple o=
f years ago, we did actually discuss the option of having a stateid represe=
nt the state of the label, and protect the operations that follow it in a C=
OMPOUND (i.e. a "current label stateid"). I can't remember why we rejected =
that idea, though...

Trond


From nico@cryptonector.com  Thu Jan 24 13:56:12 2013
Return-Path: <nico@cryptonector.com>
X-Original-To: nfsv4@ietfa.amsl.com
Delivered-To: nfsv4@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6F27721F85AD for <nfsv4@ietfa.amsl.com>; Thu, 24 Jan 2013 13:56:12 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.149
X-Spam-Level: 
X-Spam-Status: No, score=-3.149 tagged_above=-999 required=5 tests=[AWL=-1.172, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AENDK+cXXM+q for <nfsv4@ietfa.amsl.com>; Thu, 24 Jan 2013 13:56:10 -0800 (PST)
Received: from homiemail-a90.g.dreamhost.com (caiajhbdcahe.dreamhost.com [208.97.132.74]) by ietfa.amsl.com (Postfix) with ESMTP id D156721F8635 for <nfsv4@ietf.org>; Thu, 24 Jan 2013 13:56:10 -0800 (PST)
Received: from homiemail-a90.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a90.g.dreamhost.com (Postfix) with ESMTP id 702172AC072 for <nfsv4@ietf.org>; Thu, 24 Jan 2013 13:56:10 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=cryptonector.com; h= mime-version:in-reply-to:references:date:message-id:subject:from :to:cc:content-type; s=cryptonector.com; bh=aF/Of+JgwOaI3KLdF4PN dqAVoBQ=; b=ooJJWMCi3xX0ddJTN2AC2jec99Mlk48FeB6lOA6lqFp3RlcZw9PQ cC/61qQOwWXhj7mqMp7C/lyG3XpQ0X7ebvekSHZ83R0B6BnfN4y0TeprbOuNo8/X 5NUxtNf5gCTppAH1yR8xHLH4TjmZJxjq45BJMK6dNjEW3x5eMgC7a0M=
Received: from mail-wg0-f43.google.com (mail-wg0-f43.google.com [74.125.82.43]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: nico@cryptonector.com) by homiemail-a90.g.dreamhost.com (Postfix) with ESMTPSA id 18ECB2AC059 for <nfsv4@ietf.org>; Thu, 24 Jan 2013 13:56:09 -0800 (PST)
Received: by mail-wg0-f43.google.com with SMTP id e12so5100028wge.22 for <nfsv4@ietf.org>; Thu, 24 Jan 2013 13:56:08 -0800 (PST)
MIME-Version: 1.0
X-Received: by 10.180.77.234 with SMTP id v10mr5572113wiw.20.1359064568619; Thu, 24 Jan 2013 13:56:08 -0800 (PST)
Received: by 10.217.39.133 with HTTP; Thu, 24 Jan 2013 13:56:08 -0800 (PST)
In-Reply-To: <20130124215315.GM6565@fieldses.org>
References: <51006830.4030400@oracle.com> <D54C745FA96F75489B58FCBD8956AE8F18E4C840@sacexcmbx05-prd.hq.netapp.com> <510174E1.1000905@oracle.com> <4FA345DA4F4AE44899BD2B03EEEC2FA91833761A@sacexcmbx05-prd.hq.netapp.com> <51017B2B.30509@oracle.com> <4FA345DA4F4AE44899BD2B03EEEC2FA9183376AA@sacexcmbx05-prd.hq.netapp.com> <51018E27.8050404@oracle.com> <20130124201404.GH6565@fieldses.org> <D54C745FA96F75489B58FCBD8956AE8F18E56B4E@sacexcmbx05-prd.hq.netapp.com> <5101ACB4.1090809@oracle.com> <20130124215315.GM6565@fieldses.org>
Date: Thu, 24 Jan 2013 15:56:08 -0600
Message-ID: <CAK3OfOjWXPuOK8w6DR-zAJ=_s1=5Dt5jndDYuq+JAU9sBi33BQ@mail.gmail.com>
From: Nico Williams <nico@cryptonector.com>
To: "J. Bruce Fields" <bfields@fieldses.org>
Content-Type: text/plain; charset=UTF-8
Cc: "Haynes, Tom" <Tom.Haynes@netapp.com>, "Myklebust, Trond" <Trond.Myklebust@netapp.com>, nfsv4 list <nfsv4@ietf.org>
Subject: Re: [nfsv4] make change_sec_label optional
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/nfsv4>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 24 Jan 2013 21:56:12 -0000

On Thu, Jan 24, 2013 at 3:53 PM, J. Bruce Fields <bfields@fieldses.org> wrote:
> I don't remember (or wasn't paying attention): how did we end up giving
> sec_label its own change attribute instead of treating it like any other
> metadata?
>
> Is it because we didn't want to have to re-fetch other attributes
> whenever the label changed?  Probably not, because we assume label
> changes are very rare.

Probably so that client-side revocation on label change could be
implemented without having to retrieve the label every time ctime
changes?

Nico
--

From Trond.Myklebust@netapp.com  Thu Jan 24 14:00:22 2013
Return-Path: <Trond.Myklebust@netapp.com>
X-Original-To: nfsv4@ietfa.amsl.com
Delivered-To: nfsv4@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 820BE11E8099 for <nfsv4@ietfa.amsl.com>; Thu, 24 Jan 2013 14:00:22 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level: 
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DHggw1lwERoW for <nfsv4@ietfa.amsl.com>; Thu, 24 Jan 2013 14:00:21 -0800 (PST)
Received: from mx12.netapp.com (mx12.netapp.com [216.240.18.77]) by ietfa.amsl.com (Postfix) with ESMTP id C98F921F84D1 for <nfsv4@ietf.org>; Thu, 24 Jan 2013 14:00:21 -0800 (PST)
X-IronPort-AV: E=Sophos;i="4.84,532,1355126400"; d="scan'208";a="11411544"
Received: from smtp1.corp.netapp.com ([10.57.156.124]) by mx12-out.netapp.com with ESMTP; 24 Jan 2013 14:00:21 -0800
Received: from vmwexceht03-prd.hq.netapp.com (exchsmtp.hq.netapp.com [10.106.76.241]) by smtp1.corp.netapp.com (8.13.1/8.13.1/NTAP-1.6) with ESMTP id r0OM0G9G006828; Thu, 24 Jan 2013 14:00:21 -0800 (PST)
Received: from SACEXCMBX05-PRD.hq.netapp.com ([169.254.9.231]) by vmwexceht03-prd.hq.netapp.com ([10.106.76.241]) with mapi id 14.02.0328.009; Thu, 24 Jan 2013 14:00:16 -0800
From: "Myklebust, Trond" <Trond.Myklebust@netapp.com>
To: "J. Bruce Fields" <bfields@fieldses.org>, Jarrett Lu <jarrett.lu@oracle.com>
Thread-Topic: [nfsv4] make change_sec_label optional
Thread-Index: AQHN+Oy4H/rpI13ZVUevE0dd9O7IDphW0YCAgAD1RwD//3pGoIAAkEiAgAAFQ4CAABC8AIAAGTSAgAAKmACAACdugIABGOCA//96hCCAAIz8gP//d+fgABPXWIAAAS0nAAAA52uAAAJ42gAAABaAgAAQrmfg
Date: Thu, 24 Jan 2013 22:00:15 +0000
Message-ID: <4FA345DA4F4AE44899BD2B03EEEC2FA918338135@sacexcmbx05-prd.hq.netapp.com>
References: <51006830.4030400@oracle.com> <D54C745FA96F75489B58FCBD8956AE8F18E4C840@sacexcmbx05-prd.hq.netapp.com> <510174E1.1000905@oracle.com> <4FA345DA4F4AE44899BD2B03EEEC2FA91833761A@sacexcmbx05-prd.hq.netapp.com> <51017B2B.30509@oracle.com> <4FA345DA4F4AE44899BD2B03EEEC2FA9183376AA@sacexcmbx05-prd.hq.netapp.com> <51018E27.8050404@oracle.com> <20130124201404.GH6565@fieldses.org> <D54C745FA96F75489B58FCBD8956AE8F18E56B4E@sacexcmbx05-prd.hq.netapp.com> <5101ACB4.1090809@oracle.com> <20130124215315.GM6565@fieldses.org>
In-Reply-To: <20130124215315.GM6565@fieldses.org>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [10.106.53.53]
Content-Type: text/plain; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Cc: "Haynes, Tom" <Tom.Haynes@netapp.com>, nfsv4 list <nfsv4@ietf.org>
Subject: Re: [nfsv4] make change_sec_label optional
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/nfsv4>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 24 Jan 2013 22:00:22 -0000

> -----Original Message-----
> From: J. Bruce Fields [mailto:bfields@fieldses.org]
> Sent: Thursday, January 24, 2013 4:53 PM
> To: Jarrett Lu
> Cc: Haynes, Tom; Myklebust, Trond; David Noveck; nfsv4 list
> Subject: Re: [nfsv4] make change_sec_label optional
>=20
> On Thu, Jan 24, 2013 at 01:50:44PM -0800, Jarrett Lu wrote:
> > On 01/24/13 12:39 PM, Haynes, Tom wrote:
> > >On Jan 24, 2013, at 2:14 PM, J. Bruce Fields<bfields@fieldses.org>  wr=
ote:
> > >
> > >>On Thu, Jan 24, 2013 at 11:40:23AM -0800, Jarrett Lu wrote:
> > >>>On 01/24/13 10:28 AM, Myklebust, Trond wrote:
> > >>>>The point of the change attribute was to allow the client to use VE=
RIFY
> to check that the label is still unchanged before attempting a subsequent
> protected operation (like READ, WRITE, OPEN, CREATE,...). Maybe we can
> replace that with a VERIFY of the sec_label attribute itself, but the cur=
rent
> spec assumes that there can be a large array of label data per sec_label,
> which would appear to make that option impractical (it will impose a
> ridiculously high burden on the client and server, and so can't scale).
> > >>>I see this as a trade off between (1) paying a small cost to verify
> > >>>label has not changed for every protected operation (very
> > >>>frequent), and (2) paying no cost when label does not change
> > >>If you're talking about delegations here--that's not true, there's a
> > >>cost to delegations even in the absence of label changes.
> > >>
> > >>But I've lost the thread of the discussion.  We seem to be
> > >>re-opening the question of how to inform clients about label
> > >>changes.  All the possibilities that raised on this thread
> > >>(callbacks, filehandle
> > >>revocation) have been discussed here before.
> > >>
> > >>My only question is whether we can make change_sec_label optional.
> > >>
> > >>The proposed Linux client implementation doesn't query
> > >>change_sec_label, because it just doesn't worry much about label
> > >>changes, as far as I can tell.  The effort of informing clients is
> > >>wasted if they don't use the information.
> > >Here is my contention with this - the push to make the change comes
> > >from one implementation for a specific use case. Quiqley has
> > >indicated that might solely be an artifact of developing against an
> > >older version of the spec.
> > >
> > >If the change_sec_label an optional attribute, then at what level is i=
t
> optional?
> > >
> > >The file?
> > >The filesystem?
> > >The server?
> > >
> > >I.e., if the client asks once for the change_sec_label and is told it
> > >is not set for the current object, can it make any assumptions about
> > >whether it needs to ask for it again?
> >
> > Wouldn't it save the day if change_sec_label is not needed? I still
> > think the two existing mechanisms can cover all client notification
> > requirements for label changes. IMO, they probably do a better job
> > than the change_sec_label attribute approach.
>=20
> You mean, delegations and the (already-existing) change attribute?
>=20
> Fine by me.  (That's what Tom meant when he suggested ctime should
> change, right?)
>=20
> I don't remember (or wasn't paying attention): how did we end up giving
> sec_label its own change attribute instead of treating it like any other
> metadata?
>=20
> Is it because we didn't want to have to re-fetch other attributes wheneve=
r
> the label changed?  Probably not, because we assume label changes are ver=
y
> rare.
>=20
> So it must be because we don't want to have to re-fetch the label every t=
ime
> the other attributes change?  Is that such a burden?
>=20
> Despite the designers reserving the right for labels to be larger, it sou=
nds like
> typically they'll be no larger than file owners, and probably smaller tha=
n ACLs.

Requesting file owners is already recognised as a burden. We don't request =
them unless we have to...
The difference here is that getting the file owner wrong has very limited s=
ecurity implications.

Trond


From rmacklem@uoguelph.ca  Thu Jan 24 17:37:55 2013
Return-Path: <rmacklem@uoguelph.ca>
X-Original-To: nfsv4@ietfa.amsl.com
Delivered-To: nfsv4@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 437C71F0CE4 for <nfsv4@ietfa.amsl.com>; Thu, 24 Jan 2013 17:37:55 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.599
X-Spam-Level: 
X-Spam-Status: No, score=-6.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id V1P-2tmWhUKj for <nfsv4@ietfa.amsl.com>; Thu, 24 Jan 2013 17:37:54 -0800 (PST)
Received: from esa-annu.net.uoguelph.ca (esa-annu.mail.uoguelph.ca [131.104.91.36]) by ietfa.amsl.com (Postfix) with ESMTP id 3550E1F0C3E for <nfsv4@ietf.org>; Thu, 24 Jan 2013 17:37:49 -0800 (PST)
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Ap8EAN/gAVGDaFvO/2dsb2JhbABEhkW4F3OCHgEBAQMBAQEBIEsLBRYYAgINGQIpMAYTiBQGDKsrkloEgSOORYETA4hhjSuJTIZ8gxaCBg
X-IronPort-AV: E=Sophos;i="4.84,532,1355115600"; d="scan'208";a="10802800"
Received: from erie.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.206]) by esa-annu.net.uoguelph.ca with ESMTP; 24 Jan 2013 20:37:48 -0500
Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id 42946B4057; Thu, 24 Jan 2013 20:37:48 -0500 (EST)
Date: Thu, 24 Jan 2013 20:37:48 -0500 (EST)
From: Rick Macklem <rmacklem@uoguelph.ca>
To: Nico Williams <nico@cryptonector.com>
Message-ID: <1746352353.2341068.1359077868255.JavaMail.root@erie.cs.uoguelph.ca>
In-Reply-To: <CAK3OfOj6KTK46ujw+WqDOJYTOakiegQkq58bMMMALqKFNompqg@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Originating-IP: [172.17.91.203]
X-Mailer: Zimbra 6.0.10_GA_2692 (ZimbraWebClient - FF3.0 (Win)/6.0.10_GA_2692)
Cc: "J. Bruce Fields" <bfields@fieldses.org>, Tom Haynes <Tom.Haynes@netapp.com>, Trond Myklebust <Trond.Myklebust@netapp.com>, nfsv4 list <nfsv4@ietf.org>
Subject: Re: [nfsv4] make change_sec_label optional
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/nfsv4>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 25 Jan 2013 01:37:55 -0000

Nico Williams wrote:
> On Wed, Jan 23, 2013 at 4:46 PM, Jarrett Lu <jarrett.lu@oracle.com>
> wrote:
> > It may not need to be remount. If client's file handle can be made
> > stale as
> > a result of label change, that's probably sufficient. In this case
> > the
> > client needs to reopen the file object. What's important is that
> > clients
> > don't miss out on a label change event. On Solaris, I believe the
> > client
> > gets an EACCES error if file label is changed mid-stream. That will
> > stop
> > information flow right away but may not be the right error semantics
> > as
> > applications may not expect or be able to handle that error in the
> > middle of
> > reading a file.
> 
> Returning EACCES from read(2) or write(2) is definitely not
> POSIX-compliant. Arguably labeling at all means you've left POSIX
> because re-doing authorization *after* the file descriptor is created
> is definitely non-POSIX behavior. You might return EIO, but I think
> any error you return will cause problems, given which I think EACCES
> is the best error to return because it's appropriately descriptive.
> 
Yes, because NFS servers check access for every read/write, no NFS mount
can be POSIX compliant. In another post, you hinted that this is different
for NFSv4 and I do not believe that is the case. A stateid refers to lock
state (an NFSv4 Open is a form of lock) and does not "authorize" a read/write.
My NFSv4 server still checks access for every read/write and I believe that
is appropriate. (The exception is when a client holds a delegation, but the
delegation should be recalled when mode bits or ACL for the file changes.)

And, yes, this is off-topic. I don't have an opinion w.r.t. change_sec_label, rick.

> This is something that should be taken the Unix standards bodies.
> Standardized labeled system behavior at this level would be nice.
> 
> Anyways, forgive me for going off-topic.
> 
> Nico
> --
> _______________________________________________
> nfsv4 mailing list
> nfsv4@ietf.org
> https://www.ietf.org/mailman/listinfo/nfsv4

From chuck.lever@oracle.com  Fri Jan 25 08:01:17 2013
Return-Path: <chuck.lever@oracle.com>
X-Original-To: nfsv4@ietfa.amsl.com
Delivered-To: nfsv4@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 739EE21F86A3 for <nfsv4@ietfa.amsl.com>; Fri, 25 Jan 2013 08:01:17 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.598
X-Spam-Level: 
X-Spam-Status: No, score=-6.598 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4, UNPARSEABLE_RELAY=0.001]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aQwEHGwb+raH for <nfsv4@ietfa.amsl.com>; Fri, 25 Jan 2013 08:01:16 -0800 (PST)
Received: from userp1040.oracle.com (userp1040.oracle.com [156.151.31.81]) by ietfa.amsl.com (Postfix) with ESMTP id 8C3F721F8614 for <nfsv4@ietf.org>; Fri, 25 Jan 2013 08:01:16 -0800 (PST)
Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94]) by userp1040.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id r0PG11n4004179 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 25 Jan 2013 16:01:02 GMT
Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157]) by ucsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r0PG11nQ011842 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 25 Jan 2013 16:01:01 GMT
Received: from abhmt112.oracle.com (abhmt112.oracle.com [141.146.116.64]) by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id r0PG10A4002606; Fri, 25 Jan 2013 10:01:00 -0600
Received: from moret.1015granger.net (/99.26.161.222) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 25 Jan 2013 08:01:00 -0800
From: Chuck Lever <chuck.lever@oracle.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Message-Id: <8BD8BE06-E201-4704-AD4E-DB768F37255F@oracle.com>
Date: Fri, 25 Jan 2013 11:00:59 -0500
To: NFSv4 on Linux on Linux mailing mailing list <nfsv4@ietf.org>, Linux NFS Mailing List <linux-nfs@vger.kernel.org>
Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\))
X-Mailer: Apple Mail (2.1499)
X-Source-IP: ucsinet22.oracle.com [156.151.31.94]
Subject: [nfsv4] Connectathon 2013 talks
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/nfsv4>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 25 Jan 2013 16:01:17 -0000

Hi-

I'm organizing the talks at this year's Connectathon event. =20

  http://hub.opensolaris.org/bin/view/Community+Group+nfs/Connectathon13

If you are interested in presenting, please contact me with details =
before Monday, February 25 (but the sooner the better).  Remember that =
the Connectathon test floor is covered by NDA, but the talks are open to =
the public.


For each talk, please provide:

 o  A title

 o  An abstract (a couple of sentences or so)

 o  Who exactly is going to present (with e-mail if possible)

 o  How long you think you need

 o  Whether you need more than just a projector


Thanks!

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


From internet-drafts@ietf.org  Tue Jan 29 10:58:28 2013
Return-Path: <internet-drafts@ietf.org>
X-Original-To: nfsv4@ietfa.amsl.com
Delivered-To: nfsv4@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id CFB5B21F8890; Tue, 29 Jan 2013 10:58:28 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.218
X-Spam-Level: 
X-Spam-Status: No, score=-102.218 tagged_above=-999 required=5 tests=[AWL=-0.219, BAYES_00=-2.599, J_CHICKENPOX_73=0.6, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ej+IcHkpbZg1; Tue, 29 Jan 2013 10:58:28 -0800 (PST)
Received: from ietfa.amsl.com (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 70F0321F88A1; Tue, 29 Jan 2013 10:58:28 -0800 (PST)
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
From: internet-drafts@ietf.org
To: i-d-announce@ietf.org
X-Test-IDTracker: no
X-IETF-IDTracker: 4.37
Message-ID: <20130129185828.26635.28111.idtracker@ietfa.amsl.com>
Date: Tue, 29 Jan 2013 10:58:28 -0800
Cc: nfsv4@ietf.org
Subject: [nfsv4] I-D Action: draft-ietf-nfsv4-rfc3530bis-22.txt
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/nfsv4>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 29 Jan 2013 18:58:29 -0000

A New Internet-Draft is available from the on-line Internet-Drafts director=
ies.
 This draft is a work item of the Network File System Version 4 Working Gro=
up of the IETF.

	Title           : Network File System (NFS) Version 4 Protocol - Obsoletes=
 (if approved)
	Author(s)       : Thomas Haynes
                          David Noveck
	Filename        : draft-ietf-nfsv4-rfc3530bis-22.txt
	Pages           : 321
	Date            : 2013-01-29

Abstract:
   The Network File System (NFS) version 4 is a distributed filesystem
   protocol which owes heritage to NFS protocol version 2, RFC 1094, and
   version 3, RFC 1813.  Unlike earlier versions, the NFS version 4
   protocol supports traditional file access while integrating support
   for file locking and the mount protocol.  In addition, support for
   strong security (and its negotiation), compound operations, client
   caching, and internationalization have been added.  Of course,
   attention has been applied to making NFS version 4 operate well in an
   Internet environment.

   This document, together with the companion XDR description document,
   RFCNFSv4XDR, obsoletes RFC 3530 as the definition of the NFS version
   4 protocol.



The IETF datatracker status page for this draft is:
https://datatracker.ietf.org/doc/draft-ietf-nfsv4-rfc3530bis

There's also a htmlized version available at:
http://tools.ietf.org/html/draft-ietf-nfsv4-rfc3530bis-22

A diff from the previous version is available at:
http://www.ietf.org/rfcdiff?url2=3Ddraft-ietf-nfsv4-rfc3530bis-22


Internet-Drafts are also available by anonymous FTP at:
ftp://ftp.ietf.org/internet-drafts/

