You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@clerezza.apache.org by enridaga <en...@apache.org> on 2014/03/27 18:59:38 UTC

How to deal with java security for the virtuoso jdbc connection

Hi,
I am having an

java.security.AccessControlException: access denied
("java.net.SocketPermission" "<this-is-my-virtuoso-db-host>"
"resolve")

thrown while attempting to connect to my virtuoso database.
I can't say why I did not have it before...
I know I could manage this in the Virtuoso adapter, but which is the
proper/clerezza way of doing it?

Best,
Enrico

-- 
------------------------------------------------------------------------------
enridaga

Re: How to deal with java security for the virtuoso jdbc connection

Posted by Enrico Daga <en...@gmail.com>.
Hi Reto,
this is exactly the clarification I needed.

Cheers,
Enrico

On 27 March 2014 18:34, Reto Gmür <re...@wymiwyg.com> wrote:
> Hi,
>
> As you described it in the issue doing a privileged action is the right
> thing to do.
>
> Technically you could also assign the needed permission to the base-role but
> this seems the wrong solution. As when somebody has the permission to access
> a certain graph one shouldn't need additional permission like network
> permission or file access permission to effectively access that graph.
>
> Cheers,
> Reto
>
>
> On Thu, Mar 27, 2014 at 6:59 PM, enridaga <en...@apache.org> wrote:
>>
>> Hi,
>> I am having an
>>
>> java.security.AccessControlException: access denied
>> ("java.net.SocketPermission" "<this-is-my-virtuoso-db-host>"
>> "resolve")
>>
>> thrown while attempting to connect to my virtuoso database.
>> I can't say why I did not have it before...
>> I know I could manage this in the Virtuoso adapter, but which is the
>> proper/clerezza way of doing it?
>>
>> Best,
>> Enrico
>>
>> --
>>
>> ------------------------------------------------------------------------------
>> enridaga
>
>



-- 
Enrico Daga

--
http://www.enridaga.net
skype: enri-pan

Re: How to deal with java security for the virtuoso jdbc connection

Posted by Reto Gmür <re...@wymiwyg.com>.
Hi,

As you described it in the issue doing a privileged action is the right
thing to do.

Technically you could also assign the needed permission to the base-role
but this seems the wrong solution. As when somebody has the permission to
access a certain graph one shouldn't need additional permission like
network permission or file access permission to effectively access that
graph.

Cheers,
Reto


On Thu, Mar 27, 2014 at 6:59 PM, enridaga <en...@apache.org> wrote:

> Hi,
> I am having an
>
> java.security.AccessControlException: access denied
> ("java.net.SocketPermission" "<this-is-my-virtuoso-db-host>"
> "resolve")
>
> thrown while attempting to connect to my virtuoso database.
> I can't say why I did not have it before...
> I know I could manage this in the Virtuoso adapter, but which is the
> proper/clerezza way of doing it?
>
> Best,
> Enrico
>
> --
>
> ------------------------------------------------------------------------------
> enridaga
>