views:

145

answers:

2

What is the process I should use to accomplish the goal of building a version of FreeBSD that is capable of running a Java VM but not capable of any other functionality including, but not limited to:

  1. Running any process other than the Java VM
  2. Disabling any/all shell access
  3. When the Java VM exits, the OS shuts down

I need to support JDK 1.6, so approaches such as SANOS do not work.

+4  A: 
  1. Configure the init script to run the JVM after user authentication.
  2. Remove the line in one of the init scripts that spawns the shell, typically after user authentication.
  3. There should be a listener for Java processes, if it doesn't find any, fire "init 0" or "shutdown" or "poweroff"
Joset
+1  A: 

The Sanos Operating System Kernel is a project doing exactly that, except that it uses a Windows JVM instead of a FreeBSD JVM. Only the functionality needed by the JVM is provided by Sanos, nothing else.

http://www.jbox.dk/sanos/

Thorbjørn Ravn Andersen
I am aware of SANOS but it does not support jdk 1.6
jm04469