public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Joerg Schilling <schilling@fokus.fraunhofer.de>
To: schilling@fokus.fraunhofer.de, mrmacman_g4@mac.com
Cc: linux-kernel@vger.kernel.org, 7eggert@gmx.de
Subject: Re: OT] Joerg Schilling flames Linux on his Blog
Date: Fri, 27 May 2005 11:39:38 +0200	[thread overview]
Message-ID: <4296EADA.nail3L111R0J3@burner> (raw)
In-Reply-To: <8E909B69-1F19-4520-B162-B811E288B647@mac.com>

Kyle Moffett <mrmacman_g4@mac.com> wrote:

> On May 25, 2005, at 18:46:55, Joerg Schilling wrote:

> > The unability to give this kind of convenience to cdrecord users is  
> > a result
> > of the refusal of the Linux kernel crew to include the kernel internal
> > device instance numbers in the ioctl structures I need to read.
>
> There is a specific reason that the numbers are _kernel_internal_!!!   

So if you really believe this, you should immediately remove all
stuff under /proc.

> I set up
> my udev so that my green CD burner is /dev/green_burner, and my blue  
> CD burner
> is /dev/blue_burner.  Please tell me again why exactly I can't just  
> give the
> option -dev=/dev/green_burner and have it use my green CD burner?   

Try to start with reading the cdrecord manual page. Your question
is answered in there.....but if you issue a command that is only
halfway correct you will never be able to get the full set of features from 
cdrtools. Using UNIX device names for SCSI devices is highly nonportable 
and for this reason not supported by a portable program like cdrecord.

Cdrecord includes the needed features to do what you like, but do not
asume that you will be able to force me to make nonportable and Linux
specific interfaces a gauge for the design of a portable program.
If you read the cdrecord man page, you know that you could
happily call cdrecord dev=green_burner.....


> That's a lot
> easier than messing with random groups of 3 numbers and trying to  
> remember in
> which order I plugged in my burners, and which kernel I'm running, so  
> I can
> remember the enumeration order, etc.

Aha, so you would prefer /dev/ftp.kernel.org also?

Before trying to make inadequate comparisons and before you request
inadequate similarities, it often helps a lot if you first try to look
around and check whether your claims are really a tautology.

>
> > Note that the fields are there but the information is intentionally  
> > obscured
> > for come of the calls just to make the life of cdrecord useers  
> > harder :-(
>
> The information is obscured because userspace shouldn't know or care

If you read the LKML archives, it would be easy for you to prove that this
is not true :-(

The numbers are obscured _only_ in order to prevent me to implement a workaround
for the fact that Linux does not implement _one_ unique interface for sending
generic SCSI commands to all devices that talk SCSI.

I aked for a non obscured interface in 2002 (note that the fields _are_ present
inside the ioctl parameter structure) in order to hide this drawback from Linux
users, but I have been told that the Linux developers don't like nice
and _unique_ interfaces for their users. 

	-	The fields are in the ioctl structures for user land 
		communication.

	-	The kernel knows the numbers that would allow libscg
		to detect duplikate drive appearances when trying to
		implement a global umbrella for all different SCSI
		interfaces in the Linux kernel

	-	The kernel hides the fact only to make it impossible for
		cdrecord to implement  a better user interface.



> > If you don't call cdrecord as root, you will not be able to lock in  
> > memory
> > and to raise priority in order to prevent buffer underuns.
>
> I burn CDs fine all the time as a user, and I _don't_ need to lock  
> memory or
> raise priority, because I have a good scheduler, plenty of RAM, and  
> dual CPUs.

Do you really believe this? It would help a lot if you did a reality check.


> It would be nice if you could let me leave on the _hardware_ BurnProof
> technology designed to prevent that sort of thing, but it doesn't  
> appear to
> fit with your ideals of 100% perfect CDs, does it?  Besides, by the  

Again, try do do some reallity check.... Cdrecord by default uses the
setup that grant best media quality. I asume you are able to read, so 
just read the man page and set up your defaults the way you like them.


> burnproof).  Personally, I'd rather have the latter.

So why do you refuse to read the manual and to setup the parameters
you like?


> Did you try submitting a list of important SCSI commands and their  
> functions?
> I suspect that if you provide a clear, concise list of harmless  
> commands,
> they would be included in the available command set.

Having such a list in inherently wrong. It never could be made correct.

There are a lot of different drives with a lot of overlapping commands
in the vendor unique part of the name space. Cdrecord needs the
vendor unique commands for old writers in order to be able to write at
all, and cdrecord needs the vendor unique commands in order to implement
the nice features people like for their convenience.

Nut even in the non vendor unique part the list in Linux is incomplete.

****
And please note: Cdrecord uses some of the commands that are used for 
firmware upgrade in order to do DMA speed metering........ This is
definitely _not_ a security issue with cdrecord.
In special on Linux, users frequelty did complain about insufficient
DMA speed before I did add this feature. Not cdrecord refuses to write
faster than possible after metering the transfer speed from/to the drive.
****

In case you don't understand this correectly, let me explain:

A security problem may only be correctly dealt with by having a 
coherent and consistent security strategy. The SCSI op code table
is not part of a security strategy but just a bad hack.

Jörg

-- 
 EMail:joerg@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
       js@cs.tu-berlin.de		(uni)  
       schilling@fokus.fraunhofer.de	(work) Blog: http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily

  parent reply	other threads:[~2005-05-27  9:45 UTC|newest]

Thread overview: 79+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <4847F-8q-23@gated-at.bofh.it>
     [not found] ` <E1Db3zm-0004vF-9j@be1.7eggert.dyndns.org>
2005-05-25 22:46   ` OT] Joerg Schilling flames Linux on his Blog Joerg Schilling
2005-05-25 23:31     ` Kyle Moffett
2005-05-26  3:45       ` [OT] " Alexander E. Patrakov
2005-05-26  5:06         ` Giuseppe Bilotta
     [not found]         ` <Pine.LNX.4.58.0505261335440.2939@be1.lrz>
