[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Security manager problem
From: |
Anthony Green |
Subject: |
Re: Security manager problem |
Date: |
Tue, 06 Dec 2005 08:27:15 -0800 |
On Tue, 2005-12-06 at 16:14 +0000, Gary Benson wrote:
> I'm having security manager problems, with JamVM at least. Various
> initialisations happen the first time a permission is checked,
> including java.security.Security's <clinit> method which reads the
> provider files $vendor.security and classpath.security. By this time
> you are most likely running under a security manager, so if that
> doesn't allow those files to be read then you get SecurityExceptions
> you weren't expecting.
It's been a long time since I've read anything about this kind of stuff,
but my understanding is that you simply wrap things like this up in a
AccessController.doPrivileged(), since the access control context of the
bootstrap or system class loader will permit file I/O.
AG
- Security manager problem, Gary Benson, 2005/12/06
- Re: Security manager problem,
Anthony Green <=
- Re: Security manager problem, Gary Benson, 2005/12/06
- Re: Security manager problem, Robert Lougher, 2005/12/06
- Re: Security manager problem, Gary Benson, 2005/12/07
- Re: Security manager problem, Gary Benson, 2005/12/12
- Re: Security manager problem, Mark Wielaard, 2005/12/13
- Re: Security manager problem, Gary Benson, 2005/12/22
Re: Security manager problem, Tom Tromey, 2005/12/06