jdk/test/java/rmi/activation/CommandEnvironment/security.policy
author duke
Sat, 01 Dec 2007 00:00:00 +0000
changeset 2 90ce3da70b43
child 13256 5886d7607acd
permissions -rw-r--r--
Initial load
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
     2
 * security policy used by the test process
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
grant codeBase "file:${java.home}/lib/ext/*" {
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
    permission java.security.AllPermission;
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
};
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
grant {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
  // standard test activation permissions
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
  permission java.io.FilePermission "..${/}..${/}test.props", "read";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
  // test needs to cleanup rmid's log.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
  permission java.io.FilePermission ".${/}log", "read,write,delete";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
  permission java.io.FilePermission ".${/}log${/}-", "read,write,delete";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
  // test needs to use java to exec an rmid
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
  permission java.io.FilePermission "${java.home}${/}bin${/}java", "execute";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
  // test uses these permissions to propagate security values to rmid
90ce3da70b43 Initial load
duke
parents:
diff changeset
    21
  permission java.util.PropertyPermission "java.security.policy", "read";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
  permission java.util.PropertyPermission "java.security.manager", "read";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
  permission java.util.PropertyPermission "java.compiler", "read";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
  // used by TestLibrary to determine test environment 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
  permission java.util.PropertyPermission "test.classes", "read";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
  permission java.util.PropertyPermission "test.src", "read";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
  permission java.util.PropertyPermission "user.dir", "read";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
  permission java.util.PropertyPermission "java.home", "read";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
  // required for test to create an ActivationGroup
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
  permission java.lang.RuntimePermission "setFactory";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
  // test needs to export rmid and communicate with objects on arbitrary ports
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
  permission java.net.SocketPermission "*:1024-", "connect,accept,listen";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
};