2005-05-26 12:33           ` Alexander E. Patrakov
     [not found]             ` <Pine.LNX.4.58.0505261651220.3407@be1.lrz>
2005-05-27 10:44               ` Joerg Schilling
2005-05-26 19:20       ` OT] " Bill Davidsen
2005-05-26 21:26         ` Kyle Moffett
2005-05-26 23:30           ` Matthias Andree
2005-05-27  9:39       ` Joerg Schilling [this message]
2005-05-27 11:09         ` Wakko Warner
2005-05-27 14:21         ` Dmitry Torokhov
2005-05-30  9:07           ` Joerg Schilling
2005-05-30 10:47             ` Markus Plail
2005-05-30 22:27             ` Dmitry Torokhov
2005-05-30 23:20               ` Måns Rullgård
2005-05-30 23:35               ` Brian O'Mahoney
2005-05-31 12:51                 ` Joerg Schilling
2005-05-31 12:47               ` Joerg Schilling
     [not found]     ` <Pine.LNX.4.58.0505260205390.19389@be1.lrz>
2005-05-27 10:03       ` Joerg Schilling
     [not found]         ` <Pine.LNX.4.58.0505271633200.3055@be1.lrz>
2005-05-30  9:36           ` Joerg Schilling
     [not found]             ` <Pine.LNX.4.58.0505301326450.2363@be1.lrz>
2005-05-31 10:57               ` Joerg Schilling
2005-05-30 22:00 Lincoln Dale (ltd)
2005-05-31 11:17 ` Joerg Schilling
  -- strict thread matches above, loose matches on Subject: below --
2005-05-30  9:19 Lincoln Dale (ltd)
2005-05-30  9:34 ` Toon van der Pas
2005-05-30 12:26   ` Joerg Schilling
2005-05-30 14:14     ` Kyle Moffett
2005-05-31 11:03       ` Joerg Schilling
2005-05-31  7:29         ` Terry Vernon
2005-05-31 11:46         ` Richard B. Johnson
2005-05-31 16:59         ` Gerd Knorr
2005-05-31 19:05           ` Lennart Sorensen
2005-05-31 19:56             ` Gerd Knorr
2005-06-01 15:56               ` Joerg Schilling
2005-06-01 16:20                 ` Dagfinn Ilmari Mannsåker
2005-06-01 16:55                 ` Gerd Knorr
2005-06-01  2:23             ` Horst von Brand
2005-06-01 15:56               ` Lennart Sorensen
2005-06-03 13:29                 ` Theodore Ts'o
2005-06-01 16:28               ` Oliver Neukum
2005-06-01 15:41             ` Joerg Schilling
2005-06-01 15:11           ` Joerg Schilling
2005-06-01 15:42             ` Jim Crilly
2005-06-01 16:55               ` Joerg Schilling
2005-06-01 17:29                 ` Jim Crilly
2005-06-01 17:50                   ` Joerg Schilling
2005-06-01 17:59                     ` Jim Crilly
2005-06-02  1:14                       ` Bill Davidsen
2005-06-02  1:46                         ` Måns Rullgård
2005-06-02  1:23                       ` Bill Davidsen
2005-06-03 19:51                     ` Patrick McFarland
2005-06-01 22:06                 ` Matthias Andree
2005-06-01 15:57             ` Patrick McFarland
2005-05-31 17:22         ` Jim Crilly
2005-05-31 19:28           ` Dmitry Torokhov
2005-05-31 20:54             ` Jim Crilly
2005-06-01 15:53             ` Joerg Schilling
2005-06-01 16:05               ` Dmitry Torokhov
2005-06-01 17:03                 ` Joerg Schilling
2005-06-01 17:28                   ` Chris Friesen
2005-06-02  2:08                     ` Måns Rullgård
2005-06-01 17:35                   ` Patrick McFarland
2005-06-02 10:34                   ` Lukasz Stelmach
2005-06-01 16:21               ` Matthias Andree
2005-06-01 17:29                 ` Joerg Schilling
2005-06-01 15:28           ` Joerg Schilling
2005-06-01 15:48             ` Jim Crilly
2005-05-30 13:38   ` Tomasz Torcz
2005-05-30  9:46 ` Joerg Schilling
     [not found] <48cRq-7TH-5@gated-at.bofh.it>
     [not found] ` <48cRq-7TH-7@gated-at.bofh.it>
     [not found]   ` <48cRq-7TH-3@gated-at.bofh.it>
     [not found]     ` <48dDM-5I-1@gated-at.bofh.it>
     [not found]       ` <48wdp-7lh-1@gated-at.bofh.it>
2005-05-26 21:53         ` Bodo Eggert
2005-05-26 23:12           ` Lee Revell
2005-05-25 13:15 Joerg Schilling
2005-05-25 23:12 ` Kyle Moffett
2005-05-26 10:15   ` Joerg Schilling
2005-05-26 11:42     ` Bill Davidsen
2005-05-25 12:50 Joerg Schilling
2005-05-26  4:11 ` Patrick McFarland
2005-05-26  7:14   ` Markus Plail

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4296EADA.nail3L111R0J3@burner \
    --to=schilling@fokus.fraunhofer.de \
    --cc=7eggert@gmx.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mrmacman_g4@mac.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox