diff options
Diffstat (limited to 'fs/namespace.c')
-rw-r--r-- | fs/namespace.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/namespace.c b/fs/namespace.c index 3ddfd9046c44..1b3f2ac59c5e 100644 --- a/fs/namespace.c +++ b/fs/namespace.c | |||
@@ -1800,6 +1800,10 @@ static int do_remount(struct path *path, int flags, int mnt_flags, | |||
1800 | if (path->dentry != path->mnt->mnt_root) | 1800 | if (path->dentry != path->mnt->mnt_root) |
1801 | return -EINVAL; | 1801 | return -EINVAL; |
1802 | 1802 | ||
1803 | err = security_sb_remount(sb, data); | ||
1804 | if (err) | ||
1805 | return err; | ||
1806 | |||
1803 | down_write(&sb->s_umount); | 1807 | down_write(&sb->s_umount); |
1804 | if (flags & MS_BIND) | 1808 | if (flags & MS_BIND) |
1805 | err = change_mount_flags(path->mnt, flags); | 1809 | err = change_mount_flags(path->mnt, flags); |