aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/super.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/nfs/super.c b/fs/nfs/super.c
index 95cdcb208dfb..6b4bf7622280 100644
--- a/fs/nfs/super.c
+++ b/fs/nfs/super.c
@@ -2380,10 +2380,9 @@ int nfs_clone_sb_security(struct super_block *s, struct dentry *mntroot,
2380 struct nfs_mount_info *mount_info) 2380 struct nfs_mount_info *mount_info)
2381{ 2381{
2382 /* clone any lsm security options from the parent to the new sb */ 2382 /* clone any lsm security options from the parent to the new sb */
2383 security_sb_clone_mnt_opts(mount_info->cloned->sb, s);
2384 if (mntroot->d_inode->i_op != NFS_SB(s)->nfs_client->rpc_ops->dir_inode_ops) 2383 if (mntroot->d_inode->i_op != NFS_SB(s)->nfs_client->rpc_ops->dir_inode_ops)
2385 return -ESTALE; 2384 return -ESTALE;
2386 return 0; 2385 return security_sb_clone_mnt_opts(mount_info->cloned->sb, s);
2387} 2386}
2388EXPORT_SYMBOL_GPL(nfs_clone_sb_security); 2387EXPORT_SYMBOL_GPL(nfs_clone_sb_security);
2389 2388