linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: CD writing in future Linux (stirring up a hornets' nest)
@ 2006-01-25  2:58 Albert Cahalan
  2006-01-25 16:31 ` Joerg Schilling
  0 siblings, 1 reply; 207+ messages in thread
From: Albert Cahalan @ 2006-01-25  2:58 UTC (permalink / raw)
  To: linux-kernel, schilling, rlrevell, matthias.andree

Joerg Schilling writes:
> Matthias Andree <matthias.andree@gmx.de> wrote:

>> S3 Device enumeration/probing is a sore spot. Unprivileged
>> "cdrecord dev=ATA: -scandisk" doesn't work, and recent
>> discussions on the cdwrite@ list didn't make any progress.
>> My observation is that cdrecord stops probing /dev/hd* devices
>> as soon as one yields EPERM, on the assumption "if I cannot
>> access /dev/hda, I will not have sufficient privilege to
>> write a CD anyways". I find this wrong, Joerg finds it correct
>> and argues "if you can access /dev/hdc as unprivileged user,
>> that's a security problem".
>
> This are two problems:
>
> -     users of cdrecord like to run cdrecord -scanbus in order
>       to find all SCSI devices. This no longer works since the
>       non-orthogonal /dev/hd* SCSI transport has been added.
>
>       As Linux already implements a Generic SCSI transport
>       interface (/dev/sg*) people would asume to be able to
>       talk to _all_ SCSI devices using this interface.
>       To allows this, there is a need for a SCSI HBA driver
>       that sends SCSI commands via a ATA interface.
>
> -     some people seem to set the permissions of some of the
>       /dev/hd* nodes to unsafe values and then complain that
>       the other /dev/hd* nodes cannot be opened.

**sigh**

Matthias Andree said "(Joerg, please don't talk about layer
violations here)", yet you do.

We Linux users will forever patch your software to work the
way every Linux app is supposed to work. (well, assuming
nobody succumbs to a well-caffeinated urge to fork the code)

Really, "users of cdrecord like to run cdrecord -scanbus"???
They LIKE running a command to generate phony SCSI addresses?
That's news to me.

To better protect users from terrible accidents, Linux should
avoid assigning a /dev/sg* device for anything with a regular
device file. This, along with elimination of the obsolete
ide-scsi crud, would make things a lot more safe and sane.

BTW, before Joerg mentions portability, I'd like to remind
everyone that all modern OSes support the use of normal device
names for SCSI. The most awkward is FreeBSD, where you have
to do a syscall or two to translate the name to Joerg's very
non-hotplug non-iSCSI way of thinking. Windows, MacOS X, and
even Solaris all manage to handle device names just fine. In
numerous cases, not just Linux, cdrecord is inventing crap out
of thin air to satisfy a pre-hotplug worldview.

^ permalink raw reply	[flat|nested] 207+ messages in thread

end of thread, other threads:[~2006-02-16 16:12 UTC | newest]

Thread overview: 207+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-25  2:58 CD writing in future Linux (stirring up a hornets' nest) Albert Cahalan
2006-01-25 16:31 ` Joerg Schilling
2006-01-25 16:56   ` Kyle Moffett
2006-01-25 17:08     ` Matthias Andree
2006-01-25 17:18       ` Joerg Schilling
2006-01-25 17:30         ` Matthias Andree
2006-01-26  9:50           ` Joerg Schilling
2006-01-26 10:34             ` jerome lacoste
2006-01-26 14:03               ` Joerg Schilling
2006-01-26 18:23                 ` Gene Heskett
2006-01-26 19:38                 ` jerome lacoste
2006-01-27  5:24                 ` Valdis.Kletnieks
2006-01-27 13:15                   ` Joerg Schilling
2006-01-27 14:09                     ` Kyle Moffett
2006-01-27 23:28                     ` Matthias Andree
2006-01-26 11:09             ` Matthias Andree
2006-01-25 18:17         ` Jens Axboe
2006-01-25 17:14     ` Joerg Schilling
2006-01-25 18:05       ` Kyle Moffett
2006-01-26 10:06         ` Joerg Schilling
2006-01-26 10:40           ` Matthias Andree
2006-01-26 14:05             ` Joerg Schilling
     [not found]               ` <20060126103004.07e02876.seanlkml@sympatico.ca>
2006-01-26 15:30                 ` sean
2006-01-25 23:08       ` Matthias Andree
2006-01-26 12:27         ` Joerg Schilling
2006-01-26 16:10           ` Vojtech Pavlik
2006-01-26 17:55             ` Olivier Galibert
2006-01-26 18:10               ` Vojtech Pavlik
2006-01-26 18:28                 ` Olivier Galibert
2006-01-26 18:38                   ` Jan Engelhardt
2006-01-26 19:07                     ` Dmitry Torokhov
2006-01-26 19:24                       ` Vojtech Pavlik
2006-01-26 19:51                         ` Jan Engelhardt
2006-01-26 19:22                     ` Vojtech Pavlik
2006-01-26 19:21                   ` Vojtech Pavlik
2006-01-26 19:28                   ` Diego Calleja
2006-01-26 19:44                     ` Olivier Galibert
2006-01-26 20:13                       ` Diego Calleja
2006-01-27 14:30             ` Joerg Schilling
2006-01-27 16:44               ` James Courtier-Dutton
2006-01-27 17:01                 ` Jan Engelhardt
2006-01-30 11:43                   ` Joerg Schilling
2006-01-30 12:04                     ` Matthias Andree
2006-01-30 12:23                       ` Christoph Hellwig
2006-01-30 16:15                         ` Joerg Schilling
2006-02-04 11:17                           ` Christoph Hellwig
2006-01-30 16:12                       ` Joerg Schilling
2006-01-30 16:30                         ` Matthias Andree
2006-01-30 16:34                           ` Joerg Schilling
2006-01-30 17:05                             ` Matthias Andree
2006-02-01 15:01                               ` Jan Engelhardt
2006-01-30 16:35                         ` Jeff Garzik
2006-01-30 16:46                           ` Joerg Schilling
2006-02-01 15:06                             ` Jan Engelhardt
2006-02-01 17:01                               ` Joerg Schilling
2006-02-02 16:17                                 ` Jan Engelhardt
2006-02-03 11:32                                   ` Joerg Schilling
2006-02-03 13:45                                     ` Jan Engelhardt
2006-01-30 17:38                     ` Jürg Billeter
2006-01-31 10:30                       ` Joerg Schilling
2006-01-31 11:11                         ` Martin Mares
2006-01-31 13:27                           ` Joerg Schilling
2006-01-31 13:41                             ` Matthias Andree
2006-01-31 13:42                             ` Martin Mares
2006-02-01 15:19                             ` Jan Engelhardt
2006-02-01 21:49                               ` Ian Kester-Haney
2006-02-02  9:42                               ` Joerg Schilling
2006-02-02  9:54                                 ` Martin Mares
2006-02-02 10:14                                 ` Matthias Andree
2006-01-31 12:10                         ` Bartlomiej Zolnierkiewicz
2006-01-31 13:35                           ` Joerg Schilling
2006-01-31 13:42                             ` Matthias Andree
2006-01-31 13:49                             ` Martin Mares
2006-01-31 14:23                             ` Bartlomiej Zolnierkiewicz
2006-02-01 15:34                               ` Jan Engelhardt
2006-02-01 15:49                                 ` Bartlomiej Zolnierkiewicz
2006-02-02  9:49                                 ` Joerg Schilling
2006-02-02 10:20                                   ` Matthias Andree
2006-02-02 11:28                                     ` Joerg Schilling
2006-02-02 12:46                                       ` Martin Mares
2006-02-02 10:21                                   ` Martin Mares
2006-02-02 13:18                                   ` Jens Axboe
2006-02-02 16:12                                   ` Jan Engelhardt
2006-01-31 12:24                         ` jerome lacoste
2006-01-31 12:33                           ` Oliver Neukum
2006-01-31 12:44                             ` Denis Vlasenko
2006-02-01 15:37                               ` Jan Engelhardt
2006-02-01 15:55                                 ` Bernd Petrovitsch
2006-02-02 15:24                                   ` Albert Cahalan
2006-02-01 15:56                                 ` Bartlomiej Zolnierkiewicz
2006-02-01 16:28                                   ` Jan Engelhardt
2006-02-01 17:51                                     ` Kyle Moffett
2006-02-02  7:59                             ` Xavier Bestel
2006-02-02 11:19                               ` Joerg Schilling
2006-02-02 11:34                                 ` Xavier Bestel
2006-02-02 12:51                                   ` Joerg Schilling
2006-02-02 13:02                                     ` Xavier Bestel
2006-02-03  9:55                                       ` Joerg Schilling
2006-02-03 10:05                                         ` Matthias Andree
2006-02-03 13:57                                           ` Jan Engelhardt
2006-02-03 15:50                                           ` Joerg Schilling
2006-02-03 10:57                                         ` Xavier Bestel
2006-02-02 13:24                                     ` grundig
2006-02-03 10:06                                       ` Joerg Schilling
2006-02-03 10:39                                         ` Matthias Andree
2006-02-02 16:20                                   ` Jan Engelhardt
2006-02-03  8:11                                     ` Alexander Samad
2006-01-31 12:32                         ` Juerg Billeter
2006-01-31 13:37                           ` Joerg Schilling
2006-01-31 13:44                             ` Martin Mares
2006-02-02  6:28                             ` Jim Crilly
2006-02-02 11:17                               ` Joerg Schilling
2006-02-02 11:37                                 ` grundig
2006-02-02 12:15                                 ` Martin Mares
2006-02-02 12:24                                 ` Matthias Andree
2006-02-02 16:18                                 ` Jim Crilly
2006-02-02 17:17                                   ` Albert Cahalan
2006-02-02 20:39                                     ` Jan Engelhardt
2006-02-02 21:09                                       ` Jim Crilly
2006-02-02 21:20                                         ` Joerg Schilling
2006-02-02 21:46                                           ` Jim Crilly
2006-02-03 13:36                                             ` Joerg Schilling
2006-02-03  2:27                                           ` Albert Cahalan
2006-02-03 13:47                                             ` Jan Engelhardt
2006-02-03 15:20                                             ` Joerg Schilling
2006-02-03 15:53                                               ` Jim Crilly
2006-02-03 16:54                                                 ` Joerg Schilling
2006-02-03 17:49                                                 ` Krzysztof Halasa
2006-02-03 18:35                                                   ` Jim Crilly
2006-02-03 18:57                                                   ` Joerg Schilling
2006-02-03 18:04                                                 ` Olivier Galibert
2006-02-03 18:13                                                   ` Kay Sievers
2006-02-03 18:45                                                     ` Olivier Galibert
2006-02-03 18:37                                                   ` Jim Crilly
2006-02-04 15:35                                                     ` Krzysztof Halasa
2006-02-04 15:43                                                       ` Matthias Andree
2006-02-04 18:33                                                         ` Jan Engelhardt
2006-02-05  7:40                                                       ` Jan Engelhardt
2006-02-05 16:04                                                         ` Krzysztof Halasa
2006-02-05 16:15                                                         ` Phillip Susi
2006-02-05 17:50                                                           ` Kyle Moffett
2006-02-05 21:15                                                             ` Jan Engelhardt
2006-02-05 22:27                                                             ` Neil Brown
2006-02-06 11:15                                                               ` Krzysztof Halasa
2006-02-06 14:58                                                                 ` Jan Engelhardt
2006-02-06 18:17                                                                   ` Krzysztof Halasa
2006-02-06 18:37                                                                     ` Phillip Susi
2006-02-09 16:09                                                                       ` Jan Engelhardt
2006-02-03 19:50                                                   ` Phillip Susi
2006-02-03 20:47                                                     ` Olivier Galibert
2006-02-03 21:06                                                       ` Phillip Susi
2006-02-04  0:02                                                         ` Olivier Galibert
2006-02-04 16:56                                                           ` Phillip Susi
2006-02-03 16:10                                               ` Phillip Susi
2006-02-03 16:56                                                 ` Joerg Schilling
2006-02-03 19:06                                                   ` Jan Engelhardt
2006-02-03 19:15                                                     ` Joerg Schilling
2006-02-04 11:08                                                       ` Jan Engelhardt
2006-02-03 19:22                                                     ` Matthias Andree
2006-02-03 20:01                                                   ` Phillip Susi
2006-02-03 18:20                                               ` [cdrtools PATCH (GPL)] " Matthias Andree
2006-02-03 18:31                                                 ` Joerg Schilling
2006-02-03 18:42                                                   ` Jim Crilly
2006-02-03 19:10                                                     ` Joerg Schilling
2006-02-03 19:18                                                       ` Jim Crilly
2006-02-03 19:28                                                       ` Matthias Andree
2006-02-08 22:13                                                         ` Pavel Machek
2006-02-09 20:10                                                           ` jerome lacoste
2006-02-09 22:38                                                           ` Matthias Andree
2006-02-10 12:11                                                             ` Joerg Schilling
2006-02-10 12:24                                                               ` jerome lacoste
2006-02-10 22:20                                                               ` Matthias Andree
2006-02-03 19:14                                                   ` Matthias Andree
2006-02-03 20:08                                                     ` Joerg Schilling
2006-02-03 21:17                                                       ` Matthias Andree
2006-02-02 21:25                                         ` Lee Revell
2006-02-02 21:49                                           ` Jim Crilly
2006-02-02 21:54                                             ` Lee Revell
2006-02-02 21:56                                             ` Lee Revell
2006-02-03  8:54                                               ` Jens Axboe
2006-02-03 13:29                                           ` Joerg Schilling
2006-02-03 13:51                                             ` Jan Engelhardt
2006-02-03 14:05                                               ` Kay Sievers
2006-02-03 16:48                                                 ` Joerg Schilling
2006-02-03 16:47                                               ` Joerg Schilling
2006-02-03 13:25                                         ` Joerg Schilling
2006-02-01 15:39                           ` [OT] " Jan Engelhardt
2006-01-31 16:43                         ` Paul Jakma
2006-02-01  5:07                           ` Albert Cahalan
2006-02-01 21:45                             ` Paul Jakma
2006-01-30 21:02                     ` Bill Davidsen
2006-01-30 11:25                 ` Joerg Schilling
2006-01-26  2:26   ` Albert Cahalan
2006-01-26  8:19     ` Matthias Andree
2006-01-26 13:53       ` Joerg Schilling
2006-01-26 13:50     ` Joerg Schilling
2006-01-26 16:56       ` Matan Peled
2006-01-27 11:05         ` Joerg Schilling
2006-01-26 18:42       ` Jan Engelhardt
2006-01-27  0:19       ` Albert Cahalan
2006-01-27  0:40         ` Kyle Moffett
2006-01-27  8:21         ` Xavier Bestel
2006-01-27  8:26         ` DervishD
2006-01-30 21:49         ` Bill Davidsen
2006-01-30 21:57           ` Matthias Andree
2006-01-30 22:12           ` Lee Revell
2006-02-16 16:15             ` Bill Davidsen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).