RuntimePermission "exitVM" / Threads permissions

Serafin Jose Estevez Andres (uov01955@correo.uniovi.es)
Sun, 20 Jun 1999 09:08:31 +0200

Date: Sun, 20 Jun 1999 09:08:31 +0200
From: Serafin Jose Estevez Andres <uov01955@correo.uniovi.es>
Subject: RuntimePermission "exitVM" / Threads permissions
To: java-security@java.sun.com

Hail, Sun wizards.

How does java.lang.RuntimePermission "exitVM" work?
I mean, that permission seems to be *always* granted, so a call to
System.exit() never throws exception. Is there a way to restrict that
permission???
Some people say even it's a bug...

Something quite similar occurs with Threads. We don't want any thread to be
able to modify its own priority, but it seems that permissions don't work
for them, they work only for "system threads", a thing I can't understand.
I think system threads should be the only ones able to do anything they'd
like...
Anyway, is there any way to have modify restrictions for threads, that
doesn't involve creating a SecurityManager subclass?

Our mobile agent system will thank you very much!
...And me also!

---
Serafin Jose Estevez Andres                uov01955(at)correo.uniovi.es
                                     i2883439(at)petra.euitio.uniovi.es
Sera  <==>:  P(T)-J-MJ-S-?                     s_estevez(at)hotmail.com
-> And remember... emmm..., damn. I forgot. :)