Return-Path: linux-nfs-owner@vger.kernel.org Received: from mx11.netapp.com ([216.240.18.76]:27422 "EHLO mx11.netapp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751927Ab3KDVAy convert rfc822-to-8bit (ORCPT ); Mon, 4 Nov 2013 16:00:54 -0500 From: "Myklebust, Trond" To: Linux NFS Mailing List CC: Bruce Fields , Steve Dickson , Jeff Layton , David Quigley Subject: Re: [PATCH 2/5] NFS: __nfs_revalidate_inode() - use the nfs4_label to update file security info Date: Mon, 4 Nov 2013 21:00:46 +0000 Message-ID: <0719A451-70BA-4AF8-8A3F-ECF9A221C5BB@netapp.com> References: <1383598272-17737-1-git-send-email-Trond.Myklebust@netapp.com> <1383598272-17737-2-git-send-email-Trond.Myklebust@netapp.com> In-Reply-To: <1383598272-17737-2-git-send-email-Trond.Myklebust@netapp.com> Content-Type: text/plain; charset="Windows-1252" MIME-Version: 1.0 Sender: linux-nfs-owner@vger.kernel.org List-ID: On Nov 4, 2013, at 15:51, Trond Myklebust wrote: > Currently, we just discard the nfs4_label information, instead of using it > to update the file LSM security info. > > Signed-off-by: Trond Myklebust I forgot to add a "Reported-by: Jeff Layton ?. Fixed now... > --- > fs/nfs/inode.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c > index 471ba59c42f9..09d4df5f588a 100644 > --- a/fs/nfs/inode.c > +++ b/fs/nfs/inode.c > @@ -920,6 +920,7 @@ __nfs_revalidate_inode(struct nfs_server *server, struct inode *inode) > goto err_out; > } > > + nfs_setsecurity(inode, fattr, label); > if (nfsi->cache_validity & NFS_INO_INVALID_ACL) > nfs_zap_acl_cache(inode); > > -- > 1.8.3.1 > -- Trond Myklebust Linux NFS client maintainer NetApp Trond.Myklebust@netapp.com www.netapp.com