Relates :
|
|
Relates :
|
|
Relates :
|
jtreg policy=test.policy overrides the system policy file. Thus most of the custom policy files for existing tests copy the system's policy and grants the permissions for the test. JDK-8040059 changes the default permission for extensions from AllPermission to no permission. It also individually grants the least permissions to each JAR file in jre/lib/ext. All custom policy files that explicitly grant "java.ext.dirs" codesource with AllPermissions should be updated. There may be further changes to system policy file when more system classes are reduced their privileges. In addition, it's TBD whether the system policy will be modified for Jigsaw. This RFE should take future system policy changes into account. The recommendation is to update the tests to extend the system policy file in the same way as -Djava.security.policy=test.policy so that tests can grant permissions for the tests and not impacted with any change in the system policy. See CODETOOLS-7900898 for an enhancement request to jtreg harness.
|