>>>>The JDBC driver requires

Bruce Momjian <bruce@momjian.us>

Commit: 19a251d0ec8ffb326a8c46a7c66821834dbba8d3
Author: Bruce Momjian <bruce@momjian.us>
Date: 2001-08-26T01:06:20Z
Releases: 7.2.1
>>>>The JDBC driver requires
>>>>
>>>> permission java.net.SocketPermission "host:port", "connect";
>>>>
>>>>in the policy file of the application using the JDBC driver
>>>>in the postgresql.jar file.  Since the Socket() call in the
>>>>driver is not protected by AccessController.doPrivileged() this
>>>>permission must also be granted to the entire application.
>>>>
>>>>The attached diff fixes it so that the connect permission can be
>>>>restricted just the the postgresql.jar codeBase if desired.

David Daney

Files

PathChange+/−
src/interfaces/jdbc/org/postgresql/PG_Stream.java modified +28 −2