lkml.org 
[lkml]   [2009]   [Sep]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/6] SECURITY: selinux, fix update_rlimit_cpu parameter
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@namei.org>


\
 
 \ /
  Last update: 2009-09-01 10:51    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site