icedax only works for root

Bug #134493 reported by Stefan Fleiter
6
Affects Status Importance Assigned to Milestone
cdrkit (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

# ll /dev/scd0
brw-rw---- 1 root cdrom 11, 0 2007-08-24 12:36 /dev/scd0

#LANG=C id
uid=1000(qwertz) gid=1000(qwertz) groups=4(adm),6(disk),8(mail),24(cdrom),25(floppy),26(tape),29(audio),30(dip),40(src),46(plugdev),106(lpadmin),108(scanner),121(admin),129(fuse),1000(qwertz)

# icedax -B -e -D /dev/scd0 2>&1 | head -50
Type: ROM, Vendor 'PLEXTOR ' Model 'CD-ROM PX-12TS ' Revision '1.02' no MMC
765952 bytes buffer memory requested, 4 buffers, 75 sectors
Read TOC CD Text failed (probably not supported).
#icedax version 1.1.6, real time sched., soundcard, libparanoia support
AUDIOtrack pre-emphasis copy-permitted tracktype channels
      1-10 no no audio 2
Table of Contents: total tracks:10, (total time 42:45.55)
  1.( 3:53.65), 2.( 5:56.60), 3.( 4:47.35), 4.( 4:31.55), 5.( 4:51.30),
  6.( 1:01.15), 7.( 4:23.05), 8.( 4:28.43), 9.( 4:38.02), 10.( 4:13.45),

Table of Contents: starting sectors
  1.( 0), 2.( 17540), 3.( 44300), 4.( 65860), 5.( 86240),
  6.( 108095), 7.( 112685), 8.( 132415), 9.( 152558), 10.( 173410),
 lead-out( 192430)
CDINDEX discid: atYLjTYh1ZOpzSGotzyTugJV7aw-
CDDB discid: 0x740a050a
CD-Text: not detected
CD-Extra: not detected
samplefile size will be 452595404 bytes.
recording 2565.7333 seconds stereo with 16 bits @ 44100.0 Hz ->'audio'...
icedax: Operation not permitted. cannot set posix realtime scheduling policy
percent_done:
  0%Errno: 1 (Operation not permitted), Read12 scsi sendcmd: no error
CDB: D8 00 00 00 00 00 00 00 00 4B 00 00
status: 0x0 (GOOD STATUS)
cmd finished after 0.000s timeout 60s
Errno: 1 (Operation not permitted), Read12 scsi sendcmd: no error
CDB: D8 00 00 00 00 4B 00 00 00 4B 00 00
status: 0x0 (GOOD STATUS)
cmd finished after 0.000s timeout 60s
Errno: 1 (Operation not permitted), Read12 scsi sendcmd: no error
CDB: D8 00 00 00 00 96 00 00 00 4B 00 00
status: 0x0 (GOOD STATUS)
cmd finished after 0.000s timeout 60s

Revision history for this message
Stefan Fleiter (stefan-fleiter) wrote :

I've attached the output of strace.
According to http://sg.torque.net/sg/sg_io.html#mozTocId645134 most SG_IO ioctls do not
require root permissions.

If this can not be worked around icedax should be installed setuid root and an apparmor profile should be
created.

This is a regression since reading audio cds never required to be root.

Revision history for this message
Stefan Fleiter (stefan-fleiter) wrote :

cdparanoia-III-alpha9.8 (self compiled, not setuid root) can rip cds as user, so I do not see, why icedax should not be able to do so.

Revision history for this message
Christian Niemeyer (christian-niemeyer) wrote :

Same here,

cdda2wav and cdparanoia working fine. With icedax, I get nearly the same messages, though my system hangs completely when icedax is at 0% of the first track. Then even killall -9 icedax won't work. Also not Sysrq keys (or they take very long time). I just can switch to a VT and Reboot with Ctrl+Alt+Del
Have IDE interfaces. /dev/hdd

Revision history for this message
Daniel T Chen (crimsun) wrote :

Is this symptom still reproducible in 8.10 beta or later?

Changed in cdrkit:
status: New → Incomplete
Revision history for this message
Pedro Villavicencio (pedro) wrote :

We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to New. Thanks again!.

Changed in cdrkit:
status: Incomplete → Invalid
Revision history for this message
Schily (schilling-fokus) wrote :

This is a well known cdrkit bug.
The description is complete and there is no need to add further information.

Linux requires root privileges but the cdrkit people are unwilling to believe this
and do not install the programs suid root.

Changed in cdrkit:
status: Invalid → Confirmed
Revision history for this message
Jean-Louis Dupond (dupondje) wrote :

wodim really needs SUID:
it even says that itself :(

Warning: Cannot gain SYS_RAWIO capability: Operation not permitted
Possible reason: wodim not installed SUID root.

Revision history for this message
Stefan Fleiter (stefan-fleiter) wrote :

This is fixed for karmic.

Changed in cdrkit (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.