Messages in this thread | | | Date | Tue, 1 Sep 2009 18:48:25 +1000 (EST) | From | James Morris <> | Subject | Re: [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>
| |