Re:RestrictedPython
by jakobson14 on Tuesday July 30, 2024 @01:01AM
(#41106169)
Sounds a lot like TCL's Safe interps?
[ Parent
| on HN ]
Re:RestrictedPython
by a-french-anon on Tuesday July 30, 2024 @04:26AM
(#41107149)
Yeah, first thing that came to my mind too. Though at a deeper level than simply replacing global procs.
Overview for unfamiliar readers:
https://www.tcl.tk/software/plugin/safetcl.html
https://wiki.tcl-lang.org/page/Config+file+using+slave+inter...
Re:RestrictedPython
by jakobson14 on Wednesday July 31, 2024 @12:49AM
(#41116465)
Still blows my mind that TCL includes a firewall and virtual filesystem layer.
https://wiki.tcl-lang.org/page/firewall
https://wiki.tcl-lang.org/page/VFS
https://wiki.tcl-lang.org/page/tclvfs
You can even build a FUSE filesystem in TCL!
Re:RestrictedPython
by jakobson14 on Wednesday July 31, 2024 @01:00AM
(#41116507)
Oh, side note: Safe interps now have available time limits and a few other measures, though it seems memory allocation limits are a harder nut to crack due to all the places a memory allocation can occur in the TCL interpreter.