Bug 242169 - Need read access to /dev/loopX serving a mounted ISO image
Need read access to /dev/loopX serving a mounted ISO image
Product: Fedora
Classification: Fedora
Component: udev (Show other bugs)
All Linux
low Severity low
: ---
: ---
Assigned To: Harald Hoyer
Depends On:
  Show dependency treegraph
Reported: 2007-06-01 18:32 EDT by James Hawkins
Modified: 2007-11-30 17:12 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-06-05 04:51:42 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description James Hawkins 2007-06-01 18:32:07 EDT
Description of problem:

When you mount an ISO image using 'sudo mount -o loop image.iso /media/cdrom',
you are not given read access to the loop file representing the image
(/dev/loopX).  volname /dev/loopX should return the volume name of the mounted
image, like you would get for a mounted physical CD (/dev/hdX).  In order to
work around this, I 'sudo chown myuser /dev/loopX'.  This is important in order
to install software from ISO images in Wine, which reads the volume name in
order to handle media switching.

Version-Release number of selected component (if applicable):

Fedora Core 6

How reproducible:


Steps to Reproduce:
1. sudo mount -o loop image.iso /media/cdrom
2. volname /dev/loopX

where X is the actual loop device number.
Actual results:

No volume name is available because of insufficient permissions.

Expected results:

This should be able to give the volume name of the image, just as though it were
a physical CD device.

Extra information:

I marked this as a bash component, but I'm really not sure what component it
should be.
Comment 1 Tim Waugh 2007-06-04 12:30:26 EDT
Fixed component and reassigning.
Comment 2 Harald Hoyer 2007-06-05 04:51:42 EDT
err... /dev/loop cannot be given read-all permissions by default. Since you can
mount as root, you can chmod also.

Note You need to log in before you can comment on or make changes to this bug.