Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8043277

Update jdk regression tests to extend the default security policy instead of override

    Details

    • Resolved In Build:
      b38

      Backports

        Description

        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.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  mchung Mandy Chung
                  Reporter:
                  mchung Mandy Chung
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Due:
                    Created:
                    Updated:
                    Resolved: