agora inbox for pljava-dev@postgresql.org
help / color / mirror / Atom feedSubject: [Pljava-dev] How to configure security manager?
Date: Sat, 29 Oct 2005 20:59:34 -0400
Message-ID: <200510292059.34139.dgovoni@metadapt.com> (raw)
In-Reply-To: <4363FD32.70702@tada.se>
References: <200510291628.11350.dgovoni@metadapt.com>
<4363FD32.70702@tada.se>
Apparently the third-party code I'm using is trying to do this:
java.security.Security.addProvider(
new com.sun.net.ssl.internal.ssl.Provider());
System.setProperty( "java.protocol.handler.pkgs",
"com.sun.net.ssl.internal.www.protocol" );
It's necessary to open https URL connections. Essentially, what I'm trying to
do is write a trigger that relays data inserted into a table to a MSN instant
message account. This is the only place it tries to set a system property. Is
there a way I can set system properties from the postgres.conf file or pljava
such that the JVM the trigger is running in will see them?
Darren
On Saturday 29 October 2005 18:52, Thomas Hallgren wrote:
> dgovoni at metadapt.com wrote:
> > Hi Thomas,
> > Kind thanks for the response. Yeah, I tried both 'java' and 'javaU'
> > installing as user 'postgres' under linux. Should I do so as root? I also
> > tried changing the java.security policy for the jvm in the library path
> > to grant 'all permission' (as a long shot) with same result. I removed
> > and reinstalled said jars. I'm sure I'm missing something, but will keep
> > trying.
>
> Sorry. I got confused when you said you wanted to use files and sockets.
> Now I see that you are getting a security exception while attempting to
> set a system property that begins with the string 'java.'. Those
> properties are not allowed to change even in untrusted mode since that
> would blow a hole in the rest of the security scheme. What property are
> you trying to set in the class initializer of rath.msnm.util.TWN that
> starts with 'java.'?
>
> Regards,
> Thomas Hallgren
view thread (6+ messages) latest in thread
Message-ID: <200510292059.34139.dgovoni@metadapt.com>
Permalink: ../200510292059.34139.dgovoni@metadapt.com/
Also on: postgresql.org/message-id/200510292059.34139.dgovoni@metadapt.com
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pljava-dev@postgresql.org
Subject: Re: [Pljava-dev] How to configure security manager?
In-Reply-To: <200510292059.34139.dgovoni@metadapt.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox