JDK-8164071 : Default.policy file missing content for solaris
  • Type: Bug
  • Component: security-libs
  • Sub-Component: java.security
  • Affected Version: 9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: solaris
  • Submitted: 2016-08-16
  • Updated: 2016-08-25
  • Resolved: 2016-08-17
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9 b133Fixed
Related Reports
Relates :  
Description
On Solaris, the JDK build contains incorrect content for the default.policy file. It should include the content inside <jdk ws>/src/java.base/solaris/lib/security/default.policy, but it does not. This leads to the failure of the java/lang/SecurityManager/CheckSecurityProvider.java regression test as OracleUcrypto provider cannot be instantiated due to lack of permission.

This seems to relate to  "8159752: Grant de-privileged module permissions by default with java.security.policy override option" where the Ucrypto provider permission entry is moved to a Solaris specific sub-directory which make files misses the logic to handle.
Comments
Existing regression test java/lang/SecurityManager/CheckSecurityProvider.java would not catch this as the current impl of OracleUcrypto provider would allow the provider to be constructed but with an empty set of services. As for other OracleUcrypto provider regression tests, they will run as expected as the security manager is not enabled.
16-08-2016