Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 44404

Summary: cdemu .cue images can't be unloaded when loaded by normal users
Product: Gentoo Linux Reporter: Khaotic <mkhaos7>
Component: Current packagesAssignee: SpanKY <vapier>
Status: RESOLVED UPSTREAM    
Severity: major    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Khaotic 2004-03-11 17:03:28 UTC
When I load a .cue image as a normal user, it cant unload it, doesn't matter if as normal user or as root.
Loading the image as root, the root can normally unload it.
Loading it as root, normal users can't unload it.

This is the error message I get when trying to unload

$cdemu -u 2
Traceback (most recent call last):
  File "/usr/bin/cdemu", line 111, in ?
    main()
  File "/usr/bin/cdemu", line 92, in main
    libcdemu.unload_cd(device)
  File "/usr/lib/python2.3/site-packages/libcdemu.py", line 353, in unload_cd
    fcntl.ioctl(device, CDEMU_UNLOADCD,0)
IOError: [Errno 13] Permission denied

Reproducible: Always
Steps to Reproduce:
1. laod a .cue image as a normal user (cdemu 0 image.cue)
2. try to unload it as normal user (cdemu -u 0)
3.

Actual Results:  
it give me the following error message

Traceback (most recent call last):
  File "/usr/bin/cdemu", line 111, in ?
    main()
  File "/usr/bin/cdemu", line 92, in main
    libcdemu.unload_cd(device)
  File "/usr/lib/python2.3/site-packages/libcdemu.py", line 353, in unload_cd
    fcntl.ioctl(device, CDEMU_UNLOADCD,0)
IOError: [Errno 13] Permission denied

Expected Results:  
the prompt, and the image unloaded

Runnig here gentodev-sources 2.6.3-r1, and cdemu0.6_beta
Comment 1 SpanKY gentoo-dev 2004-05-14 08:46:48 UTC
someone pointed this out to me a while back and i fixed it in cdemu cvs