I have built tcllib.dylib using critcl but I cannot load it into a Safe Interpreter because there is no Tcllibc_SafeInit entry point.
Is there a way to do this in critcl or should I dust of my C programming skills and try to roll my own DLL?
All help welcome :)
On 4/21/2022 1:42 AM, Julian H J Loaring wrote:Thank you, I think you are right.
I have built tcllib.dylib using critcl but I cannot load it into a Safe Interpreter because there is no Tcllibc_SafeInit entry point.
Is there a way to do this in critcl or should I dust of my C programming skills and try to roll my own DLL?
All help welcome :)
I'm afraid I don't know the direct answer to your question. However I
would suggest that instead of adding a Tcllibc_SafeInit entry point (if
there isn't one), you instead load tcllibc into your (unsafe) master and
then alias the specific commands you need into the safe slave taking
care that those commands are indeed safe to run within untrusted code.
tcllib is pretty big and includes various system access procedures
ranging from file access, process kills etc. I'm not sure how much of
that is covered by tcllibc but I would guess the range of commands in
tcllib is why a Tcllibc_SafeInit is not provided; many commands may not
be appropriate for inclusion into a safe interp.
/Ashok
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 497 |
Nodes: | 16 (2 / 14) |
Uptime: | 69:00:41 |
Calls: | 9,766 |
Calls today: | 7 |
Files: | 13,747 |
Messages: | 6,186,073 |