Re: linux-kernel-digest V1 #806

From: Jamie Lokier (jamie.lokier@cern.ch)
Date: Mon May 22 2000 - 10:31:56 EST


Aaron Denney wrote:
> > perhaps you can explain how an audio application with a GUI that needs
> > to take advantage of SCHED_FIFO in some subset of its threads, and/or
> > mlock(2), can be run without suid (or sudo, though it seems that the
> > problems there are pretty similar) ?
>
> SCHED_FIFO can be done with a 18-line suid helper wrapper. I don't
> see why it couldn't fork() and exec() a helper app to mlock() a shared
> memory segment for audio data buffering.

SCHED_FIFO can also lock up the machine. You can protect against that
with a watchdog process but it's more than 18 lines.

-- Jamie

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



This archive was generated by hypermail 2b29 : Tue May 23 2000 - 21:00:21 EST