linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] nfs: set security label when revalidating inode
@ 2013-11-02 10:57 Jeff Layton
  2013-11-03  0:46 ` Dave Quigley
  2013-11-03  2:23 ` Myklebust, Trond
  0 siblings, 2 replies; 13+ messages in thread
From: Jeff Layton @ 2013-11-02 10:57 UTC (permalink / raw)
  To: trond.myklebust; +Cc: linux-nfs, dpquigl

Currently, we fetch the security label when revalidating an inode's
attributes, but don't apply it. This is in contrast to the readdir()
codepath where we do apply label changes.

Cc: Dave Quigley <dpquigl@davequigley.com>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
---
 fs/nfs/inode.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c
index 4bc7538..6ae6160 100644
--- a/fs/nfs/inode.c
+++ b/fs/nfs/inode.c
@@ -923,6 +923,8 @@ __nfs_revalidate_inode(struct nfs_server *server, struct inode *inode)
 	if (nfsi->cache_validity & NFS_INO_INVALID_ACL)
 		nfs_zap_acl_cache(inode);
 
+	nfs_setsecurity(inode, fattr, label);
+
 	dfprintk(PAGECACHE, "NFS: (%s/%Ld) revalidation complete\n",
 		inode->i_sb->s_id,
 		(long long)NFS_FILEID(inode));
-- 
1.8.3.1


^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2013-11-04 19:31 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-02 10:57 [PATCH] nfs: set security label when revalidating inode Jeff Layton
2013-11-03  0:46 ` Dave Quigley
2013-11-03  2:23 ` Myklebust, Trond
2013-11-03 10:14   ` Jeff Layton
2013-11-03 11:01     ` Jeff Layton
     [not found]       ` <32FF43CF-D4D7-41AD-9B2F-8BAD6C2F846C@netapp.com>
2013-11-03 17:01         ` Jeff Layton
2013-11-03 18:41           ` Myklebust, Trond
2013-11-04  1:28             ` Jeff Layton
2013-11-04 15:19   ` Steve Dickson
2013-11-04 16:03     ` Myklebust, Trond
2013-11-04 17:56       ` Steve Dickson
2013-11-04 19:20         ` Labeled NFS: Is the value of FATTR4_WORD2_SECURITY_LABEL correct? Myklebust, Trond
2013-11-04 19:30           ` Jeff Layton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).