Re: limiting subroutine run time

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

From: Igor Chudov
Subject: Re: limiting subroutine run time
Date: 14:57 on 11 May 2005
--- Perrin Harkins <perrin@xxxx.xxx> wrote:

> 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.

Can you be a little more specific? Are you talking
about damage such as abuse of resources, or are you
talking about gaining unauthorized privileges?

 
> > 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.

Thanks. I will try using alarm also.
i

- Igor



		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - Helps protect you from nasty viruses. 
http://promotions.yahoo.com/new_mail

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