On Mon, 14 Jun 2004 18:01:37 -0400, "Québec" <personne@ok.la> wrote or
quoted :
> permission java.util.PropertyPermission "os.name", "read";
>};
[quoted text clipped - 16 lines]
>new File (System.getProperty("user.dir"))), 20, 60);
>.........................................
You gave yourself permission to look at the property not to go
stomping over the hard disk.
You did not even have to ask permission to peek at the property, since
user.dir is not a protected property.
See http://mindprod.com/wassup.html

Signature
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
Qu?bec - 15 Jun 2004 13:06 GMT
aHa............... Would the following do the trick?
// Do what you will
grant {
permission java.security.AllPermission;
};
> > permission java.util.PropertyPermission "os.name", "read";
> >};
[quoted text clipped - 30 lines]
> Coaching, problem solving, economical contract programming.
> See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
Roedy Green - 15 Jun 2004 21:00 GMT
On Tue, 15 Jun 2004 08:06:15 -0400, "Québec" <personne@ok.la> wrote or
quoted :
>// Do what you will
>grant {
>permission java.security.AllPermission;
>};
Make sure you don't grant that to EVERY Tom Dick and Harry.
See http://mindprod.com/jgloss/policyfile.html

Signature
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.