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 time is a quite hard static analysis to do.

On Tue, Jul 13, 2010 at 7:29 AM, Heinz N. Gies <he...@licenser.net> wrote:

>
> On Jul 13, 2010, at 2:44 , Folcon wrote:
>
> >
> >
> > On Jul 13, 1:36 am, ngocdaothanh <ngocdaoth...@gmail.com> 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 clojure application and
> > run scripts on it. Can they somehow be restricted?
> >
> > I will definitely consider running the app under a seperate user and
> > putting limits on that user as a whole.
>
> Hi Falcon,
> yes and no, you can limit CPU usage by limiting execution time. Limiting
> memory usage of a specific code is hard at best and more goes towards the
> impossible corner - sadly, I try to do this myself for clj-sandbox and fail
> since about half a year :P.
>
> Regards,
> Heinz
>
> --
> 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 posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com<clojure%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
>

-- 
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 posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to