From: Joerg Schilling <schilling@fokus.fraunhofer.de>
To: schilling@fokus.fraunhofer.de, 7eggert@gmx.de
Cc: linux-kernel@vger.kernel.org, 7eggert@gmx.de
Subject: Re: OT] Joerg Schilling flames Linux on his Blog
Date: Fri, 27 May 2005 12:03:52 +0200 [thread overview]
Message-ID: <4296F088.nail3L121R2F5@burner> (raw)
In-Reply-To: <Pine.LNX.4.58.0505260205390.19389@be1.lrz>
Bodo Eggert <7eggert@gmx.de> wrote:
> [...]
> > 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.
>
> My problem is the speed of the network or the fragmentation of my HD, RT
> privileges won't do the magic needed here[tm]. In fact, even a kernel
> compile while doesn't harm. On a reasonably busy system, I would probably
> have to reconsider.
If you have fragmentation problems, do you use the wrong filesystem type?
I never had any similar problem on a ufs type filesystem.
With network speed, you should set up a sufficiently designed infrastructure.
If you like to write a CD in 32x, you need 5.6 MB/s which easily goes over
a 100 MB/s network connection.
> > In addition (with
> > Linux-2.6.8.1 or newer) you will not be able to send some of the important
> > SCSI commands mainly related to newer CD or DVD drives. As a result, cdrecord
> > cannot write DVDs or ultra speed CD-RWs or cannot do other things....
>
> If I need them, I'll notice and I can ask for them to be added.-) Your
> patch will just hide this need, but that's what your otherusers will need.
There are many other commands needed by cdrecord.
The initiator of the good/bad SCSI op code table hack claimed to have checked
cdrecord for a list of used commands. If you check the current table, you may
easily find that this cannot be true.
> Maybe the failed command should be stored and printed after burning the
> CD, so new comands will get added quickly?
Please try to check the cdrecord source in order to understand the background.
> You'll want to grant raw disk access for some databases, which will run as
> a unprivileged user. These databases should not be able to kill HDDs.
A database may kill a hdd in many other ways. It is higly improbable that
a trustworthy database includes the knowwledge to set up a firmware to the
drive that us accepted by the drive but does not work. The same applies for
your kernel. You need to trust your database the same way as you need to trust
your kernel.
> > The good/bad SCSI commands table that is currently used is a really bad and
> > ugly (incorrect) hack and much worse than my proposal.
>
> Your proposal has it's limitations, see above.
It has less limitations that the good/bad SCSI commands table has, see above.
> > > The fix is wrong: You're asuming root is capable of everything. This
> > > doesn't need to be true (missing CAP_SYS_RAWIO) and you'll run into a
> > > loop in that case.
> >
> > If you are really true, then there is a design problem in Linux.
>
> No, it's a feature, see man 3 cap_get_proc.
If Linux is designed in a way that needs applications like cdrecord to be
changed in order to include support for a Linux proprietary new security
mechanism, then the new mechanism should be rethought.
> > BTW: If Linux starts introducing fine grained rights manamement like on Solaris, why
> > does it miss the apropriate management tools at user level?
>
> Washing dishes is faster than drying them :)
If you go into a restaurant, they wash the dishes before they serve them to you,
but they wait until they did dry before they get them out of the kitchen :-)
It is a matter of style of the kitchen personal whether to serve wet
dishes or not.
So for the Linux equivalent: don't force users tu use interfaces that are not
yet ready for the public.
> > On Solaris, I could run cdrecord rootless if I use pfksh as my shell and if
> > the roles database would include cdrecord with its needed privilleges and me
> > as a member of the cdwriters role.
>
> There was some discusssion on LKML about non-root access to RT privileges.
> Maybe there is something in the queue.
So it makes sense for the Linux to have a look at the Solaris implementation.
The database is much simpler to manage than what is present for Linux.
BTW: it would also make sense to implement the new holey file interface
I designed together with the Solaris kernel crew for star.
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
next prev parent reply other threads:[~2005-05-27 10:05 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
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 [this message]
[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=4296F088.nail3L121R2F5@burner \
--to=schilling@fokus.fraunhofer.de \
--cc=7eggert@gmx.de \
--cc=linux-kernel@vger.kernel.org \
/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