[jboss-dev-forums] [Design of POJO Server] - Re: VFS Permissions - JBMICROCONT-149

anil.saldhana@jboss.com do-not-reply at jboss.com
Fri Nov 7 02:45:08 EST 2008


The following is happening:

  | FilePermission fp = new FilePermission(
  |             "file:/home/anil/jboss-5.0/jboss-head/build/output/jboss-5.0.0.GA/server/default/tmp/-",
  |             "read");
  |       FilePermission fq = new FilePermission(
  |             "file:/home/anil/jboss-5.0/jboss-head/build/output/jboss-5.0.0.GA/server/default/tmp/aopdynclasses",
  |             "read");
  |       
  |       assertTrue(fp.implies(fq));
  |       
  |       FilePermission fr = new FilePermission(
  |             "/home/anil/jboss-5.0/jboss-head/build/output/jboss-5.0.0.GA/server/default/tmp/aopdynclasses",
  |             "read");
  |       
  |       assertFalse(fp.implies(fr));
  | 

The assigned permission from the policy file is "fp"  with the protocol to be "file:". 

The security manager is checking for a File Permission with the protocol stripped out and just with the path (equivalent to fr).

Any vfs urls in the security policy file are rejected.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4187602#4187602

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4187602



More information about the jboss-dev-forums mailing list