Re: CPU time limit patch / setrlimit(RLIMIT_CPU, 0) cheat fix

2007-04-20 Thread Andrew Morton
On Tue, 17 Apr 2007 16:57:55 +0300 Tom Alsberg <[EMAIL PROTECTED]> wrote: > Hi there. > > As discovered here today, the change in Kernel 2.6.17 intended to > inhibit users from setting RLIMIT_CPU to 0 (as that is equivalent to > unlimited) by "cheating" and setting it to 1 in such a case, does

Re: CPU time limit patch / setrlimit(RLIMIT_CPU, 0) cheat fix

2007-04-20 Thread Andrew Morton
On Tue, 17 Apr 2007 16:57:55 +0300 Tom Alsberg [EMAIL PROTECTED] wrote: Hi there. As discovered here today, the change in Kernel 2.6.17 intended to inhibit users from setting RLIMIT_CPU to 0 (as that is equivalent to unlimited) by cheating and setting it to 1 in such a case, does not make

CPU time limit patch / setrlimit(RLIMIT_CPU, 0) cheat fix

2007-04-17 Thread Tom Alsberg
Hi there. As discovered here today, the change in Kernel 2.6.17 intended to inhibit users from setting RLIMIT_CPU to 0 (as that is equivalent to unlimited) by "cheating" and setting it to 1 in such a case, does not make a difference, as the check is done in the wrong place (too late), and only

CPU time limit patch / setrlimit(RLIMIT_CPU, 0) cheat fix

2007-04-17 Thread Tom Alsberg
Hi there. As discovered here today, the change in Kernel 2.6.17 intended to inhibit users from setting RLIMIT_CPU to 0 (as that is equivalent to unlimited) by cheating and setting it to 1 in such a case, does not make a difference, as the check is done in the wrong place (too late), and only