|
@@ -1550,8 +1550,13 @@ static int do_remount(struct path *path, int flags, int mnt_flags,
|
|
if (!err)
|
|
if (!err)
|
|
path->mnt->mnt_flags = mnt_flags;
|
|
path->mnt->mnt_flags = mnt_flags;
|
|
up_write(&sb->s_umount);
|
|
up_write(&sb->s_umount);
|
|
- if (!err)
|
|
|
|
|
|
+ if (!err) {
|
|
security_sb_post_remount(path->mnt, flags, data);
|
|
security_sb_post_remount(path->mnt, flags, data);
|
|
|
|
+
|
|
|
|
+ spin_lock(&vfsmount_lock);
|
|
|
|
+ touch_mnt_namespace(path->mnt->mnt_ns);
|
|
|
|
+ spin_unlock(&vfsmount_lock);
|
|
|
|
+ }
|
|
return err;
|
|
return err;
|
|
}
|
|
}
|
|
|
|
|