|
Steve Loughran made changes - 30/Mar/09 05:10 PM (BST)
I've got the policy support at a stage where if you don't specify a security policy file, one gets copied out from the tasks JAR for you (that is deleted afterwards) -this policy grants all rights. All the extras/ant tests work for all the policies (which needs explicit tests, before closing this bugrep).
The result is that we can run the Ant-started SF with a proper security manager. I am now running the tests overnight with security.manager=smartfrog to see what happens Fixed, does not break anything unless you set the security.manager variable, and even then, everything except the hadoop tests work.
Steve Loughran made changes - 28/Apr/09 12:31 PM (BST)
Steve Loughran made changes - 15/May/09 10:57 AM (BST)
Steve Loughran made changes - 15/May/09 11:03 AM (BST)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
not found: "Warning: stack trace logging enabled" log was "org.smartfrog.sfcore.security.SFGeneralSecurityException: Java Security Access control exception - SmartFrog is running under a security manager, but the main JAR is not signed by a trusted CA, or the permissions files are mis-configured
java.security.AccessControlException: access denied (java.util.PropertyPermission java.rmi.server.RMIClassLoaderSpi write)
Security manager ExitTrappingRealSecurityManager, systemExitPermitted=false; class: class org.smartfrog.sfcore.security.ExitTrappingRealSecurityManager; exit trapping: true
Java System Properties:access to properties denied: java.security.AccessControlException: access denied (java.util.PropertyPermission * read,write)
Environment variablss:access to environment variables denied: java.security.AccessControlException: access denied (java.lang.RuntimePermission getenv.*)
at org.smartfrog.sfcore.security.SFSecurity.initSecurity(SFSecurity.java:116)
at org.smartfrog.SFSystem.initSystem(SFSystem.java:640)
at org.smartfrog.SFSystem.execute(SFSystem.java:407)
at org.smartfrog.SFSystem.main(SFSystem.java:395)Caused by: java.security.AccessControlException: access denied (java.util.PropertyPermission java.rmi.server.RMIClassLoaderSpi write)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
at java.security.AccessController.checkPermission(AccessController.java:546)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
at java.lang.System.setProperty(System.java:727)
at org.smartfrog.sfcore.security.SFSecurity.initSecurity(SFSecurity.java:113) ... 3 more Failed to initialize SmartFrog"
at org.smartfrog.tools.ant.test.TaskTestBase.assertInLog(TaskTestBase.java:123)
at org.smartfrog.tools.ant.test.system.RunTest.testStackTrace(RunTest.java:105)