fix up some , errors that the JettyPolicy mechanism handles but fail the typical sun.security policy parser
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@674 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
parent
2fe3fb4c63
commit
a9ed6dda62
|
@ -46,13 +46,13 @@ grant codeBase "file:${jetty.home}/lib/-" {
|
|||
|
||||
permission java.lang.RuntimePermission "getClassLoader";
|
||||
|
||||
permission java.util.PropertyPermission "org.eclipse.jetty.webapp.WebAppClassLoader.extensions" "read";
|
||||
permission java.util.PropertyPermission "org.eclipse.http.PathMap.separators" "read";
|
||||
permission java.util.PropertyPermission "org.eclipse.jetty.webapp.WebAppClassLoader.extensions", "read";
|
||||
permission java.util.PropertyPermission "org.eclipse.http.PathMap.separators", "read";
|
||||
|
||||
permission java.util.PropertyPermission "ROLLOVERFILE_BACKUP_FORMAT" "read";
|
||||
permission java.util.PropertyPermission "ROLLOVERFILE_BACKUP_FORMAT", "read";
|
||||
|
||||
permission java.util.PropertyPermission "org.eclipse.jetty.server.webapp.parentLoaderPriority" "read";
|
||||
permission java.util.PropertyPermission "org.eclipse.jetty.server.Request.maxFormContentSize" "read";
|
||||
permission java.util.PropertyPermission "org.eclipse.jetty.server.webapp.parentLoaderPriority", "read";
|
||||
permission java.util.PropertyPermission "org.eclipse.jetty.server.Request.maxFormContentSize", "read";
|
||||
|
||||
permission javax.security.auth.AuthPermission "modifyPrincipals";
|
||||
permission javax.security.auth.AuthPermission "modifyPrivateCredentials";
|
||||
|
@ -64,7 +64,7 @@ grant codeBase "file:${jetty.home}/lib/-" {
|
|||
permission java.io.FilePermission "${/}private${/}${java.io.tmpdir}", "read, write";
|
||||
permission java.io.FilePermission "${/}private${/}${java.io.tmpdir}${/}-", "read, write";
|
||||
|
||||
permission java.io.FilePermission "${java.io.tmpdir}${/}-" "delete";
|
||||
permission java.io.FilePermission "${java.io.tmpdir}${/}-", "delete";
|
||||
|
||||
|
||||
permission java.io.FilePermission "${jetty.home}${/}logs", "read, write";
|
||||
|
@ -122,7 +122,7 @@ grant codeBase "file:${jetty.home}/lib/-" {
|
|||
permission java.lang.RuntimePermission "stopThread";
|
||||
|
||||
// jsp support
|
||||
permission java.net.SocketPermission "java.sun.com:80" "connect,resolve";
|
||||
permission java.net.SocketPermission "java.sun.com:80", "connect,resolve";
|
||||
};
|
||||
|
||||
|
||||
|
@ -132,7 +132,7 @@ grant codeBase "file:${jetty.home}/lib/-" {
|
|||
// the tmp directory is where webapps are unpacked by default so setup their restricted permissions
|
||||
//
|
||||
grant codeBase "file:${java.io.tmpdir}/-" {
|
||||
permission java.io.FilePermission "${java.io.tmpdir}${/}-" "read";
|
||||
permission java.io.FilePermission "${java.io.tmpdir}${/}-", "read";
|
||||
permission java.util.PropertyPermission "org.eclipse.jetty.util.log.class", "read";
|
||||
permission java.util.PropertyPermission "org.eclipse.jetty.util.log.IGNORED", "read";
|
||||
permission java.util.PropertyPermission "org.eclipse.jetty.util.log.DEBUG", "read";
|
||||
|
@ -144,7 +144,7 @@ permission java.io.FilePermission "${java.io.tmpdir}${/}-" "read";
|
|||
//
|
||||
grant codeBase "file:/private${java.io.tmpdir}/-" {
|
||||
|
||||
permission java.io.FilePermission "/private/${java.io.tmpdir}/-" "read";
|
||||
permission java.io.FilePermission "/private/${java.io.tmpdir}/-", "read";
|
||||
permission java.util.PropertyPermission "org.eclipse.jetty.util.log.class", "read";
|
||||
permission java.util.PropertyPermission "org.eclipse.jetty.util.log.DEBUG", "read";
|
||||
permission java.util.PropertyPermission "org.eclipse.jetty.util.log.VERBOSE", "read";
|
||||
|
@ -158,7 +158,7 @@ permission java.io.FilePermission "/private/${java.io.tmpdir}/-" "read";
|
|||
//
|
||||
grant codeBase "file:${jetty.home}/work/-" {
|
||||
|
||||
permission java.io.FilePermission "${jetty.home}${/}work${/}-" "read";
|
||||
permission java.io.FilePermission "${jetty.home}${/}work${/}-", "read";
|
||||
permission java.util.PropertyPermission "org.eclipse.jetty.util.log.class", "read";
|
||||
permission java.util.PropertyPermission "org.eclipse.jetty.util.log.DEBUG", "read";
|
||||
permission java.util.PropertyPermission "org.eclipse.jetty.util.log.VERBOSE", "read";
|
||||
|
|
Loading…
Reference in New Issue