Package: cdrdao
Version: 1:1.2.1-6

The subject describes what I believe the nature of the problem to be,
but here are some details that I think will prove it.

I'm a member of the "cdrom" group so I should have access to my CD devices:

[EMAIL PROTECTED] ~$ ls -l /dev/scd* /dev/sg*
brw-rw---- 1 root cdrom 11, 0 Jun  5 14:05 /dev/scd0
brw-rw---- 1 root cdrom 11, 1 Jun  5 14:05 /dev/scd1
crw-rw---- 1 root root  21, 0 Jun  5 14:05 /dev/sg0
crw-rw---- 1 root cdrom 21, 1 Jun  5 14:05 /dev/sg1
crw-rw---- 1 root cdrom 21, 2 Jun  5 14:05 /dev/sg2

However, sg0 is a hard disk, so I do not have access to this (as a normal user).

The cdrdao package does not (AFAIK) have an option to install cdrdao suid root.

Attempting to scan for devices fails:

[EMAIL PROTECTED] ~$ cdrdao scanbus
Cdrdao version 1.2.1 - (C) Andreas Mueller <[EMAIL PROTECTED]>
 SCSI interface library - (C) Joerg Schilling
 Paranoia DAE library - (C) Monty

Check http://cdrdao.sourceforge.net/drives.html#dt for current driver tables.


And that is all I get. If I become root, I do get a device listing:

[EMAIL PROTECTED] ~# cdrdao scanbus
Cdrdao version 1.2.1 - (C) Andreas Mueller <[EMAIL PROTECTED]>
 SCSI interface library - (C) Joerg Schilling
 Paranoia DAE library - (C) Monty

Check http://cdrdao.sourceforge.net/drives.html#dt for current driver tables.

Using libscg version 'schily-0.8'

0,2,0 : PIONEER , DVD-ROM DVD-303R, 2.00
0,6,0 : YAMAHA  , CRW3200S        , 1.0d


AFAICT, what is happening is that cdrdao is trying to access sg0,
failing with EACCES, and aborting the scan.

[EMAIL PROTECTED] ~$ strace -eopen cdrdao scanbus
< snip -- just linker stuff and config files >
Cdrdao version 1.2.1 - (C) Andreas Mueller <[EMAIL PROTECTED]>
 SCSI interface library - (C) Joerg Schilling
 Paranoia DAE library - (C) Monty

Check http://cdrdao.sourceforge.net/drives.html#dt for current driver tables.

open("/dev", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 3
open("/dev", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 3
open("/dev", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 3
open("/dev", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 3
open("/dev/scd0", O_RDWR|O_NONBLOCK)    = 3
open("/dev/scd1", O_RDWR|O_NONBLOCK)    = 4
open("/dev/sg0", O_RDWR|O_NONBLOCK)     = -1 EACCES (Permission denied)
open("/dev", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 5
open("/dev/cdroms", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = -1
ENOENT (No such file or directory)
open("/dev", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 5
Process 7080 detached


When run as root, the difference begins at sg0:

open("/dev/sg0", O_RDWR|O_NONBLOCK)     = 5
open("/dev/sg1", O_RDWR|O_NONBLOCK)     = 6
open("/dev/sg2", O_RDWR|O_NONBLOCK)     = 7
open("/dev", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 8
open("/dev", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 8
Using libscg version 'schily-0.8'

0,2,0 : PIONEER , DVD-ROM DVD-303R, 2.00
0,6,0 : YAMAHA  , CRW3200S        , 1.0d
open("/dev", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 3
open("/dev/cdroms", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = -1
ENOENT (No such file or directory)
open("/dev", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 3
Process 7109 detached


I would suggest that cdrdao should skip the device it is unable to
open, rather than aborting the scan.

FWIW, cdrecord suffers from the same problem, and I've filed a
separate bug for that.

I could be wrong, but I think that this bug in cdrdao may be the
reason why k3b cannot detect my CD devices (which then makes k3b
unusable).

Let me know if I can help. Thanks.

-- graham


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to