Re: limiting subroutine run time

[prev] [thread] [next] [Date index for 2005/05/11]

From: Perrin Harkins
Subject: Re: limiting subroutine run time
Date: 14:48 on 11 May 2005
On Tue, 2005-05-10 at 21:43 -0700, Igor Chudov wrote:
> These user submitted perl scripts will be executed
> inside Safe.pm compartment. I hope that they will be
> secure enough.

It won't be, if someone is determined to damage your system.

> My question is, is there some way to limit execution
> time of a subroutine?

You can use Apache::Resource to set limits on CPU.  It will kill the
process if it goes over, but this is probably for the best.

- Perrin

limiting subroutine run time
Igor Chudov 04:43 on 11 May 2005

Re: limiting subroutine run time
Enno 11:42 on 11 May 2005

Re: limiting subroutine run time
Perrin Harkins 14:48 on 11 May 2005

Re: limiting subroutine run time
Igor Chudov 14:57 on 11 May 2005

Re: limiting subroutine run time
Perrin Harkins 15:04 on 11 May 2005

Re: limiting subroutine run time
Igor Chudov 17:58 on 11 May 2005

Re: limiting subroutine run time
Stas Bekman 18:09 on 11 May 2005

Re: limiting subroutine run time
Stas Bekman 17:24 on 11 May 2005

Re: limiting subroutine run time
Igor Chudov 18:01 on 11 May 2005

Generated at 15:53 on 25 May 2005 by mariachi v0.52