Search the web
Sign In
New User? Sign Up
frink
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Embedding Frink?   Message List  
Reply | Forward Message #223 of 257 |
Re: [Frink] Re: Embedding Frink?

Ryan Voots wrote:
> I would certainly be interested in any documentation on this, i
> currently planned on using chroots and resource limits to prevent this
> (ain't unix grand?) but if i can do it inside of frink i could
> probably have things much more useful.

I've added a single convenience method to easily enable the most
restrictive security measures on a Frink interpreter. This should be
called before parsing untrusted input. Details have been added to the
"Embedding Frink" section of the document:

http://futureboy.us/frinkdocs/#EmbeddingFrink

and to the "Frink" class in the javadocs:

http://futureboy.us/frinkdocs/integrate/

Of course, setting up a chroot environment and resource limits are
also good ideas. You could alternatively do something similar using
Java's SecurityManager classes, and, of course, most Java VMs allow you
to set the maximum amount of memory that the VM can use. Several layers
of security couldn't ever hurt, though.

Please let me know if you have any questions. You'll need to
download the latest version of Frink (2008-09-07) of course.

--
Alan Eliasen | "Furious activity is no substitute
eliasen@... | for understanding."
http://futureboy.us/ | --H.H. Williams



Mon Sep 8, 2008 4:59 am

aeliasen
Offline Offline
Send Email Send Email

Forward
Message #223 of 257 |
Expand Messages Author Sort by Date

I've been wanting to use frink for doing calculations internally in a program and I'm wondering if there is a supported way to do this? (its for an IRC bot)....
Ryan Voots
simcop2387
Offline Send Email
Sep 6, 2008
8:49 am

... Yes, there is a way to embed Frink into a Java program. The section of the documentation entitled "Embedding Frink" is a good place to start: ...
Alan Eliasen
aeliasen
Offline Send Email
Sep 6, 2008
6:04 pm

... section ... I don't know how i've overlooked that all of last night. ... people ... them ... I would certainly be interested in any documentation on this,...
Ryan Voots
simcop2387
Offline Send Email
Sep 7, 2008
7:36 am

... I've added a single convenience method to easily enable the most restrictive security measures on a Frink interpreter. This should be called before...
Alan Eliasen
aeliasen
Offline Send Email
Sep 8, 2008
4:59 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help