Re: Maxima web interface



On Fri, 26 May 2006, Robert Dodier wrote:

> tex should return \mbox for strings (since r1.37 src/mactex.lisp).

Is this in 5.9.3? When I type tex("foo bar"), Maxima prints

$$&foo bar$$

I've not tried it yet in the CVS build.

> It is not too difficult to make a variable read-only by using the
> Lisp property system (and not too difficult to make it read-write
> again, too). E.g.
>
> ?putprop ('display2d, ?neverset, ?assign);
> display2d : false;
> => Improper value assignment to display2d
>

This is probably sufficient for my needs. I filter out Lisp variables in 
the command line, so I could probably put this in the preload file used by 
the web interface.

> Well, attempting identify all troublesome functions seems messy,
> and easily broken.
> I'd rather approach this by imposing limitations from outside Lisp,
> i.e. to have the operating system make the filesystem apparently
> read-only and to put cpu and memory limits on the Maxima process.
> Not sure what's workable here.

While there are some specific functions I would like to disable 
("demo", "describe", "plot", "system," etc.) running Maxima in a chroot 
jail as William Stein suggested would be an easier way to protect the 
filesystem.

I'm going to be experimenting with the CVS version of Maxima and hopefully 
get it running on the server soon. I'll also look into setting up a chroot 
jail for the process to run in.

-matt