A DSL for writing scripts which have restricted memory and cpu usage

2010-07-12 Thread Folcon
I want to provide a scripting api into my program which runs server side, but don't want my users to completely use up the resources on my server. Are there any ways to restrict how many resources a user has access to? Perhaps create a sandboxed environment per user which they can execute their scr

Re: A DSL for writing scripts which have restricted memory and cpu usage

2010-07-12 Thread ngocdaothanh
> Are there any ways to restrict how many resources a user has access to? If you use Linux, you see /etc/security/limits.conf. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that pos

Re: A DSL for writing scripts which have restricted memory and cpu usage

2010-07-12 Thread Folcon
On Jul 13, 1:36 am, ngocdaothanh wrote: > > Are there any ways to restrict how many resources a user has access to? > > If you use Linux, you see /etc/security/limits.conf. That is useful and I will keep that in mind, however I was thinking of application users, so they would login to the cloju

Re: A DSL for writing scripts which have restricted memory and cpu usage

2010-07-12 Thread Heinz N. Gies
On Jul 13, 2010, at 2:44 , Folcon wrote: > > > On Jul 13, 1:36 am, ngocdaothanh wrote: >>> Are there any ways to restrict how many resources a user has access to? >> >> If you use Linux, you see /etc/security/limits.conf. > > That is useful and I will keep that in mind, however I was thinkin

Re: A DSL for writing scripts which have restricted memory and cpu usage

2010-07-13 Thread Nicolas Oury
Yes and No but more No than Yes. If they can execute full Clojure, they can use all the memory they want. If they have the right to do a very small number of operation (building block for the program), you can limit the program they execute to those having those shape. But capping memory and CPU

Re: A DSL for writing scripts which have restricted memory and cpu usage

2010-07-13 Thread Mike Meyer
On Tue, 13 Jul 2010 08:29:00 +0200 "Heinz N. Gies" wrote: > > On Jul 13, 2010, at 2:44 , Folcon wrote: > > > > > > > On Jul 13, 1:36 am, ngocdaothanh wrote: > >>> Are there any ways to restrict how many resources a user has access to? > >> > >> If you use Linux, you see /etc/security/limits

Re: A DSL for writing scripts which have restricted memory and cpu usage

2010-07-13 Thread Folcon
Well I was thinking of providing a simplified subset of the language which be converted into clojure syntax and then executed, that way I would hopefully not give them the full power of the language, but they would still get a reasonable scripting language. Only the keywords that I choose would be