Page 1 of 1

Using external library

Posted: Wed Sep 10, 2008 10:39 am
by STAKANOV
First of all, Thanks for great work!

Might you make way for calling functions from external dll/so-libraries?
I mean something like this:

Code: Select all

 Lib:=LoadLibrary("externallib");
 a:=Lib.SomeMyFunc(b,c);
I think, it will make eScript more flexible and script's developers get more features.

PS. Sorry for my English

Re: Using external library

Posted: Thu Sep 11, 2008 11:59 pm
by Yukiko
The biggest issue with this is security.
The POL virtual machine is pretty secure because it has limited (mostly no) access to the host machine. Allowing it access to external DLLs would make it possible for security vulnerabilities to be introduced and I think that is one of the things the developers are working hard to prevent.

Re: Using external library

Posted: Sun Sep 21, 2008 7:28 am
by Nando
Access to external libs would be a great addition. Just make it so you have to specify allowed libraries on pol.cfg, or if LoadLibrary is enabled.

The DLL would probably be specific for POL, no user32.dll or anything like that, because of eScript variable types. It would be shard's admin
decision on trading security for features. As an example, mIRC scripts had a lot of new features because of some custom DLLs, even though
they are very specific on how you call.

Re: Using external library

Posted: Fri Dec 19, 2008 4:30 pm
by MuadDib
I dunno. However, we are making a DLL for interacting in other ways with POL. (Pack/Unpack, AuxSvc Connector, etc etc).

Re: Using external library

Posted: Sat Dec 20, 2008 3:12 am
by Yukiko
Maybe I am just too security conscious but the thougt of letting the walls of the sandbox be opened up for external access kind of makes me nervous.

Maybe I listen to too many SecurityNow! netcasts.
: P