[Design of POJO Server] - Re: VFS Permissions - JBMICROCONT-149
by anil.saldhana@jboss.com
"adrian(a)jboss.org" wrote : "anil.saldhana(a)jboss.com" wrote : Additionally we can retain security.xml enabled. We should make it do the replacement work only if JBoss was started with a SM.
| |
| | I mean your original proposal of injecting the security manager in the security.xml needs to be removed and the replacement of protectiondomain becomes its objective.
|
| I'm sorry you've lost me again.
| conf/security.xml is an alternate to having to use the system properties.
|
| I created it because it is easier to configure than having to remember
| to specify system properties on the command line and avoids the vfs url
| parsing problem.
|
| Going forward conf/security.xml is what we want since it enables configuration
| (including our own security policy) from the profile service and therefore
| the management console.
|
| I've got no idea what you mean about replacing the protection domain?
| The protection domain is loaded from the security policy using the codesource url.
|
| The discussion above is about which codesource to use
| and automatically augmenting the returned permission collection
| with read access for the VFS, file, etc. from where we loaded the class
| (which can be different to the logical codesource - e.g. a copy of a nested jar into temp).
Sorry for having misunderstood. It made sense now.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4188239#4188239
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4188239
17 years, 5 months
[Design of POJO Server] - Re: VFS Permissions - JBMICROCONT-149
by adrian@jboss.org
"anil.saldhana(a)jboss.com" wrote : Additionally we can retain security.xml enabled. We should make it do the replacement work only if JBoss was started with a SM.
|
| I mean your original proposal of injecting the security manager in the security.xml needs to be removed and the replacement of protectiondomain becomes its objective.
I'm sorry you've lost me again.
conf/security.xml is an alternate to having to use the system properties.
I created it because it is easier to configure than having to remember
to specify system properties on the command line and avoids the vfs url
parsing problem.
Going forward conf/security.xml is what we want since it enables configuration
(including our own security policy) from the profile service and therefore
the management console.
I've got no idea what you mean about replacing the protection domain?
The protection domain is loaded from the security policy using the codesource url.
The discussion above is about which codesource to use
and automatically augmenting the returned permission collection
with read access for the VFS, file, etc. from where we loaded the class
(which can be different to the logical codesource - e.g. a copy of a nested jar into temp).
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4188236#4188236
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4188236
17 years, 5 months
[Design of POJO Server] - Re: VFS Permissions - JBMICROCONT-149
by anil.saldhana@jboss.com
"adrian(a)jboss.org" wrote : "adrian(a)jboss.org" wrote :
| | 1) The ability to map a vfs url to a real (top level) url
| |
|
| This requires something in the VFS, my suggestion was to add
| VFSUtils.getRealURL(vfsFile);
|
| anonymous wrote :
| | 2) Implementation of a VFSPermission that also implies the real url permission
| | (e.g. FilePermission for vfsfile:)
| |
|
| This is also in the VFS, in the url handlers.
|
| anonymous wrote :
| | 3) The option when you create a vfs classloader to specify whether to use
| | (i) the vfs url or (ii) the real url as the codesource.
| | Either way, we should include the VFSPermission in the ProtectionDomain
| | of the class defined by the VFSClassLoaderPolicy.
| |
|
| This is in the VFSClassLoaderPolicy and it is a simple boolean
| to control which codeSourceURL to use.
| It also requires adding root.toURL().openConnection().getPermission()
| to the permissions of the protection domain (assuming it is not the
| default AllPermission like it currently is now for vfs urls).
https://jira.jboss.org/jira/browse/JBNAME-8
We got JNDIPermissions from Scott recently. I think the VFSPermission should follow this format.
It is not clear how to configure the VFSClassLoaderPolicy. Is it via the classloader-system or the class loading?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4188218#4188218
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4188218
17 years, 5 months