topherg
topherg

Reputation: 4303

Java only Operating System

Are there any operating systems that when fully loaded only provide a java environment for console application execution? Ideally one which will automatically start programs when its loaded up

Upvotes: 1

Views: 649

Answers (3)

Mike Samuel
Mike Samuel

Reputation: 120526

Even if it did exist, it would not by itself provide any security benefits.

A java application can still exercise almost all user-ring authority made available by the OS. If it can write somewhere on the library load path or start another java application with a specified library load path then it can:

  1. Write out a native library to the file-system.
  2. Define a class with native methods backed by that library.
  3. Call System.loadLibrary to load that library.
  4. Invoke those native method to execute arbitrary user-ring code.

If you want an operating system that allows you to effectively control the authority available via the shell, then read up on

  1. "secure operating systems" like KeyKOS,
  2. sandboxing processes using "virtual machines", and
  3. providing a smaller shell interface using "restricted shells".

Upvotes: 1

cleong
cleong

Reputation: 7626

There's also the Phantom OS, being worked on by some Russian programmers. The system has no concept of files. Everything is an object living in one large memory space.

Upvotes: 1

user784540
user784540

Reputation:

Here is a such thing with name: JavaOS

From my point of view better approach is to install a Linux distribution pack or small Linux distribution pack with java support and put your java code to the OS startup. To run it when OS has been started.

Upvotes: 1

Related Questions