Bug 242169

Summary: Need read access to /dev/loopX serving a mounted ISO image
Product: [Fedora] Fedora Reporter: James Hawkins <truiken>
Component: udevAssignee: Harald Hoyer <harald>
Status: CLOSED NOTABUG QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: 6   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-06-05 04:51:42 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

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.