Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8344395

Remove DCmd::permission()

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • None
    • hotspot
    • svc

      With the security manager obsolescence, can DCmd::permission() be removed?

        // The permission() method returns the description of Java Permission. This
        // permission is required when the diagnostic command is invoked via the
        // DiagnosticCommandMBean. The rationale for this permission check is that
        // the DiagnosticCommandMBean can be used to perform remote invocations of
        // diagnostic commands through the PlatformMBeanServer. The (optional) Java
        // Permission associated with each diagnostic command should ease the work
        // of system administrators to write policy files granting permissions to
        // execute diagnostic commands to remote users. Any diagnostic command with
        // a potential impact on security should overwrite this method.
        static const JavaPermission permission() {
          JavaPermission p = {nullptr, nullptr, nullptr};
          return p;
        }

            Unassigned Unassigned
            coleenp Coleen Phillimore
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: