jdk/test/javax/management/remote/mandatory/subjectDelegation/policy35
author hb
Thu, 23 Feb 2017 20:35:25 +0530
changeset 44006 5b8abcec4b80
parent 2 90ce3da70b43
child 47018 7c8ff90abc22
permissions -rw-r--r--
8173130: SubjectDelegation2Test.java and SubjectDelegation3Test.java failing on solaris Reviewed-by: dfuchs

grant codebase "file:/-" {
    permission javax.security.auth.AuthPermission "createLoginContext.JMXPluggableAuthenticator";
    permission java.lang.RuntimePermission "*";
    permission java.net.SocketPermission "*:*", "accept,connect,listen,resolve";
    permission java.security.SecurityPermission "createAccessControlContext";
    permission javax.management.remote.SubjectDelegationPermission "javax.management.remote.JMXPrincipal.monitorRole";
};

grant principal javax.management.remote.JMXPrincipal "monitorRole" {
    permission javax.management.remote.SubjectDelegationPermission "javax.management.remote.JMXPrincipal.delegate";
};

grant principal javax.management.remote.JMXPrincipal "delegate" {
//    permission javax.management.MBeanPermission "*", "getDomains";
    permission javax.management.MBeanPermission "SimpleStandard#State[MBeans:type=SimpleStandard]", "getAttribute";
    permission javax.security.auth.AuthPermission "getSubject";
    permission javax.management.MBeanPermission "SimpleStandard#State[MBeans:type=SimpleStandard]", "setAttribute";
    permission javax.management.MBeanPermission "SimpleStandard#-[MBeans:type=SimpleStandard]", "addNotificationListener";
    permission javax.management.MBeanPermission "javax.management.MBeanServerDelegate#-[JMImplementation:type=MBeanServerDelegate]", "addNotificationListener";
    permission javax.management.MBeanPermission "javax.management.MBeanServerDelegate#-[JMImplementation:type=MBeanServerDelegate]", "removeNotificationListener";
    permission javax.management.MBeanPermission "SimpleStandard#-[MBeans:type=SimpleStandard]", "unregisterMBean";
};