diff options
author | Jeff Layton <jlayton@redhat.com> | 2013-11-02 06:57:18 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2013-11-04 16:42:38 -0500 |
commit | 3da580aab9482f5bf88ea79a4bf0a511eea6fa44 (patch) | |
tree | 498abae8e430c71d70e68b0b6d677c0e0c77eca4 /fs/nfs | |
parent | f3f5a0f8cc40b942f4c0ae117df82eeb65f07d4d (diff) | |
download | linux-stable-3da580aab9482f5bf88ea79a4bf0a511eea6fa44.tar.gz linux-stable-3da580aab9482f5bf88ea79a4bf0a511eea6fa44.tar.bz2 linux-stable-3da580aab9482f5bf88ea79a4bf0a511eea6fa44.zip |
nfs: set security label when revalidating inode
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>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r-- | fs/nfs/inode.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c index 471ba59c42f9..26e77d81234e 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)); |