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

Chris Wright
2005-01-14T07:55:43Z

* Andrew Morton (akpm@osdl.org) wrote:
> Matt Mackall <mpm@selenic.com> wrote:
> >
> > The closest thing to concensus I've seen yet was a new rlimit for
> > scheduling with code from Chris Wright.
>
> hmm, yes. It doesn't feel like an rlimity thing to me, unless the rlimit
> actually _limits_ something. Say, minimum permissible nice level. But
> scheduling policy sounds more like a capability than an rlimit.

It's had a few incarnations with minor tweaks. But they each did
provide a limit, an upper bound, on how the user could prioritize it's
task with the scheduler (both nice values and rt priorities).

> > We really ought not get in
> > the habit of adding new rlimits though.
>
> How come? It's a real pita that the standard shells don't appear to have a
> way of setting an unknown rlimit. But what else?

It's got that slippery slope feeling. When do you decided that you're
just punting everything to an rlimit and it becomes an unmanaged mess?
However, in this case, at least it's easy to justify cpu time as a
resource. I'll repost in the AM...sleep calls.

thanks,
-chris
--
Linux Security Modules http://lsm.immunix.org http://lsm.bkbits.net