public inbox for [email protected]
help / color / mirror / Atom feedSubject: [Pljava-dev] cannot set the classpath to a specific jar to get anexternal connection
Date: Thu, 03 Jun 2010 16:32:41 +0200
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
<8661B041D452404E8088FBD47D2443BE019EC515@NDCEXCUS703.int.asurion.com>
<[email protected]>
<[email protected]>
PL/Java is implemented as a trusted procedure language. It will
therefore prevent all access to the filesystem. You can use language
"javaU" if you want untrusted. More details here:
http://wiki.tada.se/index.php/Security.
Regards,
Thomas Hallgren
On 2010-06-03 15:43, Luca Ferrari wrote:
> On Thursday 03 June 2010 03:39:14 pm Luca Ferrari's cat walking on the
> keyboard wrote:
>
>> java.lang.NoClassDefFoundError: Could not initialize class
>> sun.security.provider.NativePRNG
>>
>
> I've noted that when the function is called the first time the logs are
> differents and provide the following stacktrace:
>
> Caused by: java.lang.SecurityException: read on /dev/random
> at
> org.postgresql.pljava.internal.Backend$1.assertPermission(Backend.java:176)
> at
> org.postgresql.pljava.internal.Backend$PLJavaSecurityManager.nonRecursiveCheck(Backend.java:111)
> at
> org.postgresql.pljava.internal.Backend$PLJavaSecurityManager.checkPermission(Backend.java:89)
> at java.lang.SecurityManager.checkRead(SecurityManager.java:871)
> at java.io.File.exists(File.java:731)
> at sun.security.provider.NativePRNG$1.run(NativePRNG.java:60)
> at java.security.AccessController.doPrivileged(Native Method)
> at sun.security.provider.NativePRNG.initIO(NativePRNG.java:57)
> at sun.security.provider.NativePRNG.<clinit>(NativePRNG.java:54)
> ... 31 more
> 2010-06-03 15:39:43 CEST ERROR: java.lang.ExceptionInInitializerError
>
>
> so it seems a problem of reading /dev/random, even if the user has the
> permissions:
>
> $ ls -l /dev/random
> crw-rw-rw- 1 root root 1, 8 2010-06-03 15:31 /dev/random
>
>
> Any idea?
>
> Thanks,
> Luca
> _______________________________________________
> Pljava-dev mailing list
> Pljava-dev at pgfoundry.org
> http://pgfoundry.org/mailman/listinfo/pljava-dev
>
view thread (8+ messages) latest in thread
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: [email protected]
Subject: Re: [Pljava-dev] cannot set the classpath to a specific jar to get anexternal connection
In-Reply-To: <[email protected]>
* 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