Re: [Ironpython-users] Restrict referencing of assemblies in hosted environment

2012-10-17 Thread Jeff Hardy
On Wed, Oct 17, 2012 at 3:08 AM, Markus Schaber wrote: > Hello, > We’re using IronPython as a hosted script engine in our application. > Now, we want to restrict the assemblies a user can reference from its python > script, > > Currently, we just forbid “import clr”, by wrapping the import() meth

Re: [Ironpython-users] Restrict referencing of assemblies in hosted environment

2012-10-17 Thread Keith Rome
Take a look at the PlatformAdaptationLayer class. You can create your own and plug it in to the runtime. This might provide the hooks you are looking for. In particular, you should be able to override the LoadAssembly() and LoadAssemblyFromPath() methods to block anything that isn't whitelisted

[Ironpython-users] IronPython, Daily Digest 10/16/2012

2012-10-17 Thread no_reply
Hi ironpython, Here's your Daily Digest of new issues for project "IronPython". In today's digest:ISSUES 1. [New issue] Memory Leak when using AppDomains -- ISSUES 1. [New issue] Memory Leak when using AppDomains http://ironpython.codeplex.com/wor

[Ironpython-users] Restrict referencing of assemblies in hosted environment

2012-10-17 Thread Markus Schaber
Hello, We're using IronPython as a hosted script engine in our application. Now, we want to restrict the assemblies a user can reference from its python script, Currently, we just forbid "import clr", by wrapping the import() method, but this is a bit harsh, and the side-effects are a little b