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

// granted to jtreg
grant codebase "file:/net/koori.sfbay/-" {
    permission java.security.AllPermission;
};

// granted to the test class
grant codebase "file:${test.classes}/" {
    permission javax.security.auth.AuthPermission "modifyPrincipals";
    permission javax.security.auth.AuthPermission "doAs";
    permission java.io.FilePermission "/testFile", "read";
};

// granted to the test action
// -- the test moves the compiled action into the src directory
// -- via the shell script.  this way we can ensure different
// -- codebases for the test and the action
grant codebase "file:${test.src}/",
      principal com.sun.security.auth.SolarisPrincipal "TestPrincipal",
      principal com.sun.security.auth.SolarisPrincipal "${bad.property}" {
    permission java.io.FilePermission "/testFile", "read";
};