aboutsummaryrefslogtreecommitdiffstats
path: root/fs/namespace.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/namespace.c')
-rw-r--r--fs/namespace.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/namespace.c b/fs/namespace.c
index dffe6f49ab93..e96e03782def 100644
--- a/fs/namespace.c
+++ b/fs/namespace.c
@@ -1783,6 +1783,10 @@ static int do_remount(struct path *path, int flags, int mnt_flags,
1783 if (path->dentry != path->mnt->mnt_root) 1783 if (path->dentry != path->mnt->mnt_root)
1784 return -EINVAL; 1784 return -EINVAL;
1785 1785
1786 err = security_sb_remount(sb, data);
1787 if (err)
1788 return err;
1789
1786 down_write(&sb->s_umount); 1790 down_write(&sb->s_umount);
1787 if (flags & MS_BIND) 1791 if (flags & MS_BIND)
1788 err = change_mount_flags(path->mnt, flags); 1792 err = change_mount_flags(path->mnt, flags);