this is an old question, and the present answers are clear
and reasonable enough: namely that an ISO image is essentially
a read-only format, and as such does not require, or allow,
to be writable.
(Still, today that enormous storage facilities are available,
one may like to keep one's disks around like ISO images, and never
actually burn them to physical media, only modify them)
But my question is different: I am trying to mount a DVD on my
Linux (Fedora 12) and I want to see its contents from my old PC
via Samba. (Attention: _see_, not _modify_ content)
I do this by
1) mount -o loop my_old_photo.iso /mnt/diskimage
2) declare the latter in a [data]section of smb.conf
This does not work at all: SELinux requires at all costs me to do
chcon -R -t samba_share_t /mnt/diskimage
and this, although not strictly writing to the ISO, formally appears
like a modification. I am informed that:
[root@myBox ~]# chcon -t samba_share_con /mnt/diskimage
chcon: failed to change context of `/mnt/diskimage' to `system_u
bject_r:samba_share_con:s0': Read-only file system
Looks like a rather silly requirement, either from SELinux or from mount,
given that the "context" is not really part of the filesystem.
For the record,
[root@myBox ~]# ls -ldZ /mnt/diskimage/
dr-xr-xr-x. root root system_u
...and I am stuck.
Unless, that is, I copy/unpack all from /mnt/diskimage to _another_
directory, and export that one instead.
...ideas anybody? Thanks in advance!