Subject: Re: kauth and sched_{get,set}param
To: Elad Efrat <elad@NetBSD.org>
From: Mindaugas R. <rmind@NetBSD.org>
List: current-users
Date: 02/01/2008 01:41:57
Elad Efrat <elad@NetBSD.org> wrote:
> I've attached a patch, <...>
Memory allocation/freeing and other operations which may block should
not be performed with the lock held.
> @@ -325,6 +306,35 @@ sys__sched_setaffinity(struct lwp *l,
> ...
> + if (kauth_authorize_process(l->l_cred, KAUTH_PROCESS_SCHEDULER,
> + l->l_proc, KAUTH_ARG(KAUTH_REQ_PROCESS_SCHEDULER_SETAFFINITY),
I think you meant p, instead of l->l_proc.
--
Best regards,
Mindaugas
www.NetBSD.org