8186224: javax/management/remote/mandatory/subjectDelegation/* fail with java.security.AccessControlException
Edited policy files to grant permissions to all drives on windows Reviewed-by: hb, clanger
This commit is contained in:
parent
894ac9ad94
commit
29378dc9ac
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2003, 2015, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -65,17 +65,6 @@ import javax.security.auth.Subject;
|
||||
public class SubjectDelegation1Test {
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
// Check for supported operating systems: Solaris
|
||||
//
|
||||
// This test runs only on Solaris due to CR 6285916
|
||||
//
|
||||
String osName = System.getProperty("os.name");
|
||||
System.out.println("os.name = " + osName);
|
||||
if (!osName.equals("SunOS")) {
|
||||
System.out.println("This test runs on Solaris only.");
|
||||
System.out.println("Bye! Bye!");
|
||||
return;
|
||||
}
|
||||
String policyFile = args[0];
|
||||
String testResult = args[1];
|
||||
System.out.println("Policy file = " + policyFile);
|
||||
|
@ -1,4 +1,4 @@
|
||||
grant codebase "file:/-" {
|
||||
grant {
|
||||
permission javax.management.remote.SubjectDelegationPermission "javax.management.remote.JMXPrincipal.delegate";
|
||||
};
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
grant codebase "file:/-" {
|
||||
grant {
|
||||
permission javax.management.remote.SubjectDelegationPermission "javax.management.remote.JMXPrincipal.delegate";
|
||||
};
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
grant codebase "file:/-" {
|
||||
grant {
|
||||
};
|
||||
|
||||
grant principal javax.management.remote.JMXPrincipal "monitorRole" {
|
||||
|
@ -1,4 +1,4 @@
|
||||
grant codebase "file:/-" {
|
||||
grant {
|
||||
};
|
||||
|
||||
grant principal javax.management.remote.JMXPrincipal "monitorRole" {
|
||||
|
@ -1,4 +1,4 @@
|
||||
grant codebase "file:/-" {
|
||||
grant {
|
||||
permission javax.management.remote.SubjectDelegationPermission "javax.management.remote.JMXPrincipal.monitorRole";
|
||||
};
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
grant codebase "file:/-" {
|
||||
grant {
|
||||
permission javax.management.remote.SubjectDelegationPermission "javax.management.remote.JMXPrincipal.monitorRole";
|
||||
};
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
grant codebase "file:/-" {
|
||||
grant {
|
||||
permission javax.security.auth.AuthPermission "createLoginContext.JMXPluggableAuthenticator";
|
||||
permission java.net.SocketPermission "*:*", "accept,connect,listen,resolve";
|
||||
permission java.security.SecurityPermission "createAccessControlContext";
|
||||
|
@ -1,4 +1,4 @@
|
||||
grant codebase "file:/-" {
|
||||
grant {
|
||||
permission javax.security.auth.AuthPermission "createLoginContext.JMXPluggableAuthenticator";
|
||||
permission java.net.SocketPermission "*:*", "accept,connect,listen,resolve";
|
||||
permission java.lang.RuntimePermission "*";
|
||||
|
@ -1,4 +1,4 @@
|
||||
grant codebase "file:/-" {
|
||||
grant {
|
||||
permission javax.security.auth.AuthPermission "createLoginContext.JMXPluggableAuthenticator";
|
||||
permission java.net.SocketPermission "*:*", "accept,connect,listen,resolve";
|
||||
permission java.lang.RuntimePermission "*";
|
||||
|
@ -1,4 +1,4 @@
|
||||
grant codebase "file:/-" {
|
||||
grant {
|
||||
permission javax.security.auth.AuthPermission "createLoginContext.JMXPluggableAuthenticator";
|
||||
permission java.lang.RuntimePermission "*";
|
||||
permission java.net.SocketPermission "*:*", "accept,connect,listen,resolve";
|
||||
|
@ -1,4 +1,4 @@
|
||||
grant codebase "file:/-" {
|
||||
grant {
|
||||
permission javax.security.auth.AuthPermission "createLoginContext.JMXPluggableAuthenticator";
|
||||
permission java.lang.RuntimePermission "*";
|
||||
permission java.net.SocketPermission "*:*", "accept,connect,listen,resolve";
|
||||
|
@ -1,4 +1,4 @@
|
||||
grant codebase "file:/-" {
|
||||
grant {
|
||||
permission javax.security.auth.AuthPermission "createLoginContext.JMXPluggableAuthenticator";
|
||||
permission java.net.SocketPermission "*:*", "accept,connect,listen,resolve";
|
||||
permission java.lang.RuntimePermission "*";
|
||||
|
@ -1,4 +1,4 @@
|
||||
grant codebase "file:/-" {
|
||||
grant {
|
||||
permission javax.security.auth.AuthPermission "createLoginContext.JMXPluggableAuthenticator";
|
||||
permission java.net.SocketPermission "*:*", "accept,connect,listen,resolve";
|
||||
permission java.lang.RuntimePermission "*";
|
||||
|
@ -1,4 +1,4 @@
|
||||
grant codebase "file:/-" {
|
||||
grant {
|
||||
permission javax.security.auth.AuthPermission "createLoginContext.JMXPluggableAuthenticator";
|
||||
permission java.net.SocketPermission "*:*", "accept,connect,listen,resolve";
|
||||
permission java.lang.RuntimePermission "*";
|
||||
|
@ -1,4 +1,4 @@
|
||||
grant codebase "file:/-" {
|
||||
grant {
|
||||
permission javax.security.auth.AuthPermission "createLoginContext.JMXPluggableAuthenticator";
|
||||
permission java.lang.RuntimePermission "*";
|
||||
permission java.net.SocketPermission "*:*", "accept,connect,listen,resolve";
|
||||
|
@ -1,4 +1,4 @@
|
||||
grant codebase "file:/-" {
|
||||
grant {
|
||||
permission javax.security.auth.AuthPermission "createLoginContext.JMXPluggableAuthenticator";
|
||||
permission java.lang.RuntimePermission "*";
|
||||
permission java.net.SocketPermission "*:*", "accept,connect,listen,resolve";
|
||||
|
Loading…
x
Reference in New Issue
Block a user