[cp-patches] Re: Security manager problem

2005-12-22 Thread Mark Wielaard
Hi Gary (and moved to classpath-patches), On Thu, 2005-12-22 at 15:15 +, Gary Benson wrote: Aha! There is your clue. libgcj hasn't merged in the new nio charset provider setup. And indeed creating a new CharsetProvider requires a RuntimePermission(charsetProvider). Even for creating the

Re: Security manager problem

2005-12-22 Thread Gary Benson
Hi Mark, Thanks for your quick reply, and apologies for my egregiously slow one... Mark Wielaard wrote: On Mon, 2005-12-12 at 17:55 +, Gary Benson wrote: Gary Benson wrote: Robert Lougher wrote: Do you have a testcase? If you build and run the attached testcase you ought to

Re: Security manager problem

2005-12-13 Thread Mark Wielaard
Hi Gary, On Mon, 2005-12-12 at 17:55 +, Gary Benson wrote: Gary Benson wrote: Robert Lougher wrote: Do you have a testcase? If you build and run the attached testcase you ought to see only one checkPermission() between Calling checkRead() and Done. ... In reality, JamVM chokes

Re: Security manager problem

2005-12-12 Thread Gary Benson
Gary Benson wrote: Robert Lougher wrote: Do you have a testcase? If you build and run the attached testcase you ought to see only one checkPermission() between Calling checkRead() and Done. ... In reality, JamVM chokes on it pretty hard. I _think_ what is happening is that the

Re: Security manager problem

2005-12-07 Thread Gary Benson
Robert Lougher wrote: On 12/6/05, Gary Benson [EMAIL PROTECTED] wrote: ...I was just looking at an some code in an AccessController.doPrivileged() that was doing security checks. Perhaps JamVM's AccessController.doPrivileged() is not in fact doing anything. What version of JamVM are

Re: Security manager problem

2005-12-06 Thread Anthony Green
On Tue, 2005-12-06 at 16:14 +, 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

Re: Security manager problem

2005-12-06 Thread Gary Benson
Anthony Green wrote: On Tue, 2005-12-06 at 16:14 +, 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

Re: Security manager problem

2005-12-06 Thread Tom Tromey
Anthony == Anthony Green [EMAIL PROTECTED] writes: Anthony Perhaps. Implementing proper sandbox behaviour is easy to defer. I Anthony think it will take the kind of work you are doing to drive VMs to take Anthony care of details like this. Do we even do it properly in libgcj (being Anthony

Re: Security manager problem

2005-12-06 Thread Tom Tromey
Anthony == Anthony Green [EMAIL PROTECTED] writes: Anthony It's been a long time since I've read anything about this Anthony kind of stuff, but my understanding is that you simply wrap Anthony things like this up in a AccessController.doPrivileged(), Anthony since the access control context of

Re: Security manager problem

2005-12-06 Thread Robert Lougher
Hi, On 12/6/05, Gary Benson [EMAIL PROTECTED] wrote: Anthony Green wrote: 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