Re: [PATCH 1/6] SECURITY: selinux, fix update_rlimit_cpu parameter

From: James Morris
Date: Tue Sep 01 2009 - 04:49:20 EST


On Tue, 1 Sep 2009, Jiri Slaby wrote:

> > This doesn't look correct to me: the original code determines
> > rlim->rlim_cur and then updates current to that. With your change, this
> > value is not used.
>
> No, the for loop is to alter all limits according to the init limits.

Ahh, ok, I misread the code.

>
> update_rlimit_cpu is called for RLIMIT_CPU to annotate scheduler about
> CPU time changes (if any).
>
> BTW this was introduced by f06febc96ba8e0af80bcc3eaec0a109e88275fac
> (timers: fix itimer/many thread hang).
>

--
James Morris
<jmorris@xxxxxxxxx>
--
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/