Using external library

Archive of the older Feature Request Forum Posts

Moderator: POL Developer

Locked
STAKANOV
New User
Posts: 1
Joined: Fri Aug 29, 2008 10:38 pm

Using external library

Post by STAKANOV » Wed Sep 10, 2008 10:39 am

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

Yukiko
Distro Developer
Posts: 2728
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Re: Using external library

Post by Yukiko » Thu Sep 11, 2008 11:59 pm

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.

Nando
POL Developer
Posts: 262
Joined: Wed Sep 17, 2008 6:53 pm
Contact:

Re: Using external library

Post by Nando » Sun Sep 21, 2008 7:28 am

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.

MuadDib
Former Developer
Posts: 1090
Joined: Sun Feb 12, 2006 9:50 pm
Location: Cross Lanes, WV

Re: Using external library

Post by MuadDib » Fri Dec 19, 2008 4:30 pm

I dunno. However, we are making a DLL for interacting in other ways with POL. (Pack/Unpack, AuxSvc Connector, etc etc).

Yukiko
Distro Developer
Posts: 2728
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Re: Using external library

Post by Yukiko » Sat Dec 20, 2008 3:12 am

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

Locked