-
1. Re: Using SecurityManager
dediana Sep 20, 2002 5:01 PM (in response to dediana)OK, I discovered that there is an MBean that do the work.
It has to be configured in jboss-service.xml:
<mbean
code="org.jboss.security.plugins.SecurityPolicyService"
name="jboss.security:service=SecurityPolicyService">
<attribute name="PolicyFile">server.xml</attribute>
</mbean>
and server.xml has the same information that a policy file. My configuration is:
<?xml version='1.0' encoding='UTF-8' ?>
<application-policy>
<authorization>
<grant>
<permission>
<name>java.io.FilePermission</name>
<code>C:/Test/-</code>
<actions>read</actions>
</permission>
</grant>
</authorization>
</application-policy>
But it still doesn´t work.
Any hints?
Thanks,
Dediana