db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Leroux <s...@wanadoo.fr>
Subject Re: Using security manager to grant permission to db stored procedures
Date Mon, 17 Aug 2009 15:33:34 GMT
Hi Rick,

And thanks for this answer.

To close that subject, I must say that I wasn't able to set the required 
privilege using neither of the rules:

 > grant codebase "${derby.install.url}derby.jar" {
 >     permission java.net.SocketPermission  "*:25", "connect"
 > }
 > grant codebase "${derby.install.url}derbynet.jar" {
 >     permission java.net.SocketPermission  "*:25", "connect"
 > }

The only one that does the trick was:
 > grant {
 >     permission java.net.SocketPermission  "*:25", "connect"
 > }
But, this will allow any class from any JAR directly or indirectly 
loaded in the JVM to send mail...

 > So I have created DERBY-4354 to track this issue. Feel free to
 > vote for this issue--that will improve its chances of being considered
 > for a future feature release.
I will do!

Sylvain
-- 
Website: http://www.chicoree.fr

Mime
View raw message