[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Controling dynamic memory size
From: |
Jordi Gutiérrez Hermoso |
Subject: |
Re: Controling dynamic memory size |
Date: |
Tue, 20 Mar 2012 00:34:24 -0400 |
On 19 March 2012 21:58, Rychlik, Marek R - (rychlik)
<address@hidden> wrote:
> Is there a way to impose a limit on the size of the dynamic memory allocated
> by octave?
The jailing should be done at the OS level, not by Octave. Set
appropriate ulimits, e.g.
https://lopsa.org/node/1755
There are many other things you want to restrict, such as fork bombs
and infinite loops. You should also run Octave in a jail, virtual
machine, or a chroot, without write permissions. These should all be
done at the OS level.
Also, it's tempting to try to disable certain Octave commands, but
this is a losing battle, because there are many ways to run
destructive Octave commands.
HTH,
- Jordi G. H.