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

Policy files that loosen File and Socket permissions do not work.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Not an Issue
    • Affects Version/s: 1.2.0
    • Fix Version/s: None
    • Component/s: security-libs

      Description

      By manipulating the properties java.security.manager and
      java.security.policy and using policytool, users are supposed to
      be able to manipulate security policies on a case by case basis.
      Parts of the mechanism do not seem to work on sparc solaris. I am
      unable to get one JavaSoft tutorial to work because of SocketPermission
      exceptions. I am unable to get a local version of this tutorial to
      work because of AccessControlExceptions.
       
      The attached script makes three attempts to get the applet code WriteFile to
      write into the file writetest. Source code is also attached. In the first
      attempt, a file protocol is used to gain access to the HTML file WriteFile.html
      containing the APPLET tag for WriteFile.class. In the second attempt, http
      is used to do the same. The third attempt tries to load the example from the
      java.sun.com and corresponds to the tutorial.

      Standard output and standard err were redirected into Y.out, also attached.

      allan.jacobs@Eng 1998-11-10

        Attachments

          Activity

            People

            Assignee:
            rschemersunw Roland Schemers (Inactive)
            Reporter:
            ajacobssunw Allan Jacobs (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: