icedax only works for root
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=
# 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: atYLjTYh1ZOpzSG
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
I've attached the output of strace. sg.torque. net/sg/ sg_io.html# mozTocId645134 most SG_IO ioctls do not
According to http://
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.