bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug classpath/29959] New: -Djava.security.manager doesn't work at all


From: roman at kennke dot org
Subject: [Bug classpath/29959] New: -Djava.security.manager doesn't work at all
Date: 23 Nov 2006 20:05:43 -0000

According to

http://java.sun.com/docs/books/tutorial/security/tour2/step2.html

setting the system property -Djava.security.manager should install an
applet-like restrictive SecurityManager. Run the attache program with the RI:

address@hidden:~/src/test$ /usr/lib/jvm/java-1.5.0-sun/bin/java
-Djava.security.manager TestProps 
Exception in thread "main" java.security.AccessControlException: access denied
(java.util.PropertyPermission java.home read)
        at
java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
        at
java.security.AccessController.checkPermission(AccessController.java:427)
        at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
        at
java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1285)
        at java.lang.System.getProperty(System.java:628)
        at TestProps.main(TestProps.java:6)

With Classpath and JamVM this simply spits out the java.home property.


-- 
           Summary: -Djava.security.manager doesn't work at all
           Product: classpath
           Version: 0.93
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: classpath
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: roman at kennke dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29959





reply via email to

[Prev in Thread] Current Thread [Next in Thread]