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

standard extensions path is hard-coded in default system policy file

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.2.0, 1.3.0
    • security-libs
    • None
    • beta2
    • generic
    • generic

      The default system policy file (in jre/lib/security/java.policy)
      grants all permissions to standard extensions, as follows:

      grant codeBase "file:${java.home}/lib/ext/*" {
              permission java.security.AllPermission;
      };

      This uses a hardcoded path to the extensions directory, which users could change
      by setting the "java.ext.dirs" system property.

      Therefore, the above "grant" statement should be changed to:

      grant codeBase "file:${java.ext.dirs}/*" {
              permission java.security.AllPermission;
      };

            claisunw Charlie Lai (Inactive)
            jlueheorcl Jan Luehe (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: