Bug 1320811

Summary: [GSS](6.4.z) MBeanServer permissions behave differently if java security manager is enabled
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Lyle Wang <lywang>
Component: Security, jbossas, JMXAssignee: Vlado Pakan <vpakan>
Status: CLOSED WORKSFORME QA Contact: Josef Cacek <jcacek>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.4.6CC: anmiller, bdawidow, bmaxwell, brian.stansberry, darran.lofthouse, dhorton, egonzale, hokuda, lywang, msochure, pskopek, vpakan
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-12 08:56:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
reproducer project none

Description Lyle Wang 2016-03-24 03:36:10 UTC
Created attachment 1139829 [details]
reproducer project

Description of problem:

Getting "javax.management.JMRuntimeException: JBAS011360: Unauthorized access" when invoking MBeanServer operations.  This only happens if the java security manager is enabled.  



Version-Release number of selected component (if applicable):


How reproducible:
Always


Steps to Reproduce:
See "README.txt" in reproducer



Actual results:
Caused by: javax.management.JMRuntimeException: JBAS011360: Unauthorized access
        at org.jboss.as.jmx.PluggableMBeanServerImpl.authorizeSensitiveOperation(PluggableMBeanServerImpl.java:1177)
        at org.jboss.as.jmx.PluggableMBeanServerImpl.registerMBean(PluggableMBeanServerImpl.java:893)



Expected results:
no exception :)

Additional info: