logo       

Re: Restricting permissions: msg#00064

lang.jython.user

Subject: Re: Restricting permissions

You could create a custom class loader and load the jython interpreter with that. This class loader would either decline to load any classes you think are a security risk, or only load classes that you have specified as acceptable.

Mark McKay wrote:


I'd like to use Jython as a scripting language for an editor I'm writing in Java. This editor loads, modifies and saves XML files. I want to provide the ability to write macros to automate editor processes. However, I want to prevent these macros from accessing the filesystem or the network. Is there a way to do this?

Thanks,

Mark McKay
http://www.kitfox.com


-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Jython-users mailing list
Jython-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/jython-users





-------------------------------------------------------
SF.Net email is sponsored by: GoToMeeting - the easiest way to collaborate
online with coworkers and clients while avoiding the high cost of travel and
communications. There is no equipment to buy and you can meet as often as
you want. Try it free.http://ads.osdn.com/?ad_id=7402&alloc_id=16135&op=click


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise