Custom Security Manager Questions

Ed Smiley (esmiley@meridian-data.com)
Fri, 03 Jan 97 17:10:50 PST

Date: Fri, 03 Jan 97 17:10:50 PST
From: "Ed Smiley" <esmiley@meridian-data.com>
Message-Id: <9700038523.AA852340527@smtpgate.meridian-data.com>
To: java-security@java
Subject: Custom Security Manager Questions

Aha! I hope I have the right address, now...

______________________________ Forward Header __________________________________
Subject: Custom Security Manager Questions
Author: Ed Smiley at Meridian
Date: 1/3/97 4:56 PM

I am in the process of building a custom Security Manager and I wanted to
check on details not completely nailed down in the FAQs and books that I
have read. In terms of *SECURITY* I want to be on solid ground.

The easiest way to ask the question is by example,

Say I have an application called Exec_er.class.
Also I have applications called a1.class, a2.class, etc.
Exec_er installs a custom Security Manager right off in its main method.
It then launches a thread that loops through a periodically updated list
of classes and proceeds to instantiate a1, a2, ... as a1inst, a2inst etc.
then invoking a1inst.main(); a2inst.main()...

The reason I am looking at this design is that I want to launch
"fork off" complete child applications determined at runtime from a
runtime engine (which I call Exec_er). Rather than doing a true launch
through the OS (exec'ing "java a1"...), I want to get the applications
running independently in tandem, but restricted by the Security Manager I
put in place.

My questions are as follows:
1. Will each class inherit the Security Manager in effect when the main()
method was called, that is to say, in Exec_er? I'd think yes.
2. Will each main() method (a1inst.main(); a2inst.main()...)get a
separate thread of execution? I would think so as well.

Thank you for your help
Ed Smiley