|
@@ -1089,7 +1089,8 @@ static struct mount *clone_mnt(struct mount *old, struct dentry *root,
|
|
goto out_free;
|
|
goto out_free;
|
|
}
|
|
}
|
|
|
|
|
|
- mnt->mnt.mnt_flags = old->mnt.mnt_flags & ~(MNT_WRITE_HOLD|MNT_MARKED);
|
|
|
|
|
|
+ mnt->mnt.mnt_flags = old->mnt.mnt_flags;
|
|
|
|
+ mnt->mnt.mnt_flags &= ~(MNT_WRITE_HOLD|MNT_MARKED|MNT_INTERNAL);
|
|
/* Don't allow unprivileged users to change mount flags */
|
|
/* Don't allow unprivileged users to change mount flags */
|
|
if (flag & CL_UNPRIVILEGED) {
|
|
if (flag & CL_UNPRIVILEGED) {
|
|
mnt->mnt.mnt_flags |= MNT_LOCK_ATIME;
|
|
mnt->mnt.mnt_flags |= MNT_LOCK_ATIME;
|