jdk/test/sun/security/provider/PolicyParser/PrincipalExpansionError.policy
author wetmore
Tue, 18 Mar 2014 15:04:59 -0700
changeset 23357 7225e28e91dd
parent 2 90ce3da70b43
permissions -rw-r--r--
8033271: Manual security tests have @ignore rather than @run main/manual Reviewed-by: xuelei, wetmore Contributed-by: rajan.halade@oracle.com
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
// granted to jtreg
90ce3da70b43 Initial load
duke
parents:
diff changeset
     2
grant codebase "file:/net/koori.sfbay/-" {
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
    permission java.security.AllPermission;
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
};
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
// granted to the test class
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
grant codebase "file:${test.classes}/" {
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
    permission javax.security.auth.AuthPermission "modifyPrincipals";
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
    permission javax.security.auth.AuthPermission "doAs";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
    permission java.io.FilePermission "/testFile", "read";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
};
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
// granted to the test action
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
// -- the test moves the compiled action into the src directory
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
// -- via the shell script.  this way we can ensure different
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
// -- codebases for the test and the action
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
grant codebase "file:${test.src}/",
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
      principal com.sun.security.auth.SolarisPrincipal "TestPrincipal",
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
      principal com.sun.security.auth.SolarisPrincipal "${bad.property}" {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
    permission java.io.FilePermission "/testFile", "read";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    21
};