[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 : "adrian(a)jboss.org" wrote :
| | | I also don't see the need for the permission to set the codesource generator.
| | | If somebody can get access to the policy then can make all sorts of other
| | | changes anyway. Getting access to the classloader
| | | implementation objects is already controlled by
| | |
| | | | sm.checkCreateClassLoader();
| | | |
| | | checks.
| |
| | An uninitiated system administrator configuring the security manager policy can wrongly configure any user applications to have "all" permissions, which means any controls we have placed for security are negated (including checkCreateCL).
|
| I don't see your point? If the administrator configures it wrong then
| there's nothing we can do about it.
| That's like saying you should ban cutlery because you can stab yourself in the eye
| with a fork. ;-)
I am commenting on "I also don't see the need for the permission to set the codesource generator.
| | If somebody can get access to the policy then can make all sorts of other
| | changes anyway.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4188154#4188154
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4188154
17 years, 5 months
[Design of POJO Server] - Re: VFS Permissions - JBMICROCONT-149
by adrian@jboss.org
"anil.saldhana(a)jboss.com" wrote : "adrian(a)jboss.org" wrote :
| | I also don't see the need for the permission to set the codesource generator.
| | If somebody can get access to the policy then can make all sorts of other
| | changes anyway. Getting access to the classloader
| | implementation objects is already controlled by
| |
| | | sm.checkCreateClassLoader();
| | |
| | checks.
|
| An uninitiated system administrator configuring the security manager policy can wrongly configure any user applications to have "all" permissions, which means any controls we have placed for security are negated (including checkCreateCL).
I don't see your point? If the administrator configures it wrong then
there's nothing we can do about it.
That's like saying you should ban cutlery because you can stab yourself in the eye
with a fork. ;-)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4188151#4188151
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4188151
17 years, 5 months
[Design of POJO Server] - Re: VFS Permissions - JBMICROCONT-149
by adrian@jboss.org
"anil.saldhana(a)jboss.com" wrote : Currently, the classloader system is the issue to get AS5 working under a security manager. Your approach of security.xml did the same (introduction of SM after the CL).
|
| file:/some/directory/my.jar/sub.jar is still being opened and its permissions read by the Policy implementation.
|
It can't do, the URL is invalid. The correct permission is to be able to read
file:/some/directory/my.jar
anonymous wrote :
| This is where we have issues. We cannot read the vfs urls and the introduction of the VFS handlers into bootstrap is unknown territory at the moment.
|
But if you fix that problem (which from my point of view you don't need to do
since the security.xml solves the problem and makes the configuration easier)
then the issue is what permissions you add to the class based on the codesource.
If the VFS URLHandler had its own permission which implied the relevant
file/socket/net permission(s) then all we'd need to do is retrieve that permission
from the VFS url and add it.
e.g.
new VFSPermission("vfsfile:/blah/path/file", ...) imples
new FilePermission("/blah/path/file", ...)
and similarly for whatever is required for zip/jar files
This removes the url hacking for permissions and places the url mapping problem in the
VFS url handlers where they belong.
The url hacking is still required if somebody wants to use the file: url as the codesource,
but it must be the correct one, i.e. the url of the top level jar file.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4188149#4188149
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4188149
17 years, 5 months