diff --git a/sys/fs/cd9660/cd9660_vfsops.c b/sys/fs/cd9660/cd9660_vfsops.c index 6266fb86ac33..5eec0c97f5e9 100644 --- a/sys/fs/cd9660/cd9660_vfsops.c +++ b/sys/fs/cd9660/cd9660_vfsops.c @@ -135,8 +135,10 @@ cd9660_mount(struct mount *mp, struct thread *td) struct nameidata ndp; struct iso_mnt *imp = 0; - if ((mp->mnt_flag & MNT_RDONLY) == 0) - return (EROFS); + /* + * Unconditionally mount as read-only. + */ + mp->mnt_flag |= MNT_RDONLY; fspec = vfs_getopts(mp->mnt_optnew, "from", &error); if (error) diff --git a/sys/isofs/cd9660/cd9660_vfsops.c b/sys/isofs/cd9660/cd9660_vfsops.c index 6266fb86ac33..5eec0c97f5e9 100644 --- a/sys/isofs/cd9660/cd9660_vfsops.c +++ b/sys/isofs/cd9660/cd9660_vfsops.c @@ -135,8 +135,10 @@ cd9660_mount(struct mount *mp, struct thread *td) struct nameidata ndp; struct iso_mnt *imp = 0; - if ((mp->mnt_flag & MNT_RDONLY) == 0) - return (EROFS); + /* + * Unconditionally mount as read-only. + */ + mp->mnt_flag |= MNT_RDONLY; fspec = vfs_getopts(mp->mnt_optnew, "from", &error); if (error)