Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to "jail" Java applications?

My bank has an applet that requests "unrestricted access" to my computer. That makes me feels very uneasy.

There should be a way to tell the java runtime that my system's root directory is something like /Users/myuser/javajail , and that would be all that java could access.

share|improve this question
You should perhaps ask your bank why they want unrestricted access to your computer. I wouldn't give that to my government (although they might take it anyway). – Tom Hawtin - tackline Oct 5 '09 at 6:45
up vote 5 down vote accepted

You could fake this by creating an account Jail with the minimum of rights and then running Safari with

su Jail -c /Applications/ 

When you need to access your bank.

Another option is to go to the Java Preferences and activate the Java Console. You can then poke around at what class there are and then write a policy file that jails that applet. Not sure how easy this would be. Your best bet would be to make the policy system wide in the current JVM by installing within the classpath under /Library/Java/Home

share|improve this answer
The permissions granted by the PlgIn would be in addition to that supplied by the policy file. – Tom Hawtin - tackline Oct 5 '09 at 6:44

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .