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

User Policy Setting is not recognized on Netscape 6 when invoked as root

XMLWordPrintable

    • hopper
    • x86
    • windows_xp
    • Verified

      Browser: Netscape 6.1
      JRE Build: Merlin Build 89/90
      JRE Location: http://sqesvr/deployment3/merlin/rc/solaris.b90
                     http://sqesvr/deployment3/merlin/rc/solaris.b89
                     (/import/java/jdk1.4/../../<build>)

      Platform: Solaris 8 - sparc 64 bit
      Machine used: dnm-dtf-019
      JRE flags: -Xint


      When Netscape 6 browser is invoked as user root (logged in as user root)
      it does not read users policy settings (<HOME>/.java.policy) and would
      throw Security Exceptions on trying to load the applet.

      However if the same browser was invoked as a normal user with same policy setting, it was able to load the applet succesfully.


      NOTE: if logged in as as root and if netscape4.x was invoked to load the same applet with same policy setting, it worked fine. No execptions.
         Also I did not see the problem on Linux 7.1 with Netscape 6 when logged in
         as user root.
       
      This case applies only on Solaris (not Linux nor Win32)




      1) Login as root
      2) Install the JRE
      3) Install Netscape 6.1 browser
          (/net/sqesvr/deployment2/rpallath/netscape6.1/2001.09.12)
      4) cd <netscape install dir.>
      5) setenv LD_LIBRARY_PATH <netscape install dir>:<netscape install dir>/dist/lib
      6) ./regxpcom <jre install dir.>/plugin/sparc/ns61.0/libjavaplugin_oji140.so
        this will register the plugin.
      7) Create a .java.policy file in /
      8) Copy the contents listed below onto .java.policy
          grant {
            permission java.security.AllPermission ;
          };
      9) Save it
      10) cd < netscape install dir>
      11) ./netscape
      12) Load URL http://sqesvr/deployment1/ws/tests/func/vminfo/vminfo.html

      It will throw exception as displayed below.

       Exection thrown on the Console
      --------------------------------
      java.security.AccessControlException: access denied (java.util.PropertyPermission java.class.path read)
      at java.security.AccessControlContext.checkPermission(AccessControlContext.java:270)
      at java.security.AccessController.checkPermission(AccessController.java:401)
      at java.lang.SecurityManager.checkPermission(SecurityManager.java:542)
      at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1291)
      at vminfo.init(vminfo.java:28)
      at sun.applet.AppletPanel.run(AppletPanel.java:341)
      at java.lang.Thread.run(Thread.java:536)

            claisunw Charlie Lai (Inactive)
            rpallathsunw Rajendra Pallath (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: