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    [W:0.020 / U:156.860 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site