Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 96890
b: refs/heads/master
c: 46c8ac7
h: refs/heads/master
v: v3
  • Loading branch information
Eric Paris authored and Trond Myklebust committed May 16, 2008
1 parent c5bf303 commit 8062626
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3a6258e1fb5ff717dcefa04afc35f81aaae3f3e0
refs/heads/master: 46c8ac74250a396aca855e494f49a960797a6b5e
10 changes: 10 additions & 0 deletions trunk/fs/nfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -2015,6 +2015,10 @@ static int nfs4_get_sb(struct file_system_type *fs_type,
goto error_splat_super;
}

error = security_sb_set_mnt_opts(s, &data.lsm_opts);
if (error)
goto error_splat_root;

s->s_flags |= MS_ACTIVE;
mnt->mnt_sb = s;
mnt->mnt_root = mntroot;
Expand All @@ -2031,6 +2035,8 @@ static int nfs4_get_sb(struct file_system_type *fs_type,
nfs_free_server(server);
goto out;

error_splat_root:
dput(mntroot);
error_splat_super:
up_write(&s->s_umount);
deactivate_super(s);
Expand Down Expand Up @@ -2114,6 +2120,8 @@ static int nfs4_xdev_get_sb(struct file_system_type *fs_type, int flags,
mnt->mnt_sb = s;
mnt->mnt_root = mntroot;

security_sb_clone_mnt_opts(data->sb, s);

dprintk("<-- nfs4_xdev_get_sb() = 0\n");
return 0;

Expand Down Expand Up @@ -2197,6 +2205,8 @@ static int nfs4_referral_get_sb(struct file_system_type *fs_type, int flags,
mnt->mnt_sb = s;
mnt->mnt_root = mntroot;

security_sb_clone_mnt_opts(data->sb, s);

dprintk("<-- nfs4_referral_get_sb() = 0\n");
return 0;

Expand Down

0 comments on commit 8062626

Please sign in to comment.