-
Enhancement
-
Resolution: Fixed
-
P3
-
9
-
b154
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8174381 | 10 | Sean Mullan | P3 | Resolved | Fixed | b01 |
The solution for this enhancement consists of 3 main parts:
1. Remove almost all of the current packages from the package.access and package.definition Security Properties. Two exceptions will remain: sun.misc and sun.reflect. These are internal packages that are currently exported by the jdk.unsupported module. They must remain on the package.access list since they contain unsafe APIs that can be used maliciously.
2. Loosen the definition of the SecurityManager::checkPackageAccess and checkPackageDefinition APIs to allow the list of restricted packages to be augmented by an implementation. Also, add a missing @throws NPE to the checkPackageDefinition API.
3. Change the implementation of the SecurityManager::checkPackageAccess and checkPackageDefinition methods to restrict the packages of all non-exported packages of JDK modules loaded by the platform class loader or its ancestors. These packages will not be listed in the package.access and package.definition properties -- instead they are automatically determined at runtime by using new JDK 9 module APIs. The non-exported packages include all packages
that are either not exported at all by its containing module or are exported in a qualified fashion by its containing module.
- backported by
-
JDK-8174381 Update SecurityManager::checkPackageAccess to restrict non-exported JDK packages by default
-
- Resolved
-
- relates to
-
JDK-8173162 Backout JDK-8055206
-
- Closed
-
-
JDK-8174766 Skip package access check when loading classes from modules that are targets of qualified exports
-
- Closed
-
-
JDK-8173257 test/script/trusted/JDK-8021189.js and test/script/trusted/JDK-8021129.js fail in nashorn nightly
-
- Resolved
-
-
JDK-8173082 java/bean/* tests fail since change of JDK-8055206
-
- Closed
-
-
JDK-8173136 Swing applications fail to load System look and feel with security manager enabled
-
- Closed
-
-
JDK-8175324 Several accessClassInPackage RuntimePermissions should not be needed to use java.desktop module
-
- Closed
-