Re: [PATCH] [request for inclusion] Realtime LSM

From: Paul Davis (paul_at_linuxaudiosystems.com)
Date: 01/07/05

  • Next message: Andi Kleen: "Re: [patch] kprobes: dont steal interrupts from vm86"
    To: Lee Revell <rlrevell@joe-job.com>
    Date:	Fri, 07 Jan 2005 07:56:02 -0500
    
    

    I just read the thread of messages about this, and I am just
    dumbfounded. Jack O'Quin has very politely explained the whole thing,
    and it appears that almost nobody actually paid attention to what
    he was saying.

    1) capabilities: it has been explained by several people that
    capabilities do not work, and in the past there has been an utter lack
    of interest on the part of the kernel crowd to fix them, sometimes
    even going as far as "it can't be fixed".

    2) this is *not* only about scheduling. Realtime tasks need
    mlockall() and/or mlock as well. even the man page for mlock
    recognizes this, yet almost all the discussion here has focused on
    scheduling.

    3) christoph claims that using uid/gid to define priviledge scope
    is a bad idea. but that is the *desired* method. uid/gid corresponds exactly
    to what the users of these systems want. they don't want priviledge
    accorded to specific applications - its the *users* not the
    applications that have the right to get RT scheduling, lock down
    memory and so on. these applications will run without RT priviledges,
    just not very well (in general, so badly that they are unusable for
    their intended purpose).

    4) christoph's claims about OS X are nothing but ridiculous. whatever
    the internals of Darwin may or may not be (and they certainly include
    some of the best ideas about media-friendly kernels from the last 20
    years, unlike our favorite OS), professional people are using OS X
    (like they used OS 9 and OS 8 before) to get serious, paid work done
    in a way that they cannot on Linux. and if attitudes like christoph's
    prevail, in a way that they will never get to do on Linux without
    going through steps that they will consider absurd. Alan jokes (i
    presume) "oh, thats easy, make everyone root", but thats not what OS X
    does. OS X says "we know that running realtime applications matters
    for a broad class of our likely users, and so anyone can do it, not
    just root". And note: "realtime applications" does not mean just
    "rt-scheduled", as noted above.

    5) setuid wrappers don't work for this, because even though you can
    change the scheduling class of another process, you cannot "grant" it
    the ability to use mlock. at least not without capabilities, so back
    to (1) above ...

    So, what do we have here? The two most successful media-friendly OS's
    (BeOS and OS X) demonstrate clearly the way things need to be from the
    user experience perspective, a development community within the Linux
    world evolves a solution using the very nice new security modules in
    2.6, and then people who don't appear to understand anything about
    what is required or what the use cases are say "i don't like and
    because nobody pays me i don't have to tell you why".

    I've spent probably burnt through to $250,000 supporting myself and my
    family over the last 5 years while I develop pro-level audio software
    for Linux. I don't expect to see any of that back. So when Christoph
    chimes in with the "I'm not paid, I don't have to tell you why I don't
    like it, I just don't" ... that really, really, really irritates me in
    a way that few other comments do.

    We (Jack, Lee and now myself) have tried to explain what the problem
    with the kernel is, how LSM makes a solution possible, acknowledged
    issues and attempted to address them, and finally have offered up a
    working patch that makes life easier for a bunch of people who don't
    want to run webservers or compile kernels all day. If you're going to
    publically argue that what the "realtime" LSM does should not be part
    of the kernel, at least do us the favor of showing us enough respect
    to provide technical or policy based reasons for why its such a bad
    solution.

    --p
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Andi Kleen: "Re: [patch] kprobes: dont steal interrupts from vm86"

    Relevant Pages

    • Re: [SLE] 32-bit machines hit physical RAM limit at 4GB?
      ... The problem is that you're applying kernel modes to application ABI. ... the processes are built for various Linux memory models ... Several people have rebuilt x86 applications that can ...
      (SuSE)
    • Re: OReilly Radar: some switching from Mac to Ubuntu
      ... Ubuntu has impressed me as the most polished and feature-rich Linux ... require a kernel recompile every time a new version of the Linux kernel ... necessity of compiling the kernel in order to use the applications I ...
      (comp.sys.mac.advocacy)
    • Re: RT patch acceptance
      ... This corresponds to use Linux in _any_ way - nano or preempt ... > nicer since some applications are first written generically, ... >> the Linux scheduler with mutex and queueing mechanisms works correctly. ... It's just that the kernel is so big to find ...
      (Linux-Kernel)
    • Re: What flavor of linux would one recommend?
      ... >> And what does all that say about the future of Linux on the desktop, ... distrobutions may be looking for one which installs as easily as Windows ... I would think that any distribution of the current kernel would be ... applications you need it would be how stable the whole opreation would be. ...
      (alt.linux)
    • Re: differences between kernel-tree and kernel-source and kernel image
      ... > will this install the kernel or try to patch an existing 2.6 kernel or ... affix-source - Driver source for the Affix Bluetooth protocol stack for Linux ... atlas-doc - Automatically Tuned Linear Algebra Software,documentation ...
      (Debian-User)