Re: Modifying kernel so that non-root users have some root capabilities

From: Neale Banks
Date: Mon May 24 2004 - 18:18:40 EST


On Mon, 24 May 2004, Laughlin, Joseph V wrote:

> I've been tasked with modifying a 2.4 kernel so that a non-root user can
> do the following:
>
> Dynamically change the priorities of processes (up and down)
> Lock processes in memory
> Can change process cpu affinity
>
> Anyone got any ideas about how I could start doing this?

Have you had a look at kernel capabilities?

E.g. CAP_SYS_NICE in linux/include/kernel/capability.h might be somewhat
interesting.

> (I'm new to kernel development, btw.)

No offence implied, but questions like this are better addressed in a
forum such as the kernelnewbies list, see:
http://www.kernelnewbies.org/mailinglist.php3

HTH,
Neale.

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