lkml.org 
[lkml]   [2004]   [Oct]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] Realtime LSM
From
Date
Chris Wright <chrisw@osdl.org> writes:

> * Lee Revell (rlrevell@joe-job.com) wrote:
> > OK, poor choice of words. Correctness of course comes before ease of
> > use. I believe the realtime-lsm module satisfies both requirements.
>
> I agree with that. That's not my objection. It's about pushing code
> (albeit it's small and non-invasive) into the kernel that can be done in
> userspace, that's all.

> > > Hrm, I guess we'll have to agree to disagree. The whole point of the
> > > mlock rlimits code is to enable this policy to be pushed to userspace.
> > > A generic method of enabling capabilities is the best way to go, long
> > > term. Any interest in pursuing that?

None here. I prefer to spend my time on audio development than kernel
code. There are plenty of good kernel developers already.

I agree that a generic capabilities module would be nice to have,
mainly because of current difficulties with stacking multiple LSM's.
However, if there were a good stacking facility, then multiple,
simple, application-oriented modules like the realtime-lsm might be
even better in some respects.

> > I did not mean to imply that I disagree with the realtime-lsm approach.
> > Obviously some kernel support is required, and realtime-lsm seems to
> > solve the problem with the minimum possible change to the kernel. And
> > above all it is a proven working solution that has been field tested for
> > months by many, many users.
>
> Clearly it's useful for the audio folks. Whether it's the right thing
> to go into the kernel is all that's in question here. Do we agree it's
> a stopgap measure making up for lack of a better general solution?

Sure, I agree. But, I suspect that gap looks much larger from my
perspective than yours. :-)

We would never have developed this LSM had there not been a serious
need. Audio developers have been struggling for years with the need
to apply specialized kernel patches to get acceptable realtime
operation. Audio is very intolerant of realtime glitches. They cause
nasty pops in the output. And, large audio applications should not
run as `root'. The 2.4 "capabilities patch" was never a satisfactory
solution.

Thanks to the good work being done on 2.6, we are now close to being
able to do serious realtime work with standard kernels available
everwhere. The LSM framework is an important element of that
solution, with the realtime LSM a small but essential component,
because it makes these features available without excessive
administrative burden. Many musicians have a Mac or Windows
background. They are not willing to perform complex system
administration tasks to get good audio performance. PAM is great for
sophisticated sysadmins on shared systems. But, I seriously doubt
many musicians will be able to configure it correctly. For a
single-user Digital Audio Workstation it is overkill.

So, even if you do provide a more general solution, I will probably
have to continue supporting the realtime-lsm interface throughout the
2.6 kernel life-cycle, as there will be enough users for it to be a
defacto standard. If it is no longer needed in the 2.8 timeframe, I
can drop support then.

It's hard to say how many people use realtime-lsm right now.
SourceForge lists about 1500 source downloads over the last six
months. Binary copies are included in the most popular audio-oriented
distributions, including Planet CCRMA and DeMuDi. I guess there are
probably no more than a few thousand active users.

These are already enough that I feel committed to providing whatever
module updates are required for all official 2.6 kernel versions.
Including the LSM in the kernel would distribute it to more users. It
would also simplify maintenance slightly. I currently maintain a
single source that works for all 2.6 versions. As a practical matter,
I may ignore some of the pre-2.6.6 issues in the next release.

Is that what you meant by stop-gap? :-)
--
joq
-
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/

\
 
 \ /
  Last update: 2005-03-22 14:06    [W:0.159 / U:1.224 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site