Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kauth and sched_{get,set}param



Elad Efrat <elad%NetBSD.org@localhost> 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




Home | Main Index | Thread Index | Old Index